All models

Cellpose

A U-net that segments cells in microscopy images by predicting flow fields that lead each pixel to its cell center.

Medical imaging · 59 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (46 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
127.5K
Operations
59
Framework
PyTorch
Recurrent
No
Published
2020, Nature Methods
Authors
Carsen Stringer, Tim Wang, Michalis Michaelos, Marius Pachitariu
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m11602
Graph hash
c1b825c44f66f4f5b9e299eb8d781e62aeda3eb82bedb8eb0cf01dec35aac6d6
Skeleton hash
e7669cb8d9df5e72430c8be86ebd6a9d87f13e83a429f08a618caa7dd31a48c4
Architecture hash
49dbc35fc564c0d7a16eba77b1c04ebebaa9c387fe71411411715da084650afb
Diagram SHA-256
1d9ddfa57c35f1d27f719531659173c029a16127f30f37caba7b82e269147dc4
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.cellpose:build: build({})

What it is

Cellpose is a segmentation model for microscopy images of cells, built as a generalist that works across many image types without retraining or parameter adjustment. The network predicts three maps: horizontal and vertical gradients that point each pixel toward the center of its cell, and a probability that the pixel belongs to any cell. Pixels are then followed along those gradients, and the ones that arrive at the same point are grouped into one cell.

The network is based on the U-net design, which downsamples the feature maps several times and then upsamples them in mirror image. Features from the downsampling pass are added to the upsampling pass rather than concatenated, a choice the paper made to reduce the number of parameters. In the paper, each pass has four spatial scales, each made of two residual blocks with two 3x3 convolutions apiece. Between the two passes, the paper's network takes a global average pool of each feature map to get a 256-dimensional style vector for the image. That vector is passed as input to the residual blocks on the upsampling pass.

Cellpose was trained on a new dataset of highly varied cell images containing over 70,000 segmented objects. Across all image types, the paper reports an average precision of 0.82 at a threshold of 0.5 for the generalist model, against 0.68 for Stardist and 0.70 for Mask R-CNN. The dataset also included 98 non-microscopy images of repeated objects such as fruits, rocks and jellyfish.

Key idea. Cellpose segments cells by having a U-net predict horizontal and vertical flow fields plus a cell probability, then grouping pixels that flow to the same center.

  • cellpose
  • cell segmentation
  • cellular segmentation
  • microscopy segmentation
  • nucleus segmentation
  • generalist segmentation
  • flow field segmentation
  • instance segmentation
  • cell bodies

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@article{cellpose2020,
  title = {Cellpose: a generalist algorithm for cellular segmentation},
  author = {Carsen Stringer and Tim Wang and Michalis Michaelos and Marius Pachitariu},
  year = {2020},
  journal = {Nature Methods},
  doi = {10.1101/2020.02.02.931238}
}