yuragoithf commited on
Commit
653cbef
·
1 Parent(s): 749114e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -69,8 +69,8 @@ def gen_pred(img, model=seg_model):
69
  # pil_img = Image.fromarray(pred, 'RGB')
70
 
71
  # importing Image from PIL
72
- # img_tmp = cv2.cvtColor(pred, cv2.COLOR_BGR2RGB)
73
- im_PIL = Image.fromarray(pred)
74
  # im = Image.fromarray((pred * 255).astype(np.uint8))
75
  # img_bytes = pred.tobytes()
76
  # nparr = np.frombuffer(img_bytes, np.byte)
 
69
  # pil_img = Image.fromarray(pred, 'RGB')
70
 
71
  # importing Image from PIL
72
+ img_tmp = cv2.cvtColor(pred, cv2.COLOR_BGR2RGB)
73
+ im_PIL = Image.fromarray(img_tmp)
74
  # im = Image.fromarray((pred * 255).astype(np.uint8))
75
  # img_bytes = pred.tobytes()
76
  # nparr = np.frombuffer(img_bytes, np.byte)