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: active_plugins/runcellpose.py
+36-15Lines changed: 36 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,9 @@
67
67
may take some time. If you want to use a GPU to run the model, you'll need a compatible version of PyTorch and a
68
68
supported GPU. Instructions are avaiable at this link: {CUDA_LINK}
69
69
70
+
Note that RunCellpose supports the Cellpose 3 functionality of using image restoration models to improve the input images before segmentation for both Docker and Python methods.
71
+
However, it only supports saving out or visualizing the intermediate restored images when using the Python method.
72
+
70
73
Stringer, C., Wang, T., Michaelos, M. et al. Cellpose: a generalist algorithm for cellular segmentation. Nat Methods 18, 100–106 (2021). {Cellpose_link}
71
74
Kevin J. Cutler, Carsen Stringer, Paul A. Wiggins, Joseph D. Mougous. Omnipose: a high-precision morphology-independent solution for bacterial cell segmentation. bioRxiv 2021.11.03.467199. {Omnipose_link}
72
75
============ ============ ===============
@@ -435,6 +438,19 @@ def set_directory_fn(path):
435
438
N.b. for upsampling it is essential that the "Expected diameter" setting is correct for the input images
436
439
""",
437
440
)
441
+
self.denoise_image=Binary(
442
+
text="Save preprocessed image?",
443
+
value=False,
444
+
doc="""
445
+
If enabled, the intermediate preprocessed image will be recorded as a new image.
446
+
This is only supported for Python mode of Cellpose 3.
447
+
""",
448
+
)
449
+
self.denoise_name=ImageName(
450
+
"Name the preprocessed image",
451
+
"Preprocessed",
452
+
doc="Enter the name you want to call the preprocessed image produced by this module.",
0 commit comments