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

pytorch pretrained vgg #5

Open
davidebaltieri31 opened this issue Nov 13, 2020 · 1 comment
Open

pytorch pretrained vgg #5

davidebaltieri31 opened this issue Nov 13, 2020 · 1 comment

Comments

@davidebaltieri31
Copy link

Not an issue per se, more like a suggestion.

I see you use pytorch pretrained vgg without correctly normalizing the image (all pytorch pretrained models assume the image was normalized with transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]) )

Retraining with the correct normalization might give you even better results.

@zakajd
Copy link

zakajd commented Jan 12, 2021

They actually do normalize images in forward_once function, using self.mean and self.std constants

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