-
-
Save Gabe-flomo/b03896826735ce2ec593ac4356681639 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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