Hello, I was recently doing some image pre-processing  using Pytorch. I use PIL to load a 1 channel image from disk, then I use PIL.ImageStat(img).mean and  PIL.ImageStat(img).stddev to obtain the mean and standard deviation of this image. After this, i converted the PIL image into tensor by using  torchvison.transforms.ToTensor() . Finally, I use torchvison.transforms.Normalize() to normalize the tensor image.
The problem is, the value of the maximum pixel of the tensor image will above 1.0. And the normalized image looks wierd. Did I make any mistakes？
Many thanks!

企业微信截图_15825135728763754×879 228 KB