yuragoithf commited on
Commit
68ae54e
·
1 Parent(s): a4c8a40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -63,7 +63,8 @@ def gen_pred(img, model=seg_model):
63
  img = img/255
64
  img = tf.expand_dims(img, axis=0)
65
  pred = model.predict(img)
66
- pred = np.squeeze(pred, axis=0)
 
67
  # img_bytes = pred.tobytes()
68
  # nparr = np.frombuffer(img_bytes, np.byte)
69
  # pred_pil = cv2.imdecode(nparr, cv2.IMREAD_REDUCED_COLOR_8)
 
63
  img = img/255
64
  img = tf.expand_dims(img, axis=0)
65
  pred = model.predict(img)
66
+ # pred = np.squeeze(pred, axis=0)
67
+
68
  # img_bytes = pred.tobytes()
69
  # nparr = np.frombuffer(img_bytes, np.byte)
70
  # pred_pil = cv2.imdecode(nparr, cv2.IMREAD_REDUCED_COLOR_8)