Skip to content

在构建检测器的时候显示:KeyError: "CascadeRCNN: 'SwinTransformer is not in the backbone registry'" #9

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

Closed
TfeiSong opened this issue Apr 19, 2021 · 4 comments

Comments

@TfeiSong
Copy link

执行这行时:
model = build_detector(
cfg.model,
train_cfg=cfg.get('train_cfg'),
test_cfg=cfg.get('test_cfg'))

出现如下错误:
KeyError: "CascadeRCNN: 'SwinTransformer is not in the backbone registry'"

@leiqing1
Copy link

需要把下载的Swin-Transformer-Object-Detection工程安装下,执行python setup.py develop 后,即可正常运行.

@HHaa-gif
Copy link

修改mmdet版本为2.11.0

@Lodour
Copy link

Lodour commented Aug 6, 2021

补充说明一下,README 里链接的安装步骤 get_started 是针对 MMDetection 的,具体问题在下面这一步:

git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection
pip install -r requirements/build.txt
pip install -v -e .  # or "python setup.py develop"

这里应该改成:

git clone https://github.com/SwinTransformer/Swin-Transformer-Object-Detection.git
cd Swin-Transformer-Object-Detection
pip install -r requirements/build.txt
python setup.py develop

尽量避免跑上面那一份代码,否则可能会导致一些奇怪的问题,建议作者在 README 里说明一下。

@impiga
Copy link
Member

impiga commented Dec 6, 2021

As @leiqing1 and @Lodour figured out, please run python setup.py develop in the Swin-Transformer-Object-Detection folder.

@impiga impiga closed this as completed Dec 6, 2021
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

5 participants