Skip to content

Commit

Permalink
Pass through omni to remove_bad_flow_masks, see issue 377.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjohncutler committed Nov 19, 2021
1 parent 7d13ddd commit e1fb312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cellpose/dynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ def compute_masks(dP, dist, bd=None, p=None, inds=None, niter=200, mask_threshol
shape0 = p.shape[1:]
flows = dP
if mask.max()>0 and flow_threshold is not None and flow_threshold > 0 and flows is not None:
mask = remove_bad_flow_masks(mask, flows, threshold=flow_threshold, use_gpu=use_gpu, device=device)
mask = remove_bad_flow_masks(mask, flows, threshold=flow_threshold, use_gpu=use_gpu, device=device, omni=omni)
_,mask = np.unique(mask, return_inverse=True)
mask = np.reshape(mask, shape0).astype(np.int32)

Expand Down

0 comments on commit e1fb312

Please sign in to comment.