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

KeyError: 'SOLOv2 is not in the models registry' #5

Closed
yyyy1221 opened this issue Jul 26, 2021 · 0 comments
Closed

KeyError: 'SOLOv2 is not in the models registry' #5

yyyy1221 opened this issue Jul 26, 2021 · 0 comments

Comments

@yyyy1221
Copy link

Traceback (most recent call last):
  File "onnx_exporter_solov2.py", line 222, in <module>
    convert2onnx(args, dummy_input)
  File "onnx_exporter_solov2.py", line 87, in convert2onnx
    model = init_detector(args.config, args.checkpoint, device='cuda:0')
  File "/usr/local/lib/python3.6/dist-packages/mmdet/apis/inference.py", line 39, in init_detector
    model = build_detector(config.model, test_cfg=config.get('test_cfg'))
  File "/usr/local/lib/python3.6/dist-packages/mmdet/models/builder.py", line 58, in build_detector
    cfg, default_args=dict(train_cfg=train_cfg, test_cfg=test_cfg))
  File "/usr/local/lib/python3.6/dist-packages/mmcv/utils/registry.py", line 210, in build
    return self.build_func(*args, **kwargs, registry=self)
  File "/usr/local/lib/python3.6/dist-packages/mmcv/cnn/builder.py", line 26, in build_model_from_cfg
    return build_from_cfg(cfg, registry, default_args)
  File "/usr/local/lib/python3.6/dist-packages/mmcv/utils/registry.py", line 44, in build_from_cfg
    f'{obj_type} is not in the {registry.name} registry')
KeyError: 'SOLOv2 is not in the models registry'

I'm running on docker, but I keep getting this error.
Any help would be appreciated.

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