mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
Update cnn_classification.py (#8570)
This commit is contained in:
parent
ac111ee463
commit
a71f22dae5
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user