Open dlmacedo opened 7 years ago
Great! It works much better than the previous one. Could you explain more about how did you compute those values? Thanks
@tyunist Hi, here is my code for how to compute those value, hope it helps :)
Great! Thanks, Armour.
Based on your code, I found out a bug in my code causing worse performance after standardization.
Nice, I'm glad I could help :)
Hi guys, Any idea why the pytorch CIFAR10 example uses: transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5)?
And while I'm asking, why do you do: transforms.RandomCrop(32, padding=4)?
I.e. aren't the images already 32x32? And why pad the images? Thanks! Neta
@netaz I think after set padding=4 the image become 40 x 40, random crop operator can get more result. If we do not set padding=4, random crop only get origin image.
@luuuyi yes, I agree with you. This occurred to me some time after I posted the question, but I didn't think to update here. Thanks for answer!
the behaviour of RandomCrop(32, padding=4)
still wasn't clear to me after reading the documentation and reading this issue, so I did a little digging.
It order, it does
The result is weird black lines around a chopped off version of the original image
eg, original:
after RandomCrop(32, padding=4)
transformation:
Thank you @gobbedy. this is very helpful!
Correct normalization values for CIFAR-10: (0.4914, 0.4822, 0.4465), (0.247, 0.243, 0.261)