mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +08:00
Update cnn_classification.py (#8570)
This commit is contained in:
@ -93,7 +93,7 @@ if __name__ == "__main__":
|
|||||||
test_image = tf.keras.preprocessing.image.img_to_array(test_image)
|
test_image = tf.keras.preprocessing.image.img_to_array(test_image)
|
||||||
test_image = np.expand_dims(test_image, axis=0)
|
test_image = np.expand_dims(test_image, axis=0)
|
||||||
result = classifier.predict(test_image)
|
result = classifier.predict(test_image)
|
||||||
training_set.class_indices
|
# training_set.class_indices
|
||||||
if result[0][0] == 0:
|
if result[0][0] == 0:
|
||||||
prediction = "Normal"
|
prediction = "Normal"
|
||||||
if result[0][0] == 1:
|
if result[0][0] == 1:
|
||||||
|
Reference in New Issue
Block a user