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

Do not load pretrained VGG #466

Merged
merged 2 commits into from
Aug 12, 2021
Merged

Do not load pretrained VGG #466

merged 2 commits into from
Aug 12, 2021

Conversation

Yshuo-Li
Copy link
Collaborator

@Yshuo-Li Yshuo-Li commented Aug 5, 2021

No description provided.

@codecov
Copy link

codecov bot commented Aug 5, 2021

Codecov Report

Merging #466 (625b45c) into master (41c061f) will decrease coverage by 0.19%.
The diff coverage is 100.00%.

❗ Current head 625b45c differs from pull request most recent head 94ebf81. Consider uploading reports for the commit 94ebf81 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #466      +/-   ##
==========================================
- Coverage   80.54%   80.35%   -0.20%     
==========================================
  Files         190      190              
  Lines       10338    10260      -78     
  Branches     1533     1533              
==========================================
- Hits         8327     8244      -83     
- Misses       1781     1783       +2     
- Partials      230      233       +3     
Flag Coverage Δ
unittests 80.35% <100.00%> (-0.18%) ⬇️

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

Impacted Files Coverage Δ
mmedit/models/extractors/lte.py 95.65% <100.00%> (ø)
...ackbones/encoder_decoders/pconv_encoder_decoder.py 43.47% <0.00%> (-2.36%) ⬇️
mmedit/models/base.py 82.75% <0.00%> (-2.09%) ⬇️
mmedit/datasets/builder.py 91.07% <0.00%> (-1.79%) ⬇️
...ls/components/stylegan2/generator_discriminator.py 83.73% <0.00%> (-1.21%) ⬇️
...ones/encoder_decoders/two_stage_encoder_decoder.py 53.84% <0.00%> (-1.16%) ⬇️
...dels/backbones/encoder_decoders/encoders/resnet.py 66.01% <0.00%> (-0.97%) ⬇️
...s/backbones/encoder_decoders/gl_encoder_decoder.py 81.48% <0.00%> (-0.67%) ⬇️
mmedit/datasets/pipelines/normalization.py 88.88% <0.00%> (-0.59%) ⬇️
mmedit/models/components/stylegan2/modules.py 63.92% <0.00%> (-0.49%) ⬇️
... and 22 more

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 41c061f...94ebf81. Read the comment docs.

@@ -30,7 +30,7 @@ def __init__(self, requires_grad=True, pixel_range=1., pretrained=None):
pixel_range=pixel_range, img_mean=vgg_mean, img_std=vgg_std)

# use vgg19 weights to initialize
vgg_pretrained_features = models.vgg19(pretrained=True).features
vgg_pretrained_features = models.vgg19(pretrained=False).features
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the motivation of this change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Avoid downloading VGG in unittest of CI.

@Yshuo-Li Yshuo-Li changed the title Don not load pretrained VGG Do not load pretrained VGG Aug 6, 2021
@innerlee innerlee merged commit 8345720 into open-mmlab:master Aug 12, 2021
Yshuo-Li added a commit to Yshuo-Li/mmediting that referenced this pull request Jul 15, 2022
* Don not load pretrained VGG

* Add load_pretrained_vgg

Co-authored-by: liyinshuo <liyinshuo@sensetime.com>
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.

2 participants