Skip to content

Commit 812770a

Browse files
committed
Update TrackMate cellpose and conda recommendations.
1 parent 17444a9 commit 812770a

File tree

3 files changed

+61
-4
lines changed

3 files changed

+61
-4
lines changed

_pages/plugins/trackmate/detectors/trackmate-cellpose-sam.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,36 @@ conda create --name cellpose-sam python=3.10
4343
conda activate cellpose-sam
4444
python -m pip install 'cellpose[gui]'
4545
```
46+
47+
On **Windows**, we noticed that it is not enough to get GPU acceleration even if you have a NVIDIA card.
48+
You need to reinstall torch with GPU CUDA support, as follow:
49+
- Remove the current version of torch
50+
```zsh
51+
pip uninstall torch
52+
```
53+
- Reinstall torch with GPU support. Follows the instructions [here](https://pytorch.org/get-started/locally/).
54+
In August 2025, this amounts to:
55+
```zsh
56+
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu126
57+
```
58+
59+
Then:
60+
```zsh
61+
cellpose --version
62+
```
63+
64+
```
65+
Welcome to CellposeSAM, cellpose v
66+
cellpose version: 4.0.6
67+
platform: win32
68+
python version: 3.12.11
69+
torch version: 2.8.0+cu126
70+
```
71+
You can ignore the warning if any.
72+
73+
_____
74+
75+
4676
If you have not done it yet, you need to [configure the TrackMate conda path in Fiji](/plugins/trackmate/trackmate-conda-path).
4777

4878

_pages/plugins/trackmate/detectors/trackmate-cellpose.md

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,13 @@ cellpose can and does work with RGB images. They are single-channel but encode r
276276
Go to the cellpose GitHub webpage and follow the [installation procedures](https://github.com/MouseLand/cellpose#local-installation). We copy and adapt these installation instructions below.
277277

278278
```zsh
279-
>> conda create --name cellpose-3 python=3.10
280-
>> conda activate cellpose-3
281-
>> pip install 'cellpose[gui]==3.1.1.2'
282-
>> cellpose --version
279+
conda create --name cellpose-3 python=3.10
280+
conda activate cellpose-3
281+
pip install 'cellpose[gui]==3.1.1.2'
282+
cellpose --version
283+
```
284+
285+
```
283286
cellpose version: 3.1.1.2
284287
platform: darwin
285288
python version: 3.10.18
@@ -292,6 +295,29 @@ This will install the version 3 of cellpose. As mid 2025, GPU-acceleration is us
292295
2025-07-11 11:13:53,625 [INFO] >>>> using GPU (MPS)
293296
```
294297

298+
On **Windows**, we noticed that it is not enough to get GPU acceleration even if you have a NVIDIA card.
299+
You need to reinstall torch with GPU CUDA support, as follow:
300+
- Remove the current version of torch
301+
```zsh
302+
pip uninstall torch
303+
```
304+
- Reinstall torch with GPU support. Follows the instructions [here](https://pytorch.org/get-started/locally/).
305+
In August 2025, this amounts to:
306+
```zsh
307+
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu126
308+
```
309+
310+
Then:
311+
```zsh
312+
cellpose --version
313+
```
314+
315+
```
316+
cellpose version: 3.1.1.2
317+
platform: win32
318+
python version: 3.10.18
319+
torch version: 2.8.0+cu126
320+
```
295321

296322
_____
297323

_pages/plugins/trackmate/trackmate-conda-path.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Using these tools in TrackMate requires you to
1818
- configure the path to your conda environment.
1919

2020
To install conda, we recommend using [miniforge](https://github.com/conda-forge/miniforge).
21+
You can use the recommended settings for your platform.
2122

2223
The TrackMate modules that depend on Python and external tools are all optional and documented on this wiki.
2324
[This path](/plugins/trackmate/index#trackmate-components) is a good starting point to find them.

0 commit comments

Comments
 (0)