Commit
·
3e01cd2
1
Parent(s):
d22dc1f
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def gen_pred(img, model=seg_model):
|
|
64 |
img = tf.expand_dims(img, axis=0)
|
65 |
pred = model.predict(img)
|
66 |
pred = np.squeeze(pred, axis=0)
|
67 |
-
pil_img = Image.fromarray((
|
68 |
# pil_img = Image.fromarray(pred, 'RGB')
|
69 |
# im = Image.fromarray((pred * 255).astype(np.uint8))
|
70 |
# img_bytes = pred.tobytes()
|
|
|
64 |
img = tf.expand_dims(img, axis=0)
|
65 |
pred = model.predict(img)
|
66 |
pred = np.squeeze(pred, axis=0)
|
67 |
+
pil_img = Image.fromarray((pred * 255).astype(np.uint8))
|
68 |
# pil_img = Image.fromarray(pred, 'RGB')
|
69 |
# im = Image.fromarray((pred * 255).astype(np.uint8))
|
70 |
# img_bytes = pred.tobytes()
|