Skip to content

Commit 195b65e

Browse files
committed
Add warnings against untested GPU segmentation
1 parent 025c5a9 commit 195b65e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/resources/script_templates/PyImageJ/CellposeStarDistSegmentation.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
TensorFlow 2.15 itself requires python 3.11 or earlier.
1010
1111
We use cellpose 3.x because cellpose 4.x is heavily biased towards using their `cpsam`,
12-
"segment anything" model. This is a very cool model, but it is also huge and performance
13-
with a CPU is not great. It is also more powerful than needed for this example.
12+
"segment anything" model. This is a very cool model, but it is also huge and may require GPU use.
13+
`cpsam` is also more powerful than needed for this example.
1414
1515
Using cellpose 3.x allows us to stick with the light and focused `ctyo` model for segmentation.
1616
@@ -51,6 +51,9 @@
5151
to remove StarDist and upgrade to Cellpose 4.x, which would be used to segment both cytoplasm and
5252
nuclear channels.
5353
54+
NOTE: Because of the size of the cpsam model used in Cellpose 4.x, they advise against CPU-based segmentation.
55+
Using `gpu=True` with Cellpose models from the Fiji script editor is untested.
56+
5457
==========================
5558
Known Issues
5659
==========================

0 commit comments

Comments
 (0)