Commit
·
b25a6fa
1
Parent(s):
f0821bf
remove overlay
Browse files
app.py
CHANGED
|
@@ -101,14 +101,14 @@ def cellpose_segment(img):
|
|
| 101 |
|
| 102 |
outpix = plot_outlines(img, masks)
|
| 103 |
overlay = plot_overlay(img, masks)
|
| 104 |
-
|
| 105 |
-
return
|
| 106 |
|
| 107 |
# Gradio Interface
|
| 108 |
iface = gr.Interface(
|
| 109 |
fn=cellpose_segment,
|
| 110 |
inputs="image",
|
| 111 |
-
outputs=["image", "image", "image"
|
| 112 |
title="cellpose segmentation",
|
| 113 |
description="upload an image, then cellpose will segment it at a max size of 224x224"
|
| 114 |
)
|
|
|
|
| 101 |
|
| 102 |
outpix = plot_outlines(img, masks)
|
| 103 |
overlay = plot_overlay(img, masks)
|
| 104 |
+
print(outpix.shape)
|
| 105 |
+
return overlay, flows, masks
|
| 106 |
|
| 107 |
# Gradio Interface
|
| 108 |
iface = gr.Interface(
|
| 109 |
fn=cellpose_segment,
|
| 110 |
inputs="image",
|
| 111 |
+
outputs=["image", "image", "image"],
|
| 112 |
title="cellpose segmentation",
|
| 113 |
description="upload an image, then cellpose will segment it at a max size of 224x224"
|
| 114 |
)
|