Created
January 2, 2021 09:32
-
-
Save Crazz-Zaac/fb5298ae7451b9fe886e50df05b432f0 to your computer and use it in GitHub Desktop.
Pass your image to the model and check
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
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