Skip to content

VersusGPU

Cellpose vs StarDist: Which Free AI Cell Segmentation Tool Should You Run?

Cellpose and StarDist are two popular free AI tools for finding cells and nuclei in microscope images on your own PC. Using the official repositories and docs, we compare how they work, pretrained models, licences, GPU set-up on Windows and Linux, and which fits your workflow.

By , Senior Hardware Editor

3 min read

Cellpose vs StarDist: Which Free AI Cell Segmentation Tool Should You Run?

Cellpose and StarDist are two popular open-source deep learning tools for finding cells and nuclei in microscope images, and both run locally on a PC with an optional NVIDIA graphics card. They take different approaches, run on different AI frameworks and fit into different workflows. Makes no accuracy or speed claims of our own.

At a glance

Cellpose

StarDist

Developer

MouseLand (Carsen Stringer and Marius Pachitariu)

Uwe Schmidt, Martin Weigert and colleagues

What it segments

Cells and nuclei

Objects with star-convex shapes, typically nuclei

2D and 3D

Yes

Yes

AI framework

PyTorch

TensorFlow (1 or 2)

Built-in GUI

Yes

No (plugins for Fiji, napari, QuPath, Icy and KNIME)

Main pretrained models

cpsam_v2 (default), cpsam, cpdino, cpdino-vitb

2D_versatile_fluo, 2D_paper_dsb2018, 2D_versatile_he

Code licence (GitHub)

BSD-3-Clause

BSD-3-Clause

Model training data

CC-BY-NC, per the developers

Public datasets listed per model

How they work

StarDist detects objects as star-convex polygons in 2D, or polyhedra in 3D. According to its README, the model predicts the distance to the object boundary along a fixed set of rays plus an object probability for each pixel, producing many candidate shapes that are filtered with non-maximum suppression. Its pretrained models are all aimed at nuclei.

Cellpose is a generalist. Its current Cellpose-SAM model is described by its developers as "cell and nucleus segmentation with superhuman generalization", and the README says it works regardless of channel order and object size and copes with noise, blur and contrast inversions. That is the developers' claim. Version 4.2 in June 2026 added models based on Meta's DINOv3 and an updated cpsam_v2 model.

Pretrained models

StarDist ships three pretrained 2D models: 2D_versatile_fluo and 2D_paper_dsb2018 for fluorescence images with a nuclear marker, trained on a subset of the DSB 2018 nuclei challenge data, and 2D_versatile_he for brightfield H&E images, trained on MoNuSeg 2018 and TNBC data. For other kinds of image you train your own model from annotated examples.

Cellpose's default model, cpsam_v2, is meant to work on a wide range of images out of the box, and its GUI includes human-in-the-loop training: correct some masks, fine-tune, repeat. Note the developers' warning that all Cellpose models are trained on CC-BY-NC data, which matters if you work in a commercial lab.

Hardware and installation

Both are Python packages, and both can use an NVIDIA graphics card.

  • Cellpose installs with pip install cellpose[gui]. On Linux, the README says recent PyTorch builds include GPU support by default; on Windows you may need to install the CUDA build of PyTorch yourself. It needs at least 8GB of system RAM, with 16GB to 32GB for larger images and 3D volumes, and the README notes improved support for Apple silicon (MPS).

  • StarDist needs TensorFlow installed first, then pip install stardist, and supports Python 3.6 to 3.13. For GPU support, the README stresses installing the exact CUDA and cuDNN versions that match your TensorFlow release. QuPath's StarDist documentation notes that TensorFlow dropped CUDA support for Windows, so GPU acceleration there is Linux-only, and a WSL2 setup is the usual workaround on a Windows PC.

That makes Cellpose the easier route to GPU acceleration on a Windows desktop. Our guide to segmenting cells with Cellpose on your own GPU walks through the install.

Workflow and integration

Cellpose has its own GUI for loading images, running models, drawing and correcting masks and training, plus a command line and Python API. StarDist is mainly a Python library with Jupyter notebook examples, but it reaches more desktop apps through plugins: a Fiji plugin for running pretrained models on 2D images, a napari plugin for 2D and 3D, a QuPath extension and plugins for Icy and KNIME. The QuPath extension can run the three example models with OpenCV, which is already built into QuPath, with no TensorFlow install needed.

Which should you choose?

Choose Cellpose if you want one tool that handles many cell types without training, you want a built-in GUI with easy fine-tuning, or you want GPU acceleration on Windows with minimal fuss.

Choose StarDist if you mainly segment nuclei, you already work in Fiji, napari or QuPath, or you prefer pretrained models trained on the public datasets it lists.

The bottom line

Cellpose is the better starting point for most people with a Windows PC and an NVIDIA graphics card: it is a generalist, has its own GUI and uses PyTorch, which makes GPU set-up straightforward, though its models are trained on non-commercial data. StarDist is the specialist for nuclei and slots neatly into Fiji, napari and QuPath, but GPU acceleration via TensorFlow is easiest on Linux. Forge PC hasn't tested either.

Sources

  1. 01Cellpose repository and README (MouseLand, GitHub)
  2. 02Cellpose settings (Cellpose documentation)
  3. 03Cellpose CLI reference (Cellpose documentation)
  4. 04StarDist repository and README (GitHub)
  5. 05StarDist in QuPath (QuPath documentation)

About the author

Callum Reid

Senior Hardware Editor

Callum leads GPU, CPU and platform architecture coverage at Forge PC. Before joining the editorial desk, he spent nine years specifying, assembling and stress-testing custom gaming and workstation systems in the UK, with a focus on PCIe bandwidth, VRM thermal design, DDR5 memory tuning and 1440p/4K frame-time consistency.

More from Callum Reid

Read next

How to Add an Exclusion to Microsoft Defender in Windows 11 (Safely)

How-To

How to Add an Exclusion to Microsoft Defender in Windows 11 (Safely)

Microsoft Defender keeps flagging a file you trust? Rather than switching protection off, you can exclude a file, folder, file type or process in Windows Security. Following Microsoft's guidance, we show how to add and remove exclusions, use wildcards safely and what exclusions don't cover.

Marcus Thorne4 min

The Best NVIDIA App Features in 2026: What's Worth Using on a GeForce PC

Best Picks

The Best NVIDIA App Features in 2026: What's Worth Using on a GeForce PC

The NVIDIA App does far more than update drivers. Based on NVIDIA's official pages, we pick the features most worth using on a GeForce PC, from DLSS Override and Smooth Motion to Instant Replay, the performance overlay, RTX HDR and one-click GPU tuning, and explain who each suits.

Hannah Vance4 min