Commit
·
07bc3be
1
Parent(s):
49c6db7
add requirements
Browse files
app.py
CHANGED
|
@@ -67,7 +67,7 @@ def image_resize(img, resize=224):
|
|
| 67 |
|
| 68 |
def cellpose_segment(img):
|
| 69 |
img_input = image_resize(img)
|
| 70 |
-
masks, flows, _ = model.eval(img_input)
|
| 71 |
flows = flows[0]
|
| 72 |
# masks = np.zeros(img.shape[:2])
|
| 73 |
# flows = np.zeros_like(img)
|
|
|
|
| 67 |
|
| 68 |
def cellpose_segment(img):
|
| 69 |
img_input = image_resize(img)
|
| 70 |
+
masks, flows, _ = model.eval(img_input, channels=[0,0])
|
| 71 |
flows = flows[0]
|
| 72 |
# masks = np.zeros(img.shape[:2])
|
| 73 |
# flows = np.zeros_like(img)
|