Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lbf4616 opened this issue Apr 7, 2021 · 5 comments
Closed

Comments

@lbf4616
Copy link

lbf4616 commented Apr 7, 2021

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.

@lbf4616 lbf4616 changed the title Please read & provide the following KeyError: 'Non-existent config key: MODEL.ROI_BOX_HEAD.MULT_PROPOSAL_SCORE' Apr 7, 2021
@xingyizhou
Copy link
Owner

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
Copy link
Author

lbf4616 commented Apr 8, 2021

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
Copy link

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
Copy link

Bin-ze commented Jun 7, 2021

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

@JamesYang568
Copy link

same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants