Contents
The short answer
Dense tissue is where nuclei models disagree most. Nuclei touch, overlap and change shape, and the two common mistakes are merges (two nuclei drawn as one) and splits (one nucleus cut in two). Every paper we read for this guide ends the same way: test on your own images. That is not a dodge. Stain, scanner, magnification and tissue type move the results more than the choice of tool.

What each tool says about itself
Checked against each project's own pages on 2026-12-03.
| StarDist | Cellpose | InstanSeg | |
|---|---|---|---|
| How it finds a nucleus | Predicts distances to the boundary along fixed rays, so every object is a star-convex polygon | Predicts flows that point to each cell's center, then follows them to group pixels | Predicts a pixel embedding and groups pixels by it |
| Models for nuclei | 2D_versatile_fluo (fluorescence, trained on part of DSB2018), 2D_versatile_he (H&E, trained on MoNuSeg 2018 and TNBC) | Cellpose-SAM segments cells and nuclei with one model. Version 4.2 (June 2026) adds cpsam_v2 and DINOv3-based models | brightfield_nuclei (hematoxylin and DAB), fluorescence_nuclei_and_cells |
| Where you run it | Python, Fiji, QuPath, napari | Python, its own GUI, napari | Python, QuPath 0.6 or later |
| Code license | BSD-3-Clause | BSD-3-Clause and a GPL v3 badge both shown. Models trained on CC-BY-NC data | Apache-2.0 |
| Paper | Schmidt et al., MICCAI 2018. Weigert and Schmidt, histopathology, 2022 | Stringer et al., Nature Methods 2021. Pachitariu, Rariden and Stringer, Cellpose-SAM, bioRxiv 2025 | Goldsborough et al., arXiv 2408.15954, 2024 |
The star-convex shape is StarDist's strength and its limit. Most nuclei are close to convex, so the shape fits and the model is fast. A nucleus bent around its neighbor, or two nuclei pressed into one outline, does not fit a star from a single center.
Cellpose's README gives one practical tip for any of the three: set the object size by hand rather than trusting automatic calibration, and resize images so cells are less than 100 pixels across.
What independent benchmarks found
We found no independent study that runs all three on dense H&E nuclei with merge and split counts. Treat every number below as evidence about its own data, not yours.
- Multiplexed immunofluorescence, 7 tissue types, about 20,000 nuclei (Sankaranarayanan, Khachaturov, Smythe and Mittal, Communications Biology, May 2025). The abstract reports that pre-trained deep learning models beat the classical algorithms, that Mesmer was the most accurate (F1 0.67 at IoU 0.5), and that StarDist is a faster choice when compute is limited "but it struggles in dense nuclear regions". InstanSeg was not tested.
- InstanSeg's own paper (Goldsborough et al., August 2024). The authors report better accuracy than widely used alternatives on six public cell segmentation datasets and at least 60% less processing time. This is the authors' own comparison.
- Fine-tuning on a small labeled set (our own run, DSB2018 fluorescence nuclei, 40 training and 10 held-back images, free Colab T4). Fine-tuned Cellpose scored AP 0.858 at IoU 0.5 against 0.837 for the stock model, and improved on 7 of the 10 held-back images. Small, but it is the size of set a lab can label in an afternoon. The full run is in Fine-tune Cellpose on your own labels.
Choose on your own crops
- 1
Pick crops from your hardest slides
Take 10 to 20 crops of about 512x512 pixels from the slides that worry you: the densest regions, the odd stain, the tissue type you see most. Easy crops tell you nothing.
- 2
Outline every nucleus by hand
Draw a polygon for each nucleus. Where even you cannot tell where one nucleus ends, mark the area as ambiguous and leave it out of scoring, the way NuInsSeg does.
- 3
Run each candidate with its nuclei model
StarDist 2D_versatile_he or 2D_versatile_fluo, Cellpose with its current default model, InstanSeg brightfield_nuclei or fluorescence_nuclei_and_cells. Set the nucleus size where the tool asks for it.
- 4
Score them the same way
Average precision at IoU 0.5 is the usual number. Also count merges and splits in the densest crops by eye, because a single score hides them.
- 5
Fine-tune the best one if it is close but not there
A few dozen hand-outlined crops can move a model on your images. Keep the crops you scored with out of training.
Doing the test in DataTorch
The outlines in step 2 are ordinary polygon annotations, and the NuInsSeg H&E nuclei dataset is hosted with 30,694 hand-drawn nucleus outlines if you want a public set to practice on before your own. A model can run from a button in the annotator and write its outlines back onto the file, marked as the model's and not a person's, as in Segment nuclei with Cellpose from a button in the annotator. That lets a reviewer correct the model's output in the same place, and the corrected outlines become the next training set.
Dataset: datatorch/nuclei-segmentation-nuinsseg, 666 files
Nuclei Segmentation (NuInsSeg)
Nuclei instance segmentation dataset for H&E-stained histology (NuInsSeg, Mahbod et al. 2024, Medical University of Vienna). 665 image patches of 512x512 pixels at 40x magnification from 31 human and mouse organs, with 30,698 manually outlined nuclei as polygon annotations converted from the official labeled masks, plus the dataset's ambiguous-area masks as a separate class. License: CC BY 4.0. Source: https://zenodo.org/records/10518968. Please cite: Mahbod, A. et al. NuInsSeg: A fully annotated dataset for nuclei instance segmentation in H&E-stained histological images. Scientific Data 11, 295 (2024).
Open →
Sources
- StarDist repository and model list, github.com/stardist/stardist (read 2026-12-03).
- Cellpose README, github.com/MouseLand/cellpose, and documentation, cellpose.readthedocs.io (read 2026-12-03).
- InstanSeg in QuPath, qupath.readthedocs.io/en/0.6/docs/deep/instanseg.html (read 2026-12-03).
- Goldsborough T. et al. InstanSeg: an embedding-based instance segmentation algorithm optimized for accurate, efficient and portable cell segmentation. arXiv 2408.15954 (2024).
- Sankaranarayanan A., Khachaturov G., Smythe K.S., Mittal S. Quantitative benchmarking of nuclear segmentation algorithms in multiplexed immunofluorescence imaging for translational studies. Communications Biology 8, 836 (2025).
- Mahbod A. et al. NuInsSeg: A fully annotated dataset for nuclei instance segmentation in H&E-stained histological images. Scientific Data 11, 295 (2024).
Frequently asked questions
Which is best for dense, touching nuclei in H&E tissue?
There is no independent head-to-head answer for all three on dense H&E. A 2025 multiplexed immunofluorescence benchmark (Sankaranarayanan et al., Communications Biology) found that pre-trained StarDist is faster but "struggles in dense nuclear regions", and that Mesmer was the most accurate tool it tested. InstanSeg was not in it. Score the candidates on crops from your own slides.
Does StarDist have a model for H&E?
Yes. 2D_versatile_he is trained on the MoNuSeg 2018 training data and the TNBC dataset, for 2D RGB brightfield H&E images, according to the StarDist repository.
Does InstanSeg work in QuPath?
Yes. The InstanSeg extension needs QuPath 0.6 or later and offers a brightfield_nuclei model (trained on hematoxylin and DAB stains) and a fluorescence_nuclei_and_cells model, per the QuPath documentation.
Do I need a GPU?
Not for any of the three. All run on a CPU, more slowly. The QuPath InstanSeg page says a GPU "is not required but can dramatically speed up processing", and the Cellpose README suggests a GPU build of torch for many images.
Can I use Cellpose models commercially?
Check the terms first. The Cellpose README says its models are trained on CC-BY-NC data, and the repository shows both a BSD-3-Clause license and a GPL v3 badge for the code. StarDist's code is BSD-3-Clause.
Open the hosted copy on DataTorch.
Browse the files in your browser, then download the dataset with a free account.
