I have an numpy array which is of all images from CIFAR10 dataset:
(50000, 3072)
I am taking a single array out of it, its shape is (3072,)
then am trying to convert it to RGB image by doing
.reshape(32, 32, 3)
But when I pass it to plt.show() it shows something like
I am not sure why it is not showing the image correctly, I also tried
.reshape(3, 32, 32) but it gives TypeError: Invalid shape (3, 32, 32) for image data while plotting
How do I reshape it correctly?