I have a rather simple question. I found that torchvision’s normalization is not producing expected results. After normalization, I expect the max and minimum values to be in the range of -1 and 1 but apparently it is not the case. Am I doing anything wrong? Thank you very much for your help in advance
transforms = transforms.Compose([transforms.ToTensor(), transforms.Normalize(mean=[0.04717693328857422], std=[0.12218446918562346])])
print(torch.max(image_array_copy)) #tensor(176)
print(torch.min(image_array_copy)) #tensor(0)
image_array_copy = np.expand_dims(image_array_copy, axis=2)
image_array_copy = image_array_copy.reshape(image_array_copy.shape[-1], image_array_copy.shape[0], image_array_copy.shape[1])
#Image shape now: (1, 384, 384)
image_array_copy = transforms(image_array_copy)
print(torch.max(image_array_copy)) #tensor(176.)
print(torch.min(image_array_copy)) #tensor(-0.3861)