Skip to content

Commit

Permalink
Fixes issue #1101 with older version of cellpose
Browse files Browse the repository at this point in the history
  • Loading branch information
chriski777 authored and carsen-stringer committed Mar 7, 2024
1 parent 4ceac9a commit 24a7f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suite2p/detection/anatomical.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def roi_detect(mproj, diameter=None, cellprob_threshold=0.0, flow_threshold=1.5,
model = CellposeModel(model_type=pretrained_model)
else:
model = CellposeModel(pretrained_model=pretrained_model)
masks = model.eval(mproj, net_avg=True, channels=[0, 0], diameter=diameter,
masks = model.eval(mproj, channels=[0, 0], diameter=diameter,
cellprob_threshold=cellprob_threshold,
flow_threshold=flow_threshold)[0]
shape = masks.shape
Expand Down

0 comments on commit 24a7f26

Please sign in to comment.