I can't figure out why it's giving me 9 gray images in a 3x3 grid instead of just one color image (original image is not gray and has RGB channels). I have spent 5 hours on this. Thanks for the help.
Here is my code
test_path = "asl_data/test/" #path to the folder
test_data = torchvision.datasets.ImageFolder(test_path, transform=torchvision.transforms.ToTensor())
def test32():
for x, y in test_data:
print(x.shape)
x = x.reshape(533,800,3)
plt.axis("off")
plt.imshow(x)
plt.show()
plt.axis("off")
plt.imshow(x[:176,:267,:])
break
test32()