Skip to content

v0.8.0a1 — Cellpose v4 DINO model support

Pre-release
Pre-release

Choose a tag to compare

@alxndrkalinin alxndrkalinin released this 15 Jun 21:44
6dbf90e

Features

  • Cellpose v4 DINO models: the GPU-resident segmentation path now supports all four Cellpose v4 models — the SAM backbones (cpsam, cpsam_v2) and the DINOv3 backbones (cpdino, cpdino-vitb). The canonical entry point is now segment_cellpose; segment_cpsam is kept as a deprecated alias (slated for removal after 0.8).
  • Tunable tile size: segment_cellpose exposes a bsize parameter (defaults to 256 for the SAM backbone, 384 for DINO), centralized in _resolve_bsize with cellpose's SAM→256 guard and non-positive-bsize validation.

Packaging

  • Require cellpose>=4.2.0 (the release that first ships cpsam_v2/cpdino).
  • The DINO backbones additionally require dinov3, which is published only on GitHub: pip install git+https://github.com/facebookresearch/dinov3.

Notes

  • Resident masks match stock CellposeModel.eval (AP@0.5 ≥ 0.95) for all four models in 2D and 3D.

Full changes in #51.