Cellpose is a deep learning-based anatomical segmentation algorithm for cells and nuclei, developed by Carsen Stringer and Marius Pachitariu. The current version is 4.1.1 (as of early 2025). Release cadence is active with several minor versions per year.
pip install cellposeVerified import paths — ran on the pinned version, not inferred.
Loads a pretrained cyto model and segments a random image.
Replace `from cellpose.models import Cellpose` with `from cellpose.models import CellposeModel`.
For denoising, use Cellpose 3.x or alternative methods.
Use `channels=[0,0]` for single-channel grayscale images.
Set `torch.backends.mps.is_available()` carefully and consider using CPU or CUDA if artifacts appear.
Retrain your model using the `CellposeModel` API in v4, or stick to v3 for existing models.