You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.
AssertionError: Key env_info.cuda_version with value <class 'NoneType'> is not a valid type;
valid types: {<class 'bool'>, <class 'float'>, <class 'tuple'>, <class 'int'>, <class 'list'>, <class 'str'>}
Below is the traceback message:
Traceback (most recent call last):
File "train.py", line 436, in <module>
main()
File "train.py", line 340, in main
save_config(get_env_info(config), output_dir / 'env.yaml')
File "/Users/charlotte/Desktop/classification/pytorch_image_classification/utils/env_info.py", line 19, in get_env_info
return ConfigNode({'env_info': info})
File "/Users/charlotte/Desktop/classification/pytorch_image_classification/config/config_node.py", line 6, in __init__
super().__init__(init_dict, key_list, new_allowed)
File "/Users/charlotte/opt/miniconda3/lib/python3.7/site-packages/yacs/config.py", line 86, in __init__
init_dict = self._create_config_tree_from_dict(init_dict, key_list)
File "/Users/charlotte/opt/miniconda3/lib/python3.7/site-packages/yacs/config.py", line 126, in _create_config_tree_from_dict
dic[k] = cls(v, key_list=key_list + [k])
File "/Users/charlotte/Desktop/classification/pytorch_image_classification/config/config_node.py", line 6, in __init__
super().__init__(init_dict, key_list, new_allowed)
File "/Users/charlotte/opt/miniconda3/lib/python3.7/site-packages/yacs/config.py", line 86, in __init__
init_dict = self._create_config_tree_from_dict(init_dict, key_list)
File "/Users/charlotte/opt/miniconda3/lib/python3.7/site-packages/yacs/config.py", line 132, in _create_config_tree_from_dict
".".join(key_list + [str(k)]), type(v), _VALID_TYPES
File "/Users/charlotte/opt/miniconda3/lib/python3.7/site-packages/yacs/config.py", line 525, in _assert_with_logging
assert cond, msg
Can you please give me some hints about how to fix this? Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
I was trying to run the code from terminal directly using
However, I kept getting this assertion error:
Below is the traceback message:
Can you please give me some hints about how to fix this? Thanks!
The text was updated successfully, but these errors were encountered: