xingyizhou / CenterNet2

Two-stage CenterNet
Apache License 2.0
1.2k stars 189 forks source link

KeyError: 'Non-existent config key: MODEL.ROI_BOX_HEAD.MULT_PROPOSAL_SCORE' #30

Closed lbf4616 closed 3 years ago

lbf4616 commented 3 years ago

when I am trying to train the center2 with my own data, here is an error.

File "/home/atesi3/anaconda3/envs/torch18/lib/python3.6/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.ROI_BOX_HEAD.MULT_PROPOSAL_SCORE'

Which version of the yacs did you use? or which version of the detectron2? Plese help.

xingyizhou commented 3 years ago

Hi, MODEL.ROI_BOX_HEAD.MULT_PROPOSAL_SCORE is defined in CenterNet2 specific config here. If you are using CenterNet2 models in your own detectron2 project, you need to add the path and configs like here.

lbf4616 commented 3 years ago

Hi, MODEL.ROI_BOX_HEAD.MULT_PROPOSAL_SCORE is defined in CenterNet2 specific config here. If you are using CenterNet2 models in your own detectron2 project, you need to add the path and configs like here.

Thx, this solved the problem.

sunset326 commented 3 years ago

How did you solve the problem?i have the same problem,need help.

raise KeyError("Non-existent config key: {}".format(full_key)) KeyError: 'Non-existent config key: MODEL.BIFPN'

Bin-ze commented 3 years ago

在tools下的trian函数下123行添加 add_centernet_config(cfg)在头文件中引入 from projects.CenterNet2.centernet.config import add_centernet_config 你可以尝试一下

JamesYang568 commented 1 year ago

same problem