I’m going through the Pytorch Transfer Learning tutorial at: http://pytorch.org/tutorials/beginner/transfer_learning_tutorial.html#visualize-a-few-images 14
In the data augmentation stage, there is the following step to normalize images:
transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])

I can understand why it’s doing this but I can’t find how the mean and std values get calculated? I tried to calculate the mean on the train data set and the mean values are:
array([ 0.11727478,  0.04542569, -0.28624609], dtype=float32)