Skip to content

Instantly share code, notes, and snippets.

Created September 28, 2020 19:39
What would you like to do?
# load the image as a 224x224 array
img = load_img(flowers[0], target_size=(224,224))
# convert from 'PIL.Image.Image' to numpy array
img = np.array(img)
(224, 224, 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment