aim-uofa / AdelaiDet

AdelaiDet is an open source toolbox for multiple instance-level detection and recognition tasks.
https://git.io/AdelaiDet
Other
3.37k stars 646 forks source link

FCPose训练无法成功,报错KeyError: 'Non-existent config key: MODEL.FCPOSE_ON' #481

Closed babyjerry1993 closed 2 years ago

babyjerry1993 commented 2 years ago

Command Line Args: Namespace(config_file='configs/FCPose/R_50_3X.yaml', dist_url='tcp://127.0.0.1:50000', eval_only=False, machine_rank=0, num_gpus=4, num_machines=1, opts=['OUTPUT_DIR', 'training_dir/R_50_3X'], resume=False) Config 'configs/FCPose/R_50_3X.yaml' has no VERSION. Assuming it to be compatible with latest v2. Config 'configs/FCPose/R_50_3X.yaml' has no VERSION. Assuming it to be compatible with latest v2. Config 'configs/FCPose/R_50_3X.yaml' has no VERSION. Assuming it to be compatible with latest v2. Config 'configs/FCPose/R_50_3X.yaml' has no VERSION. Assuming it to be compatible with latest v2. Traceback (most recent call last): File "tools/train_net.py", line 229, in launch( File "/root/code/detectron2/detectron2/engine/launch.py", line 55, in launch mp.spawn( File "/root/anaconda3/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 200, in spawn return start_processes(fn, args, nprocs, join, daemon, start_method='spawn') File "/root/anaconda3/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 158, in start_processes while not context.join(): File "/root/anaconda3/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 119, in join raise Exception(msg) Exception:

-- Process 3 terminated with the following error: Traceback (most recent call last): File "/root/anaconda3/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 20, in _wrap fn(i, args) File "/root/code/detectron2/detectron2/engine/launch.py", line 94, in _distributed_worker main_func(args) File "/home/xxw/AdelaiDet/tools/train_net.py", line 199, in main cfg = setup(args) File "/home/xxw/AdelaiDet/tools/train_net.py", line 187, in setup 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 return super().merge_from_other_cfg(cfg_other) 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'

WeianMao commented 2 years ago

this is the same issue with #480. it may be cuased by the environment. please check the issue #480.