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: 'ChannelMapper is not in the neck registry' #84

Closed
yangxiaoyany opened this issue Jan 7, 2021 · 1 comment
Closed

KeyError: 'ChannelMapper is not in the neck registry' #84

yangxiaoyany opened this issue Jan 7, 2021 · 1 comment
Assignees

Comments

@yangxiaoyany
Copy link

hello,mmtracking is a good job .but when I train siamese rpn++,I encountered the key error.can you help to solve it,thank you very much.

Traceback (most recent call last):
File "tools/train.py", line 168, in
main()
File "tools/train.py", line 141, in main
model = build_model(cfg.model)
File "/media/yxy/4TB/ayxy/mmtracking/mmtrack/models/builder.py", line 69, in build_model
return build(cfg, MODELS)
File "/media/yxy/4TB/ayxy/mmtracking/mmtrack/models/builder.py", line 34, in build
return build_from_cfg(cfg, registry, default_args)
File "/home/yxy/anaconda3/envs/mmdet/lib/python3.7/site-packages/mmcv/utils/registry.py", line 171, in build_from_cfg
return obj_cls(**args)
File "/media/yxy/4TB/ayxy/mmtracking/mmtrack/models/sot/siamrpn.py", line 31, in init
self.neck = build_neck(neck)
File "/media/yxy/4TB/ayxy/mmdetection/mmdet/models/builder.py", line 42, in build_neck
return build(cfg, NECKS)
File "/media/yxy/4TB/ayxy/mmdetection/mmdet/models/builder.py", line 32, in build
return build_from_cfg(cfg, registry, default_args)
File "/home/yxy/anaconda3/envs/mmdet/lib/python3.7/site-packages/mmcv/utils/registry.py", line 164, in build_from_cfg
f'{obj_type} is not in the {registry.name} registry')
KeyError: 'ChannelMapper is not in the neck registry'

@OceanPang OceanPang assigned OceanPang and GT9505 and unassigned OceanPang Jan 7, 2021
@yangxiaoyany
Copy link
Author

I found it is caused by mmdet version.old version do not have channel_mapper.py in mmdetection/mmdet/models/necks.

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