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

Bug in swin backbone #1993

Closed
Jaykob opened this issue Feb 21, 2023 · 3 comments
Closed

Bug in swin backbone #1993

Jaykob opened this issue Feb 21, 2023 · 3 comments
Assignees
Labels
info/1.x Issue/PR related to branch 1.x kind/bug something isn't working priority/P1 high priority

Comments

@Jaykob
Copy link

Jaykob commented Feb 21, 2023

Describe the bug

When trying to train a swin net, for example with configs/body_2d_keypoint/topdown_heatmap/coco/td-hm_swin-b-p4-w7_8xb32-210e_coco-256x192.py, it fails because in line 680

if list(state_dict.keys())[0].startswith('module.'):

you try to access the first element of an empty OrderedDict (just created one line above). Did you mean to access _state_dict instead of state_dict?

Reproduction

  • What command or script did you run?
 python tools/train.py configs/body_2d_keypoint/topdown_heatmap/coco/td-hm_swin-b-p4-w7_8xb32-210e_coco-256x192.py
  • What config did you run?
configs/body_2d_keypoint/topdown_heatmap/coco/td-hm_swin-b-p4-w7_8xb32-210e_coco-384x288.py
@ly015
Copy link
Member

ly015 commented Feb 22, 2023

Thanks very much for reporting this bug. We will fix it asap.

@ly015 ly015 added the info/1.x Issue/PR related to branch 1.x label Feb 22, 2023
@ly015
Copy link
Member

ly015 commented Feb 22, 2023

This bug will be fixed in #1995 in dev-1.x branch first. And it will be merged into the mainstream 1.x branch in the next release, which should be soon.

@Jaykob
Copy link
Author

Jaykob commented Feb 22, 2023

Nice, thanks for the very quick fix 🙂

@ly015 ly015 closed this as completed Feb 22, 2023
@ly015 ly015 added kind/bug something isn't working priority/P1 high priority labels Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info/1.x Issue/PR related to branch 1.x kind/bug something isn't working priority/P1 high priority
Projects
None yet
Development

No branches or pull requests

3 participants