Spaces:
Build error
Build error
Commit
·
39a4a2b
1
Parent(s):
e10000f
change plotting
Browse files
app.py
CHANGED
|
@@ -49,9 +49,11 @@ def FRFsegment(input_img):
|
|
| 49 |
pred = resize(mask, (w, h), preserve_range=True, clip=True)
|
| 50 |
|
| 51 |
#overlay plot
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
|
|
|
|
|
|
| 55 |
return plt
|
| 56 |
|
| 57 |
|
|
|
|
| 49 |
pred = resize(mask, (w, h), preserve_range=True, clip=True)
|
| 50 |
|
| 51 |
#overlay plot
|
| 52 |
+
plt.clf()
|
| 53 |
+
plt.imshow(input_img,cmap='gray')
|
| 54 |
+
plt.imshow(pred, alpha=0.4)
|
| 55 |
+
plt.axis("off")
|
| 56 |
+
plt.margins(x=0, y=0)
|
| 57 |
return plt
|
| 58 |
|
| 59 |
|