You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cellpose/cli.py
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,9 @@ def get_arg_parser():
105
105
algorithm_args.add_argument(
106
106
"--cellprob_threshold", default=0, type=float,
107
107
help="cellprob threshold, default is 0, decrease to find more and larger masks")
108
+
algorithm_args.add_argument(
109
+
"--niter", default=0, type=int,
110
+
help="niter, number of iterations for dynamics for mask creation, default of 0 means it is proportional to diameter, set to a larger number like 2000 for very long ROIs")
Copy file name to clipboardExpand all lines: cellpose/models.py
+32-48Lines changed: 32 additions & 48 deletions
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,6 @@ class Cellpose():
90
90
device (torch device, optional): Device used for model running / training. Overrides gpu input. Recommended if you want to use a specific GPU (e.g. torch.device("cuda:1")). Defaults to None.
91
91
92
92
Attributes:
93
-
torch (bool): Flag indicating if torch is available.
94
93
device (torch device): Device used for model running / training.
95
94
gpu (bool): Flag indicating if GPU is used.
96
95
diam_mean (float): Mean diameter for cytoplasm model.
@@ -202,7 +201,6 @@ class CellposeModel():
202
201
Class representing a Cellpose model.
203
202
204
203
Attributes:
205
-
torch (bool): Whether or not the torch library is available.
206
204
diam_mean (float): Mean "diameter" value for the model.
207
205
builtin (bool): Whether the model is a built-in model or not.
208
206
device (torch device): Device used for model running / training.
progress (QProgressBar, optional): pyqt progress bar. Defaults to None.
358
356
359
357
Returns:
360
-
masks (list, np.ndarray): labelled image(s), where 0=no masks; 1,2,...=mask labels
361
-
flows (list): list of lists: flows[k][0] = XY flow in HSV 0-255; flows[k][1] = XY(Z) flows at each pixel; flows[k][2] = cell probability (if > cellprob_threshold, pixel used for dynamics); flows[k][3] = final pixel locations after Euler integration
362
-
styles (list, np.ndarray): style vector summarizing each image of size 256.
- flows (list): list of lists: flows[k][0] = XY flow in HSV 0-255; flows[k][1] = XY(Z) flows at each pixel; flows[k][2] = cell probability (if > cellprob_threshold, pixel used for dynamics); flows[k][3] = final pixel locations after Euler integration
361
+
- styles (list, np.ndarray): style vector summarizing each image of size 256.
- human-in-the-loop training protocol `video <https://youtu.be/3Y1VKcxjNy4>`_
22
27
23
-
Cellpose 1.0
28
+
Cellpose: a generalist algorithm for cellular segmentation
24
29
25
30
- `paper <https://www.biorxiv.org/content/10.1101/2020.02.02.931238v1>`_ on biorxiv (see figure 1 below) and in `nature methods <https://t.co/kBMXmPp3Yn?amp=1>`_
0 commit comments