Skip to content

Commit

Permalink
default for cell probability changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Xin Bo Qi committed Mar 11, 2021
1 parent 852f0ae commit 4b1b256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cellpose2msk/flow2msk.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import numpy as np
from scipy import ndimage as ndimg

def flow2msk(flow, cell_prob, prob=0.0, grad=0.4, area=20, volume=100):
def flow2msk(flow, cell_prob, prob=0.5, grad=0.4, area=20, volume=100):
shp, dim = flow.shape[:-1], flow.ndim - 1
l = np.linalg.norm(flow, axis=-1)
flow /= l.reshape(shp+(1,))
Expand Down

0 comments on commit 4b1b256

Please sign in to comment.