Skip to content

Instantly share code, notes, and snippets.

@Crazz-Zaac
Created January 2, 2021 09:32
Show Gist options
  • Save Crazz-Zaac/fb5298ae7451b9fe886e50df05b432f0 to your computer and use it in GitHub Desktop.
Save Crazz-Zaac/fb5298ae7451b9fe886e50df05b432f0 to your computer and use it in GitHub Desktop.
Pass your image to the model and check
img_path = 'images/pic5.jpeg' ##location to you image
img = image.load_img(img_path, target_size=(64, 64))
imshow(img)
x = image.img_to_array(img)
x = np.expand_dims(x, axis=0)
x = preprocess_input(x)
print(happyModel.predict(x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment