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