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

[Fix] Fix swin load state_dict #2304

Merged
merged 1 commit into from Nov 15, 2022
Merged

Conversation

xiexinch
Copy link
Collaborator

Motivation

Fix the problem that state_dict is not loaded correctly.

Modification

Use self.load_state_dict instead of mmengine.runner.load_state_dict

@xiexinch xiexinch added the 1.x Related issue of 1.x version label Nov 15, 2022
@codecov
Copy link

codecov bot commented Nov 15, 2022

Codecov Report

Base: 83.55% // Head: 83.57% // Increases project coverage by +0.02% 🎉

Coverage data is based on head (fc25591) compared to base (a39b16f).
Patch coverage: 50.00% of modified lines in pull request are covered.

❗ Current head fc25591 differs from pull request most recent head 26e9729. Consider uploading reports for the commit 26e9729 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           dev-1.x    #2304      +/-   ##
===========================================
+ Coverage    83.55%   83.57%   +0.02%     
===========================================
  Files          141      141              
  Lines         7970     7970              
  Branches      1192     1192              
===========================================
+ Hits          6659     6661       +2     
+ Misses        1121     1119       -2     
  Partials       190      190              
Flag Coverage Δ
unittests 83.57% <50.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmseg/models/backbones/swin.py 83.56% <50.00%> (ø)
mmseg/models/backbones/timm_backbone.py 45.83% <0.00%> (+8.33%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@MeowZheng MeowZheng merged commit a06bf4d into open-mmlab:dev-1.x Nov 15, 2022
wjkim81 pushed a commit to wjkim81/mmsegmentation that referenced this pull request Dec 3, 2023
nahidnazifi87 pushed a commit to nahidnazifi87/mmsegmentation_playground that referenced this pull request Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.x Related issue of 1.x version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants