@ATTENTION.register_module()
class ShiftWindowMSA(BaseModule):
...
To Reproduce
The command you executed.
>>> import mmcls.models.utils
>>> import mmseg.models.backbones
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/tannery/model-etl/.venv/lib/python3.8/site-packages/mmseg/models/__init__.py", line 1, in <module>
from .backbones import * # noqa: F401,F403
File "/home/ubuntu/tannery/model-etl/.venv/lib/python3.8/site-packages/mmseg/models/backbones/__init__.py", line 9, in <module>
from .swin import SwinTransformer
File "/home/ubuntu/tannery/model-etl/.venv/lib/python3.8/site-packages/mmseg/models/backbones/swin.py", line 201, in <module>
class ShiftWindowMSA(BaseModule):
File "/home/ubuntu/tannery/model-etl/.venv/lib/python3.8/site-packages/mmcv/utils/registry.py", line 309, in _register
self._register_module(
File "/home/ubuntu/tannery/model-etl/.venv/lib/python3.8/site-packages/mmcv/utils/registry.py", line 244, in _register_module
raise KeyError(f'{name} is already registered '
KeyError: 'ShiftWindowMSA is already registered in attention'
Post related information
The output of pip list | grep "mmcv\|mmcls\|^torch"
Describe the bug
Both
mmcls
(0.13.0) andmmseg
(0.15.0) have:To Reproduce
The command you executed.
Post related information
pip list | grep "mmcv\|mmcls\|^torch"
mmcls
folder. None