Commit
·
5fa8922
1
Parent(s):
958ea27
shape
Browse files
app.py
CHANGED
|
@@ -102,8 +102,8 @@ def cellpose_segment(img_input):
|
|
| 102 |
masks = cv2.resize(masks.astype('uint16'), target_size, interpolation=cv2.INTER_NEAREST).astype('uint16')
|
| 103 |
flows = cv2.resize(flows.astype('float32'), target_size).astype('uint8')
|
| 104 |
|
| 105 |
-
outpix = plot_outlines(
|
| 106 |
-
overlay = plot_overlay(
|
| 107 |
return outpix, overlay, flows, masks
|
| 108 |
|
| 109 |
# Gradio Interface
|
|
|
|
| 102 |
masks = cv2.resize(masks.astype('uint16'), target_size, interpolation=cv2.INTER_NEAREST).astype('uint16')
|
| 103 |
flows = cv2.resize(flows.astype('float32'), target_size).astype('uint8')
|
| 104 |
|
| 105 |
+
outpix = plot_outlines(img_input, masks)
|
| 106 |
+
overlay = plot_overlay(img_input, masks)
|
| 107 |
return outpix, overlay, flows, masks
|
| 108 |
|
| 109 |
# Gradio Interface
|