Commit
·
500a91d
1
Parent(s):
84f5196
Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,8 @@ def gen_pred(img, model=seg_model):
|
|
70 |
img = tf.expand_dims(img, axis=0)
|
71 |
pred = model.predict(img)
|
72 |
pred = np.squeeze(pred, axis=0)
|
73 |
-
fig = plt.figure(figsize=(10, 7))
|
|
|
74 |
fig.add_subplot(rows, columns, 1)
|
75 |
# plt.imshow(pred, interpolation='catrom')
|
76 |
plt.imshow(pred)
|
|
|
70 |
img = tf.expand_dims(img, axis=0)
|
71 |
pred = model.predict(img)
|
72 |
pred = np.squeeze(pred, axis=0)
|
73 |
+
# fig = plt.figure(figsize=(10, 7))
|
74 |
+
fig = plt.figure()
|
75 |
fig.add_subplot(rows, columns, 1)
|
76 |
# plt.imshow(pred, interpolation='catrom')
|
77 |
plt.imshow(pred)
|