transform = transforms.Compose([transforms.ToTensor(),
transforms.Normalize((0.5,0.5,0.5)
, (0.5,0.5,0.5))])
I have seen people normlize the pictures this way, I know we do it because after using transforms.ToTensor() the return values range from [0,1], my question is why are we defining mean and std values ourselves? Shouldn’t we actually calculate what the mean and std would be in each case?