Update app.py
Browse files
app.py
CHANGED
|
@@ -121,7 +121,7 @@ def cellpose_segment(img_input):
|
|
| 121 |
outpix = plot_outlines(img_input, masks)
|
| 122 |
overlay = plot_overlay(img_input, masks)
|
| 123 |
|
| 124 |
-
crand = .2 + .8 * np.random.rand(np.max(masks.flatten()).astype('int')+1,
|
| 125 |
crand[0] = 0
|
| 126 |
|
| 127 |
overlay = Image.fromarray(overlay)
|
|
|
|
| 121 |
outpix = plot_outlines(img_input, masks)
|
| 122 |
overlay = plot_overlay(img_input, masks)
|
| 123 |
|
| 124 |
+
crand = .2 + .8 * np.random.rand(np.max(masks.flatten()).astype('int')+1,).astype('float32')
|
| 125 |
crand[0] = 0
|
| 126 |
|
| 127 |
overlay = Image.fromarray(overlay)
|