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

mmengine::visualizer registry problem #35

Open
sucessfullys opened this issue Feb 18, 2025 · 2 comments
Open

mmengine::visualizer registry problem #35

sucessfullys opened this issue Feb 18, 2025 · 2 comments

Comments

@sucessfullys
Copy link

02/18 14:36:24 - mmengine - WARNING - Failed to import None.registry make sure the registry.py exists in None package.
02/18 14:36:24 - mmengine - WARNING - Failed to search registry with scope "mmrotate" in the "visualizer" registry tree. As a workaround, the current "visualizer" registry in "mmengine" is used to build instance. This may cause unexpected failure when running the built modules. Please check whether "mmrotate" is a correct scope, or whether the registry is initialized.
Traceback (most recent call last):
File "tools/test.py", line 149, in
main()
File "tools/test.py", line 131, in main
runner = Runner.from_cfg(cfg)
File "/home/duanyf/miniconda3/envs/Detection/lib/python3.8/site-packages/mmengine/runner/runner.py", line 462, in from_cfg
runner = cls(
File "/home/duanyf/miniconda3/envs/Detection/lib/python3.8/site-packages/mmengine/runner/runner.py", line 416, in init
self.visualizer = self.build_visualizer(visualizer)
File "/home/duanyf/miniconda3/envs/Detection/lib/python3.8/site-packages/mmengine/runner/runner.py", line 803, in build_visualizer
return VISUALIZERS.build(visualizer)
File "/home/duanyf/miniconda3/envs/Detection/lib/python3.8/site-packages/mmengine/registry/registry.py", line 570, in build
return self.build_func(cfg, *args, **kwargs, registry=self)
File "/home/duanyf/miniconda3/envs/Detection/lib/python3.8/site-packages/mmengine/registry/build_functions.py", line 100, in build_from_cfg
raise KeyError(
KeyError: 'RotLocalVisualizer is not in the mmengine::visualizer registry. Please check whether the value of RotLocalVisualizer is correct or it was registered as expected. More details can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module'
Thanks for your help。

@sucessfullys
Copy link
Author

KeyError: 'RVSA_MTP_branches is not in the mmdet::model registry. Please check whether the value of RVSA_MTP_branches is correct or it was registered as expected. More details can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module'
same problem

@DotWang
Copy link
Collaborator

DotWang commented Feb 19, 2025

@sucessfullys see this: #33, in addition, please check the installing sequence: MMCV, MMEngine, MMDetection, MMRotate

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

2 participants