We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on this notebook: potato-disease-classification-model-using-image-data-generator.ipynb
The line: batch_prediction = model.predict(images_batch)
Getting an error on this line. images_batch was never defined (misspelling?).
That cell has to be removed. If you want to keep it alive, need following lines:
first_image = image_batch[0] first_label = np.argmax(label_batch[0])
plt.imshow(first_image)
img_array = tf.keras.preprocessing.image.img_to_array(first_image) img_array = tf.expand_dims(img_array, 0) predictions = model.predict(img_array) predicted_class = class_names[np.argmax(predictions[0])]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Error on this notebook:
potato-disease-classification-model-using-image-data-generator.ipynb
The line:
batch_prediction = model.predict(images_batch)
Getting an error on this line.
images_batch was never defined (misspelling?).
That cell has to be removed.
If you want to keep it alive, need following lines:
first_image = image_batch[0]
first_label = np.argmax(label_batch[0])
plt.imshow(first_image)
img_array = tf.keras.preprocessing.image.img_to_array(first_image)
img_array = tf.expand_dims(img_array, 0)
predictions = model.predict(img_array)
predicted_class = class_names[np.argmax(predictions[0])]
The text was updated successfully, but these errors were encountered: