MTP icon indicating copy to clipboard operation
MTP copied to clipboard

test wrong

Open LiYan0306 opened this issue 1 year ago • 3 comments

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

LiYan0306 avatar Oct 30 '24 01:10 LiYan0306

@LiYan0306 please registry it manually

DotWang avatar Nov 07 '24 15:11 DotWang

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.

soniamartinot avatar Nov 19 '24 14:11 soniamartinot

@soniamartinot in train.py, we import mmcv_custom

DotWang avatar Nov 20 '24 11:11 DotWang