Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_image(path):
- img = image.load_img(path, target_size=(224, 224))
- x = image.img_to_array(img)
- x = np.expand_dims(x, axis=0)
- x = preprocess_input(x)
- return img, x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement