open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io
Apache License 2.0
29.74k stars 9.48k forks source link

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

Closed TfeiSong closed 3 years ago

TfeiSong commented 3 years ago

Thanks for your error report and we appreciate it a lot.

Checklist

  1. I have searched related issues but cannot get the expected help.
  2. I have read the FAQ documentation but cannot get the expected help.
  3. The bug has not been fixed in the latest version.

Describe the bug A clear and concise description of what the bug is.

Reproduction

  1. What command or script did you run?
A placeholder for the command.
  1. Did you make any modifications on the code or config? Did you understand what you have modified?
  2. What dataset did you use?

Environment

  1. Please run python mmdet/utils/collect_env.py to collect necessary environment information and paste it here.
  2. You may add addition that may be helpful for locating the problem, such as
    • How you installed PyTorch [e.g., pip, conda, source]
    • Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)

Error traceback If applicable, paste the error trackback here.

A placeholder for trackback.

Bug fix If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!

TfeiSong commented 3 years ago

执行这行时:
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'"

jshilong commented 3 years ago

We have not yet supported SwinTransformer, we would support it in the next month.

artuncF commented 3 years ago

@jshilong You mentioned that the SwinTransformer would be supported, regarding the time you gave it should be supported now. Is there any advancement in this process?