KeyError: 'Non-existent config key: MODEL.ABINET'
yizt opened this issue · 0 comments
yizt commented
when i run the demo command, an exception occurred
python demo/demo.py \
--config-file configs/ABINet/ReCTS.yaml \
--input datasets/ReCTS/ReCTS_test_images/* \
--output output/abinet/rects-vis \
--opts MODEL.WEIGHTS ./model_rects.pth
[05/22 09:28:11 detectron2]: Arguments: Namespace(confidence_threshold=0.3, config_file='configs/ABINet/ReCTS.yaml', input=['datasets/ReCTS/ReCTS_test_images/*'], opts=['MODEL.WEIGHTS', './model_rects.pth'], output='output/abinet/rects-vis', video_input=None, webcam=False)
WARNING [05/22 09:28:11 d2.config.compat]: Config 'configs/ABINet/ReCTS.yaml' has no VERSION. Assuming it to be compatible with latest v2.
Traceback (most recent call last):
File "demo/demo.py", line 73, in <module>
cfg = setup_cfg(args)
File "demo/demo.py", line 23, in setup_cfg
cfg.merge_from_file(args.config_file)
File "/opt/conda/lib/python3.8/site-packages/detectron2/config/config.py", line 54, in merge_from_file
self.merge_from_other_cfg(loaded_cfg)
File "/opt/conda/lib/python3.8/site-packages/fvcore/common/config.py", line 132, in merge_from_other_cfg
return super().merge_from_other_cfg(cfg_other)
File "/opt/conda/lib/python3.8/site-packages/yacs/config.py", line 217, in merge_from_other_cfg
_merge_a_into_b(cfg_other, self, self, [])
File "/opt/conda/lib/python3.8/site-packages/yacs/config.py", line 478, in _merge_a_into_b
_merge_a_into_b(v, b[k], root, key_list + [k])
File "/opt/conda/lib/python3.8/site-packages/yacs/config.py", line 491, in _merge_a_into_b
raise KeyError("Non-existent config key: {}".format(full_key))
KeyError: 'Non-existent config key: MODEL.ABINET'