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.