Update app.py
Browse files
app.py
CHANGED
|
@@ -149,8 +149,10 @@ def run_model_gpu1000(img):
|
|
| 149 |
#@spaces.GPU(duration=10)
|
| 150 |
def cellpose_segment(img_pil, resize = 1000):
|
| 151 |
img_input = imread(img_pil)
|
|
|
|
| 152 |
#img_input = np.array(img_pil)
|
| 153 |
img = image_resize(img_input, resize = resize)
|
|
|
|
| 154 |
|
| 155 |
resize = np.max(img.shape)
|
| 156 |
if resize<1000:
|
|
|
|
| 149 |
#@spaces.GPU(duration=10)
|
| 150 |
def cellpose_segment(img_pil, resize = 1000):
|
| 151 |
img_input = imread(img_pil)
|
| 152 |
+
print(img_input.shape)
|
| 153 |
#img_input = np.array(img_pil)
|
| 154 |
img = image_resize(img_input, resize = resize)
|
| 155 |
+
print(img.shape)
|
| 156 |
|
| 157 |
resize = np.max(img.shape)
|
| 158 |
if resize<1000:
|