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

Import add_centernet_config from config.py to __init__.py #76

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SahilChachra
Copy link

@SahilChachra SahilChachra commented Jan 17, 2022

While using CenterNet2 in Detectron2, if add_centernet_config is not imported to init.py, it gives - KeyError: 'Non-existent config key: MODEL.ROI_BOX_HEAD.MULT_PROPOSAL_SCORE'.

As per other projects under Detectron2 (for example - panoptic_deeplab), we can see that init.py imports add_panoptic_deeplab_config from its own config.py and then we call add_panoptic_deeplab_config and pass the YAML path to this function.

In the case of panoptic_deeplab,

from detectron2.projects import panoptic_deeplab
panoptic_deeplab.add_panoptic_deeplab_config (cfg_path)

Since 'add_centernet_config' was missing from centernet's init.py , I added it and the error was resolved.

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

Successfully merging this pull request may close these issues.

1 participant