Update app.py
Browse files
app.py
CHANGED
|
@@ -187,7 +187,8 @@ def cellpose_segment(filepath, resize = 1000,max_iter = 250):
|
|
| 187 |
masks, flows = run_model_gpu240(img, max_iter)
|
| 188 |
else:
|
| 189 |
raise ValueError("Image size must be less than 20,000")
|
| 190 |
-
|
|
|
|
| 191 |
target_size = (img_input.shape[1], img_input.shape[0])
|
| 192 |
if (target_size[0]!=img.shape[1] or target_size[1]!=img.shape[0]):
|
| 193 |
# scale it back to keep the orignal size
|
|
|
|
| 187 |
masks, flows = run_model_gpu240(img, max_iter)
|
| 188 |
else:
|
| 189 |
raise ValueError("Image size must be less than 20,000")
|
| 190 |
+
|
| 191 |
+
print(masks.max())
|
| 192 |
target_size = (img_input.shape[1], img_input.shape[0])
|
| 193 |
if (target_size[0]!=img.shape[1] or target_size[1]!=img.shape[0]):
|
| 194 |
# scale it back to keep the orignal size
|