Hi, I would like to normalize the image data to the range [-1,1], Here is the code I used to do the transform.
compose_T1 = transforms.Compose([transforms.ToPILImage(),
transforms.Resize((128,128),interpolation=Image.NEAREST),
transforms.ToTensor(),
transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))])
But after the transform, I find my data is in the range [-1,0.3412], checking the original data, I find out my orignal data range is [0,172], in this case, should I do the preprocess using data/172*255 in order to get the final data range [-1,1]?