HI,
I am reading an image using pil, then transforming it into a tensor and then back into PIL. The result is different from the original image.

import glob
from PIL import Image
images=glob.glob("/root/data/amz//train_small/*jpg")
for image in images:
img = Image.open(image)
trans = transforms.ToPILImage()
trans1 = transforms.ToTensor()
plt.imshow(trans(trans1(img)))