Commit
·
d921f3c
1
Parent(s):
19fb473
Update app.py
Browse files
app.py
CHANGED
@@ -68,9 +68,10 @@ def gen_pred(img=inputs, model=seg_model):
|
|
68 |
img = tf.expand_dims(img, axis=0)
|
69 |
pred = model.predict(img)
|
70 |
pred = np.squeeze(pred, axis=0)
|
|
|
71 |
# color_coverted = cv2.cvtColor(pred, cv2.COLOR_BGR2RGB)
|
72 |
# pil_image = Image.fromarray(color_coverted)
|
73 |
-
return
|
74 |
|
75 |
|
76 |
title = "<h1 style='text-align: center;'>Semantic Segmentation</h1>"
|
|
|
68 |
img = tf.expand_dims(img, axis=0)
|
69 |
pred = model.predict(img)
|
70 |
pred = np.squeeze(pred, axis=0)
|
71 |
+
print(pred)
|
72 |
# color_coverted = cv2.cvtColor(pred, cv2.COLOR_BGR2RGB)
|
73 |
# pil_image = Image.fromarray(color_coverted)
|
74 |
+
return "UI in developing process ..."
|
75 |
|
76 |
|
77 |
title = "<h1 style='text-align: center;'>Semantic Segmentation</h1>"
|