I am trying to read an image from a numpy array using PIL, by doing the following:
from PIL import Image import numpy as np #img is a np array with shape (3,
Try
img = np.reshape(256, 256, 3) Image.fromarray(img)