Closed babyjerry1993 closed 2 years ago
have you run the commond 'python setup.py build develop' before you run the demo.py?
no, i use docker pull tianzhi0549/adet:latest, i must run the commond 'python setup.py build develop' ??
i am not sure when this docker built, can you run the commond above to see how it goes?
it's done, thanks
no worries
[11/23 03:14:18 detectron2]: Arguments: Namespace(confidence_threshold=0.3, config_file='configs/FCPose/R_50_3X.yaml', input=['pics/1.jpg', 'pics/2.jpg'], opts=['MODEL.WEIGHTS', 'weights/fcpose50.pth'], output='./save', video_input=None, webcam=False) WARNING [11/23 03:14:18 d2.config.compat]: Config 'configs/FCPose/R_50_3X.yaml' has no VERSION. Assuming it to be compatible with latest v2. Traceback (most recent call last): File "demo/demo.py", line 74, in
cfg = setup_cfg(args)
File "demo/demo.py", line 23, in setup_cfg
cfg.merge_from_file(args.config_file)
File "/root/code/detectron2/detectron2/config/config.py", line 49, in merge_from_file
self.merge_from_other_cfg(loaded_cfg)
File "/root/anaconda3/lib/python3.8/site-packages/fvcore-0.1.1.post20200716-py3.8.egg/fvcore/common/config.py", line 120, in merge_from_other_cfg
File "/root/anaconda3/lib/python3.8/site-packages/yacs-0.1.8-py3.8.egg/yacs/config.py", line 217, in merge_from_other_cfg
_merge_a_into_b(cfg_other, self, self, [])
File "/root/anaconda3/lib/python3.8/site-packages/yacs-0.1.8-py3.8.egg/yacs/config.py", line 478, in _merge_a_into_b
_merge_a_into_b(v, b[k], root, key_list + [k])
File "/root/anaconda3/lib/python3.8/site-packages/yacs-0.1.8-py3.8.egg/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.FCPOSE_ON'
(base) root@8405ed1a6b7d:/home/AdelaiDet#