After installing the installation document, the following error occurred when running “tain.py”.
04/03 12:51:19 - mmengine - WARNING - Failed to import None.registry make sure the registry.py exists in None package.
04/03 12:51:19 - mmengine - WARNING - Failed to search registry with scope "mmselfsup" 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 "mmselfsup" is a correct scope, or whether the registry is initialized.
Traceback (most recent call last):
File "tools/train.py", line 96, in
main()
File "tools/train.py", line 89, in main
runner = Runner.from_cfg(cfg)
File "/root/miniconda3/envs/myconda/lib/python3.7/site-packages/mmengine/runner/runner.py", line 489, in from_cfg
cfg=cfg,
File "/root/miniconda3/envs/myconda/lib/python3.7/site-packages/mmengine/runner/runner.py", line 416, in init
self.visualizer = self.build_visualizer(visualizer)
File "/root/miniconda3/envs/myconda/lib/python3.7/site-packages/mmengine/runner/runner.py", line 803, in build_visualizer
return VISUALIZERS.build(visualizer)
File "/root/miniconda3/envs/myconda/lib/python3.7/site-packages/mmengine/registry/registry.py", line 570, in build
return self.build_func(cfg, *args, **kwargs, registry=self)
File "/root/miniconda3/envs/myconda/lib/python3.7/site-packages/mmengine/registry/build_functions.py", line 103, in build_from_cfg
f'{obj_type} is not in the {registry.scope}::{registry.name} registry. ' # noqa: E501
KeyError: 'SelfSupVisualizer is not in the mmengine::visualizer registry. Please check whether the value of SelfSupVisualizer 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'
I suspect that the registry has not been replaced, but I haven't found a solution. Has anyone encountered this problem?
After installing the installation document, the following error occurred when running “tain.py”.
04/03 12:51:19 - mmengine - WARNING - Failed to import
main()
File "tools/train.py", line 89, in main
runner = Runner.from_cfg(cfg)
File "/root/miniconda3/envs/myconda/lib/python3.7/site-packages/mmengine/runner/runner.py", line 489, in from_cfg
cfg=cfg,
File "/root/miniconda3/envs/myconda/lib/python3.7/site-packages/mmengine/runner/runner.py", line 416, in init
self.visualizer = self.build_visualizer(visualizer)
File "/root/miniconda3/envs/myconda/lib/python3.7/site-packages/mmengine/runner/runner.py", line 803, in build_visualizer
return VISUALIZERS.build(visualizer)
File "/root/miniconda3/envs/myconda/lib/python3.7/site-packages/mmengine/registry/registry.py", line 570, in build
return self.build_func(cfg, *args, **kwargs, registry=self)
File "/root/miniconda3/envs/myconda/lib/python3.7/site-packages/mmengine/registry/build_functions.py", line 103, in build_from_cfg
f'{obj_type} is not in the {registry.scope}::{registry.name} registry. ' # noqa: E501
KeyError: 'SelfSupVisualizer is not in the mmengine::visualizer registry. Please check whether the value of
None.registry
make sure the registry.py exists inNone
package. 04/03 12:51:19 - mmengine - WARNING - Failed to search registry with scope "mmselfsup" 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 "mmselfsup" is a correct scope, or whether the registry is initialized. Traceback (most recent call last): File "tools/train.py", line 96, inSelfSupVisualizer
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'I suspect that the registry has not been replaced, but I haven't found a solution. Has anyone encountered this problem?