Commit
·
1bc3133
1
Parent(s):
c5f8c89
Update app.py
Browse files
app.py
CHANGED
@@ -63,6 +63,7 @@ def gen_pred(img, model=seg_model):
|
|
63 |
img = tf.expand_dims(img, axis=0)
|
64 |
pred = model.predict(img)
|
65 |
pred = np.squeeze(pred, axis=0)
|
|
|
66 |
# img_bytes = pred.tobytes()
|
67 |
# nparr = np.frombuffer(img_bytes, np.byte)
|
68 |
# pred_pil = cv2.imdecode(nparr, cv2.IMREAD_REDUCED_COLOR_8)
|
|
|
63 |
img = tf.expand_dims(img, axis=0)
|
64 |
pred = model.predict(img)
|
65 |
pred = np.squeeze(pred, axis=0)
|
66 |
+
print(pred)
|
67 |
# img_bytes = pred.tobytes()
|
68 |
# nparr = np.frombuffer(img_bytes, np.byte)
|
69 |
# pred_pil = cv2.imdecode(nparr, cv2.IMREAD_REDUCED_COLOR_8)
|