Skip to content

Instantly share code, notes, and snippets.

@Gabe-flomo
Created September 28, 2020 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gabe-flomo/b03896826735ce2ec593ac4356681639 to your computer and use it in GitHub Desktop.
Save Gabe-flomo/b03896826735ce2ec593ac4356681639 to your computer and use it in GitHub Desktop.
# 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