Spaces:
Runtime error
Runtime error
Commit ·
c631ea0
1
Parent(s): ea20254
dimension fix
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ def predict(ash_image, model=model):
|
|
| 61 |
#ash_image = np.load(ash_image)[...,4]
|
| 62 |
ash_image = np.asarray(ash_image)
|
| 63 |
y_pred = model.predict(ash_image.reshape(1,256, 256, 3))
|
| 64 |
-
prediction = np.argmax(y_pred[0], axis=2).reshape(256,256
|
| 65 |
#intersection = label & prediction
|
| 66 |
#false_negative = label - intersection
|
| 67 |
#false_possitive = prediction - intersection
|
|
|
|
| 61 |
#ash_image = np.load(ash_image)[...,4]
|
| 62 |
ash_image = np.asarray(ash_image)
|
| 63 |
y_pred = model.predict(ash_image.reshape(1,256, 256, 3))
|
| 64 |
+
prediction = np.argmax(y_pred[0], axis=2).reshape(256,256)
|
| 65 |
#intersection = label & prediction
|
| 66 |
#false_negative = label - intersection
|
| 67 |
#false_possitive = prediction - intersection
|