LiangLabUMB commited on
Commit
5264ad9
·
verified ·
1 Parent(s): 021250b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -250,7 +250,7 @@ def run_segmentation_editor(editor_data, model_choice, min_cell_size, max_cell_s
250
  # Run Cellpose segmentation
251
  masks, flows, styles = model.eval(processed_image_np, diameter=None, channels=[0, 0])
252
 
253
- ids = np.unique(masks_raw)
254
  ids = ids[ids > 0]
255
 
256
  sizes = np.array([np.count_nonzero(masks_raw == cid) for cid in ids])
 
250
  # Run Cellpose segmentation
251
  masks, flows, styles = model.eval(processed_image_np, diameter=None, channels=[0, 0])
252
 
253
+ ids = np.unique(masks_raw)
254
  ids = ids[ids > 0]
255
 
256
  sizes = np.array([np.count_nonzero(masks_raw == cid) for cid in ids])