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

Imagenet pre-trained weights #15

Open
VlSomers opened this issue Aug 23, 2023 · 1 comment
Open

Imagenet pre-trained weights #15

VlSomers opened this issue Aug 23, 2023 · 1 comment

Comments

@VlSomers
Copy link

Dear authors, thank you for this amazing work.

I'm currently using your codebase, but I would like to use the imagenet SwinTransformer weights as pre-training, instead of the Swin-SOLIDER weights.
For this purpose, I'm setting <PRETRAIN_CHOICE = 'imagenet'> and <PRETRAIN_PATH='/path/to/imagenet_pretrained_weights'>. Where can I download the imagenet pre-trained weights that will work with your codebase?

From what I understood, I should go to the original SwinFormer repository (https://github.com/microsoft/Swin-Transformer) and download the weights there. Which weights should I download?

  • Swin-V1 or Swin-V2?
  • Swin-B?
  • 384x384 or 224x224?

Thank you for your help!

@cwhgn
Copy link
Collaborator

cwhgn commented Aug 24, 2023

We follow the swin implementation from mmdet, and download the swin model from official website. The mmdet swin implementation can load the official-website model as long as you set the convert_weights=True. More details can be found in mmdet.

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

2 participants