pytorch plt.imshow

plt.imshow(images[0].permute(1, 2, 0))

Here is what the above code is Doing:
1. We’re using the torchvision.datasets.ImageFolder class to load the images.
2. We’re using the torchvision.transforms.Compose class to compose the transforms.
3. We’re using the torchvision.transforms.Resize class to resize the images.
4. We’re using the torchvision.transforms.ToTensor class to convert the images to tensors.
5. We’re using the torchvision.transforms.Normalize class to normalize the images.
6. We’re using the torchvision.utils.make_grid class to make a grid of images.
7. We’re using the matplotlib.pyplot.imshow function to show the image.