-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The parameter RESCALE
type mismatch when read config from yaml file
#68
Comments
Hi there, You may modify the type in |
Thank you so much. |
I will have to double check what is the real reason of this issue before an official fix. Thanks for reporting! |
Hi, I also got the same error |
Add two lines in config.py could make it work. The issue seems to be related to changes in the YAML loading package.
|
Great, thank you! |
Thanks @Lin-Yijie ! Will update in the master branch |
Hi, I am so sorry to bother you again.
When I use the following command to run the code:
A type mismatch error raising:
The image I used is:
Here is my analysis of this error:
The definition of
PROBLEM.RESCALE
insrc/utils/config.py
as follows:which is defined as
tuple
type.The link as follows:
https://github.com/Thinklab-SJTU/ThinkMatch/blob/f5c832e35a86761ef398fa43e6a4367b05b487f5/src/utils/config.py#L36C1-L37C33
The definition of
RESCALE
invgg16_[model_name]_[dataset_name].yaml
as follows:which means it will be converted to
list
type by the code in the following link:https://github.com/Thinklab-SJTU/ThinkMatch/blob/f5c832e35a86761ef398fa43e6a4367b05b487f5/src/utils/config.py#L255C1-L257C44
when call
_merge_a_into_b
, recursively merge dicts fromyaml_cfg
to__C
, the error happened:ThinkMatch/src/utils/config.py
Lines 235 to 240 in f5c832e
I don't know if it's because there's something wrong with my configuration or what?
Forgive my stupidity.
The text was updated successfully, but these errors were encountered: