-
Notifications
You must be signed in to change notification settings - Fork 188
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
A problem when computes cifar10 mean and stdev #10
Comments
When you load the data with the "ToTensor()" transform on as is done by the author, it loads the data as BCHW, so the code is correct. |
@gsp-27, BTW, when I ran |
same problem, I think compute-cifar10-mean.py#L31 did has a mistake |
@zhaofenqiang Following my suggestion, you should modify compute-cifar10-mean.py#L31 to |
Hi, I found a problem in compute-cifar10-mean.py#L31.
The shape of
torchvision.datasets.CIFAR10.train_data
should be (50000, 32, 32, 3) instead of (50000, 3, 32, 32), so the code in line#31 should bepixels = data[:,:,:,i].ravel()
The text was updated successfully, but these errors were encountered: