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 for loading models with num_batches_tracked in frozen batch norm #1728

Merged
merged 1 commit into from
Jan 10, 2020

Conversation

szagoruyko
Copy link
Contributor

Fixes wide_resnet model loading with frozen batch norm which unlike other resnets have num_batches_tracked buffer. Errors out in load_state_dict without this. Suggested by @fmassa

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @szagoruyko !

I need to fix CI first before merging this, I'll get it fixed soon.

@szagoruyko szagoruyko force-pushed the fix-frozen-bn-loading branch from 983bcc0 to 5bcc337 Compare January 10, 2020 13:17
@codecov-io
Copy link

codecov-io commented Jan 10, 2020

Codecov Report

Merging #1728 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1728      +/-   ##
=========================================
- Coverage    0.28%   0.28%   -0.01%     
=========================================
  Files          92      92              
  Lines        7337    7342       +5     
  Branches     1106    1107       +1     
=========================================
  Hits           21      21              
- Misses       7308    7313       +5     
  Partials        8       8
Impacted Files Coverage Δ
torchvision/ops/misc.py 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update be6dd47...5bcc337. Read the comment docs.

@fmassa fmassa merged commit 61763fa into pytorch:master Jan 10, 2020
fmassa pushed a commit to fmassa/vision-1 that referenced this pull request Jan 28, 2020
facebook-github-bot pushed a commit that referenced this pull request Jan 28, 2020
Summary: Pull Request resolved: #1815

Reviewed By: javier-m

Differential Revision: D19599121

Pulled By: fmassa

fbshipit-source-id: 9ecc14d232ad3c32fbbf847c4241d4a3c6cd4692
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

Successfully merging this pull request may close these issues.

3 participants