Skip to content

Instantly share code, notes, and snippets.

@Gabe-flomo
Created September 28, 2020 19:39
Embed
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)
print(img.shape)
(224, 224, 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment