I am using PIL first to convert a saved image to grayscale then resize and convert to a tensor object using the following code:
gray_image = ImageOps.grayscale(img)

        resize = T.Compose([

                T.Resize((36,64))  # height, width

                ,T.ToTensor()

            ])

However, when i plot it using:
plt.figure()
plt.imshow(resize(gray_image).squeeze(0).permute(1, 2, 0).cpu(), interpolation='none')
plt.title('Non starting state example')
plt.show()

it shows me a plot like below that is not a grayscale.

Is it because of the way the tensor is plotted?