You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like the std values were computed by averaging the individual image std values (I was able to reproduce them that way).
In other words, they were calculated using:
all_images.std(dim=(2,3)).mean(dim=0)
instead of
all_images.std(dim=(0, 2, 3))
This is also how the normalization constants in ImageNet came about (see pytorch/vision#1965).
Although, I'd argue this is not exactly calculating the standard deviation over the entire dataset (as pointed out here and also how the torchvision issue referred above came about), I agree with the comment made here and think that retraining the models here (for CIFAR10) also would not make sense.
Hi,
the value of
std
in the config file:image-classification-codebase/conf/cifar10.conf
Line 22 in 19a5ce6
seems to be wrong. It should be
[0.2470, 0.2435, 0.2616]
instead.See this comment.
Some code to calculate it:
The text was updated successfully, but these errors were encountered: