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
As described in the title, I'm facing an issue related to yacs library as it doesn't recognize the type function.partial inside
my config file which is generated by detectron2 platform.
Traceback (most recent call last):
File "/raid/malik/github/EVA/EVA-01/det/./demo/demo.py", line 100, in <module>
cfg = setup_cfg(args)
File "/raid/malik/github/EVA/EVA-01/det/./demo/demo.py", line 29, in setup_cfg
cfg.merge_from_file(args.config_file)
File "/raid/malik/github/EVA/EVA-01/det/detectron2/config/config.py", line 47, in merge_from_file
loaded_cfg = type(self)(loaded_cfg)
File "/home/research/anaconda3/envs/eva/lib/python3.9/site-packages/yacs/config.py", line 86, in __init__
init_dict = self._create_config_tree_from_dict(init_dict, key_list)
File "/home/research/anaconda3/envs/eva/lib/python3.9/site-packages/yacs/config.py", line 126, in _create_config_tree_from_dict
dic[k] = cls(v, key_list=key_list + [k])
File "/home/research/anaconda3/envs/eva/lib/python3.9/site-packages/yacs/config.py", line 86, in __init__
init_dict = self._create_config_tree_from_dict(init_dict, key_list)
File "/home/research/anaconda3/envs/eva/lib/python3.9/site-packages/yacs/config.py", line 126, in _create_config_tree_from_dict
dic[k] = cls(v, key_list=key_list + [k])
File "/home/research/anaconda3/envs/eva/lib/python3.9/site-packages/yacs/config.py", line 86, in __init__
init_dict = self._create_config_tree_from_dict(init_dict, key_list)
File "/home/research/anaconda3/envs/eva/lib/python3.9/site-packages/yacs/config.py", line 126, in _create_config_tree_from_dict
dic[k] = cls(v, key_list=key_list + [k])
File "/home/research/anaconda3/envs/eva/lib/python3.9/site-packages/yacs/config.py", line 86, in __init__
init_dict = self._create_config_tree_from_dict(init_dict, key_list)
File "/home/research/anaconda3/envs/eva/lib/python3.9/site-packages/yacs/config.py", line 129, in _create_config_tree_from_dict
_assert_with_logging(
File "/home/research/anaconda3/envs/eva/lib/python3.9/site-packages/yacs/config.py", line 545, in _assert_with_logging
assert cond, msg
AssertionError: Key model.backbone.net.norm_layer with value <class 'functools.partial'> is not a valid type; valid types: {<class 'NoneType'>, <class 'int'>, <class 'float'>, <class 'str'>, <class 'list'>, <class 'tuple'>, <class 'bool'>}
Thanks,
Abdulmalik
The text was updated successfully, but these errors were encountered:
We found that not enough information is provided about this issue.
Please provide details following the issue template.
Abdulmalik0x
changed the title
Please read & provide the following
Error when running inference using demo.py - <class 'functools.partial'> is not a valid type
Oct 24, 2023
Hey!
As described in the title, I'm facing an issue related to yacs library as it doesn't recognize the type function.partial inside
my config file which is generated by detectron2 platform.
Thanks,
Abdulmalik
The text was updated successfully, but these errors were encountered: