Created
July 13, 2021 17:56
-
-
Save VedPDubey/9cbfa49c7092ef5f15e2049324eb0f6b 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
def custom_predictions(path): | |
img = ig.load_img(path, target_size=(64, 64)) | |
plt.imshow(img) | |
img = np.expand_dims(img, axis=0) | |
img.reshape(1,64,64,3) | |
prediction = np.argmax(model.predict(img)) | |
plt.title(labels[prediction]) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment