Skip to content

demo issue #12

@pythonyyds-byte

Description

@pythonyyds-byte

(boxsnake) fjs@raphael-Precision-7920-Tower:~/Project/BoxSnake$ python demo/demo.py --config-file configs/Cityscapes-InstanceSegmentation/BoxSnake/boxsnake_rcnn_R_50_FPN_24K.yaml --input demo/demo.jpg --output /results --confidence-threshold 0.5 --opts MODEL.WEIGHTS configs/Cityscapes-InstanceSegmentation/BoxSnake/boxsnake_rcnn_R_50_FPN_cityscapes.pth
[12/02 19:39:48 detectron2]: Arguments: Namespace(confidence_threshold=0.5, config_file='configs/Cityscapes-InstanceSegmentation/BoxSnake/boxsnake_rcnn_R_50_FPN_24K.yaml', input=['demo/demo.jpg'], opts=['MODEL.WEIGHTS', 'configs/Cityscapes-InstanceSegmentation/BoxSnake/boxsnake_rcnn_R_50_FPN_cityscapes.pth'], output='/results', video_input=None, webcam=False)
Traceback (most recent call last):
File "demo/demo.py", line 111, in
cfg = setup_cfg(args)
File "demo/demo.py", line 40, in setup_cfg
cfg.merge_from_file(args.config_file)
File "/home/fjs/anaconda3/envs/boxsnake/lib/python3.8/site-packages/detectron2/config/config.py", line 69, in merge_from_file
self.merge_from_other_cfg(loaded_cfg)
File "/home/fjs/anaconda3/envs/boxsnake/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 "/home/fjs/anaconda3/envs/boxsnake/lib/python3.8/site-packages/yacs/config.py", line 217, in merge_from_other_cfg
_merge_a_into_b(cfg_other, self, self, [])
File "/home/fjs/anaconda3/envs/boxsnake/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 "/home/fjs/anaconda3/envs/boxsnake/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.BOUNDARY_HEAD' 为什么运行demo的时候使用Cityscapes数据集会出现key的问题,而运行COCO数据集的配置文件是可以运行的。这是项目里面的配置文件写错了吧?该怎么解决呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions