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
Enable getting probability map when running from Docker (#250)
* Get probabilities in RunCellpose from docker
include a conditional statement to get the right flow for probabilities when running RunCellpose from docker image
* add probability map rescaling option when running from Python
Copy file name to clipboardExpand all lines: active_plugins/runcellpose.py
+27-4Lines changed: 27 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ class RunCellpose(ImageSegmentation):
97
97
98
98
module_name="RunCellpose"
99
99
100
-
variable_revision_number=5
100
+
variable_revision_number=6
101
101
102
102
doi= {
103
103
"Please cite the following when using RunCellPose:": "https://doi.org/10.1038/s41592-020-01018-x",
@@ -111,8 +111,8 @@ def create_settings(self):
111
111
text="Rescale images before running Cellpose",
112
112
value=True,
113
113
doc="""\
114
-
Reminds the user that the normalization step will be performed to ensure suimilar segmentation behaviour inthe RunCellpose
115
-
modul and the Cellpose app.
114
+
Reminds the user that the normalization step will be performed to ensure suimilar segmentation behaviour in the RunCellpose
115
+
module and the Cellpose app.
116
116
"""
117
117
)
118
118
@@ -346,6 +346,14 @@ def set_directory_fn(path):
346
346
doc="""
347
347
If you do not want to include any object masks that are not in full view in the image, you can have the masks that have pixels touching the the edges removed.
348
348
The default is set to "Yes".
349
+
""",
350
+
)
351
+
352
+
self.probability_rescale_setting=Binary(
353
+
text="Rescale probability map?",
354
+
value=True,
355
+
doc="""
356
+
Activate to rescale probability map to 0-255 (which matches the scale used when running this module from Docker)
0 commit comments