-
Notifications
You must be signed in to change notification settings - Fork 488
KeyError: 'Non-existent config key: INPUT.AUGMENTATIONS' #251
Description
(/mnt/12T/wm/conda/bin/mask2former) wm@RTX6000Server2:~/Mask2Former/demo$ python demo.py --config-file ../configs/youtubevis_2019/swin/video_maskformer2_swin_large_IN21k_384_bs16_8ep.yaml --video-input ../1.avi --opts MODEL.WEIGHTS weights/model_final_c5c739.pkl
/mnt/12T/wm/conda/bin/mask2former/lib/python3.10/site-packages/timm/models/layers/init.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers
warnings.warn(f"Importing from {name} is deprecated, please import via timm.layers", FutureWarning)
[11/20 14:31:13 detectron2]: Arguments: Namespace(config_file='../configs/youtubevis_2019/swin/video_maskformer2_swin_large_IN21k_384_bs16_8ep.yaml', webcam=False, video_input='../1.avi', input=None, output=None, confidence_threshold=0.5, opts=['MODEL.WEIGHTS', 'weights/model_final_c5c739.pkl'])
配置文件 ../configs/youtubevis_2019/swin/video_maskformer2_swin_large_IN21k_384_bs16_8ep.yaml
Traceback (most recent call last):
File "/home/wm/Mask2Former/demo/demo.py", line 107, in
cfg = setup_cfg(args)
File "/home/wm/Mask2Former/demo/demo.py", line 40, in setup_cfg
cfg.merge_from_file(args.config_file)
File "/home/wm/detectron2/detectron2/config/config.py", line 69, in merge_from_file
self.merge_from_other_cfg(loaded_cfg)
File "/home/wm/.local/lib/python3.10/site-packages/fvcore/common/config.py", line 132, in merge_from_other_cfg
return super().merge_from_other_cfg(cfg_other)
File "/home/wm/.local/lib/python3.10/site-packages/yacs/config.py", line 217, in merge_from_other_cfg
_merge_a_into_b(cfg_other, self, self, [])
File "/home/wm/.local/lib/python3.10/site-packages/yacs/config.py", line 478, in _merge_a_into_b
_merge_a_into_b(v, b[k], root, key_list + [k])
File "/home/wm/.local/lib/python3.10/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: INPUT.AUGMENTATIONS'