carsen-stringer commited on
Commit
32b0ba4
·
1 Parent(s): 5fa8922

set resize to 400

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -76,7 +76,7 @@ def normalize99(img):
76
  X = (X - np.percentile(X, 1)) / (np.percentile(X, 99) - np.percentile(X, 1))
77
  return X
78
 
79
- def image_resize(img, resize=224):
80
  ny,nx = img.shape[:2]
81
  if np.array(img.shape).max() > resize:
82
  if ny>nx:
@@ -112,7 +112,7 @@ iface = gr.Interface(
112
  inputs="image",
113
  outputs=["image", "image", "image", "image"],
114
  title="cellpose segmentation",
115
- description="upload an image, then cellpose will segment it at a max size of 224x224"
116
  )
117
 
118
  iface.launch()
 
76
  X = (X - np.percentile(X, 1)) / (np.percentile(X, 99) - np.percentile(X, 1))
77
  return X
78
 
79
+ def image_resize(img, resize=400):
80
  ny,nx = img.shape[:2]
81
  if np.array(img.shape).max() > resize:
82
  if ny>nx:
 
112
  inputs="image",
113
  outputs=["image", "image", "image", "image"],
114
  title="cellpose segmentation",
115
+ description="upload an image, then cellpose will segment it at a max size of 400x400 (for full functionality, 'pip install cellpose' locally)"
116
  )
117
 
118
  iface.launch()