-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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: "MaskRCNN: 'RefineRoIHead is not in the models registry'" #5974
Comments
Hi, maybe you should check your environment. |
Hey, I have installed properly in the same folder. Basically I'm adding custom refine_mask_head.py in models/maskheads and also refine_roi_head.py in roi_heads. I made changes accordingly. Also using '@HEADS.register_module()' as discussed in mmdet documentation under customized models. Still do not know what is the issue of registry I'm facing. Can you tell me if you know more about this? Thank you in advance. |
Because the file is not imported. You need to update the corresponding |
Thank you for your response. I have sucessfully resolved the issue. |
i have the same issue, could you show me the solution? |
run: “pip install -v -e . " in your terminal, then solved |
Hello, this link is invalid, can you send it again? |
Hi, I think this is the updated link, but someone from the team could confirm. Thanks https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module |
Hello,
I'm new to mmdetection. I installed mmcv and mmdetection successfully on my windows. But When I train refine mask I'm getting this particular key error (which is mentioned in title). Please help me to solve this error and run successfully refine mask.
https://github.com/zhanggang001/RefineMask
Traceback (most recent call last):
File "tools/train.py", line 153, in
main()
File "tools/train.py", line 126, in main
cfg.model, train_cfg=cfg.train_cfg, test_cfg=cfg.test_cfg)
File "C:\AI\RefineMask\venv\lib\site-packages\mmdet\models\builder.py", line 58, in build_detector
cfg, default_args=dict(train_cfg=train_cfg, test_cfg=test_cfg))
File "C:\AI\RefineMask\venv\lib\site-packages\mmcv\utils\registry.py", line 212, in build
return self.build_func(*args, **kwargs, registry=self)
File "C:\AI\RefineMask\venv\lib\site-packages\mmcv\cnn\builder.py", line 27, in build_model_from_cfg
return build_from_cfg(cfg, registry, default_args)
File "C:\AI\RefineMask\venv\lib\site-packages\mmcv\utils\registry.py", line 55, in build_from_cfg
raise type(e)(f'{obj_cls.name}: {e}')
KeyError: "MaskRCNN: 'RefineRoIHead is not in the models registry'"
The text was updated successfully, but these errors were encountered: