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

How to get these data(means = [0.485, 0.456, 0.406] stds = [0.229, 0.224, 0.225]) in your code? #6

Closed
zhangrong1722 opened this issue Jan 20, 2018 · 2 comments

Comments

@zhangrong1722
Copy link

In your code same data is as follows:
means = [0.485, 0.456, 0.406] stds = [0.229, 0.224, 0.225]
These are not standard deviation and mean of single image(both.png in your project).And I wonder how to get these data.
Thank you!

@sumitbinnani
Copy link

This is from the imagenet data.

@tsaizehua
Copy link

It is the mean and std of the train dataset, you may calculate it and then normalize the train dataset. https://discuss.pytorch.org/t/normalization-in-the-mnist-example/457/10

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

4 participants