Update cnn_classification.py (#8570)

This commit is contained in:
Rohan Anand 2023-03-30 10:39:21 +05:30 committed by GitHub
parent ac111ee463
commit a71f22dae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ if __name__ == "__main__":
test_image = tf.keras.preprocessing.image.img_to_array(test_image)
test_image = np.expand_dims(test_image, axis=0)
result = classifier.predict(test_image)
training_set.class_indices
# training_set.class_indices
if result[0][0] == 0:
prediction = "Normal"
if result[0][0] == 1: