Last active
July 19, 2021 07:17
-
-
Save AmrutaKoshe/8a3bca12bfb5320e8d9f1e72f0b6e344 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
image=load_img("dog_photos/test/image4.jpg",target_size=(100,100)) | |
image=img_to_array(image) | |
image=image/255.0 | |
prediction_image=np.array(image) | |
prediction_image= np.expand_dims(image, axis=0) | |
prediction=model.predict(prediction_image) | |
value=np.argmax(prediction) | |
move_name=mapper(value) | |
print("Prediction is {}.".format(move_name)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment