Update app.py
Browse files
app.py
CHANGED
|
@@ -152,8 +152,8 @@ def cellpose_segment(img_input):
|
|
| 152 |
#crand = .2 + .8 * np.random.rand(np.max(masks.flatten()).astype('int')+1,).astype('float32')
|
| 153 |
#crand[0] = 0
|
| 154 |
|
| 155 |
-
|
| 156 |
-
|
| 157 |
#masks = Image.fromarray(255. * crand[masks])
|
| 158 |
|
| 159 |
pil_masks = Image.fromarray(masks.astype('int32'))
|
|
|
|
| 152 |
#crand = .2 + .8 * np.random.rand(np.max(masks.flatten()).astype('int')+1,).astype('float32')
|
| 153 |
#crand[0] = 0
|
| 154 |
|
| 155 |
+
overlay = Image.fromarray(overlay)
|
| 156 |
+
flows = Image.fromarray(flows)
|
| 157 |
#masks = Image.fromarray(255. * crand[masks])
|
| 158 |
|
| 159 |
pil_masks = Image.fromarray(masks.astype('int32'))
|