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

test wrong #29

Open
LiYan0306 opened this issue Oct 30, 2024 · 3 comments
Open

test wrong #29

LiYan0306 opened this issue Oct 30, 2024 · 3 comments

Comments

@LiYan0306
Copy link

How can i fix this problem:
KeyError: 'RVSA_MTP is not in the opencd::model registry. Please check whether the value of RVSA_MTP 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'
屏幕截图 2024-10-30 094323

@DotWang
Copy link
Collaborator

DotWang commented Nov 7, 2024

@LiYan0306 please registry it manually

@soniamartinot
Copy link

soniamartinot commented Nov 19, 2024

Hi I'm having a similar issue:

Traceback (most recent call last):
File "mmdetection/tools/train.py", line 121, in
main()
File "mmdetection/tools/train.py", line 117, in main
runner.train()
File "/home/smartinot/MTP/mmengine/mmengine/runner/runner.py", line 1733, in train
self.optim_wrapper = self.build_optim_wrapper(self.optim_wrapper)
File "/home/smartinot/MTP/mmengine/mmengine/runner/runner.py", line 1114, in build_optim_wrapper
return build_optim_wrapper(self.model, optim_wrapper)
File "/home/smartinot/MTP/mmengine/mmengine/optim/optimizer/builder.py", line 205, in build_optim_wrapper
optim_wrapper_constructor = OPTIM_WRAPPER_CONSTRUCTORS.build(
File "/home/smartinot/MTP/mmengine/mmengine/registry/registry.py", line 570, in build
return self.build_func(cfg, *args, **kwargs, registry=self)
File "/home/smartinot/MTP/mmengine/mmengine/registry/build_functions.py", line 100, in build_from_cfg
raise KeyError(
KeyError: 'LayerDecayOptimizerConstructor_ViT is not in the mmdet::optimizer constructor registry. Please check whether the value of LayerDecayOptimizerConstructor_ViT 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'

How do you register "manually" ? I added the files in mmdet.optimizers and modified the init accordingly and I still get the error. Where do I need to copy paste the files that you provided in mmcv_custom ?

Thanks.

@DotWang
Copy link
Collaborator

DotWang commented Nov 20, 2024

@soniamartinot in train.py, we import mmcv_custom

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

3 participants