Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,12 @@ def do_prediction(img):
|
|
61 |
img_patch = img[index_y_d:index_y_u, index_x_d:index_x_u, :]
|
62 |
label_p_pred = model.predict(img_patch.reshape(1, img_patch.shape[0], img_patch.shape[1], img_patch.shape[2]),
|
63 |
verbose=0)
|
|
|
|
|
|
|
64 |
seg = np.argmax(label_p_pred, axis=2)
|
|
|
|
|
65 |
seg_color = np.repeat(seg[:, :, np.newaxis], 3, axis=2)
|
66 |
|
67 |
if i == 0 and j == 0:
|
|
|
61 |
img_patch = img[index_y_d:index_y_u, index_x_d:index_x_u, :]
|
62 |
label_p_pred = model.predict(img_patch.reshape(1, img_patch.shape[0], img_patch.shape[1], img_patch.shape[2]),
|
63 |
verbose=0)
|
64 |
+
|
65 |
+
print(label_p_pred.shape,'label_p_pred')
|
66 |
+
print(img_patch.shape, 'img_patch')
|
67 |
seg = np.argmax(label_p_pred, axis=2)
|
68 |
+
|
69 |
+
print(seg.shape, 'seg')
|
70 |
seg_color = np.repeat(seg[:, :, np.newaxis], 3, axis=2)
|
71 |
|
72 |
if i == 0 and j == 0:
|