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

作者大大,你好,我opencd训练changer的时候没有问题,但是在测试changer的时候报错('CDLocalVisualizer is not in the mmengine),还请指点。 #126

Open
heyujiang1 opened this issue Oct 12, 2024 · 0 comments

Comments

@heyujiang1
Copy link

10/12 22:34:30 - mmengine - WARNING - Failed to import None.registry make sure the registry.py exists in None packag
e.
10/12 22:34:30 - mmengine - WARNING - Failed to search registry with scope "opencd" in the "visualizer" registry tree. A
s a workaround, the current "visualizer" registry in "mmengine" is used to build instance. This may cause unexpected fai
lure when running the built modules. Please check whether "opencd" is a correct scope, or whether the registry is initia
lized.
Traceback (most recent call last):
File "E:\hyjcode\open-cd-main\tools\test.py", line 114, in
main()
File "E:\hyjcode\open-cd-main\tools\test.py", line 107, in main
runner = Runner.from_cfg(cfg)
File "E:\Anaconda-File\envs\pytorch\lib\site-packages\mmengine\runner\runner.py", line 462, in from_cfg
runner = cls(
File "E:\Anaconda-File\envs\pytorch\lib\site-packages\mmengine\runner\runner.py", line 416, in init
self.visualizer = self.build_visualizer(visualizer)
File "E:\Anaconda-File\envs\pytorch\lib\site-packages\mmengine\runner\runner.py", line 803, in build_visualizer
return VISUALIZERS.build(visualizer)
File "E:\Anaconda-File\envs\pytorch\lib\site-packages\mmengine\registry\registry.py", line 570, in build
return self.build_func(cfg, *args, **kwargs, registry=self)
File "E:\Anaconda-File\envs\pytorch\lib\site-packages\mmengine\registry\build_functions.py", line 100, in build_from_c
fg
raise KeyError(
KeyError: 'CDLocalVisualizer is not in the mmengine::visualizer registry. Please check whether the value of CDLocalVisu alizer is correct or it was registered as expected. More details can be found at https://mmengine.readthedocs.io/en/lat
est/advanced_tutorials/config.html#import-the-custom-module'
作者大大,你好,我opencd训练changer的时候没有问题,但是在测试changer的时候报错,还请指点。

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

1 participant