Skip to content

v0.8.0

Latest

Choose a tag to compare

@alxndrkalinin alxndrkalinin released this 24 Jul 01:07
· 22 commits to main since this release

First stable release of the 0.8 series, consolidating the two v0.8.0 alpha pre-releases (v0.8.0a1–a2). 5 commits since v0.7.0.

Highlights

  • Cellpose v4 DINO support — the GPU-resident segmentation path now covers all four v4 models: the SAM backbones (cpsam, cpsam_v2) and the DINOv3 backbones (cpdino, cpdino-vitb).
  • Wiener-Butterworth back projector for Richardson-Lucy deconvolution — converges in ~1–2 iterations instead of 10–50 (Guo et al. 2020), with the matched path byte-for-byte unchanged by default.

New features

Segmentation

  • segment_cellpose is now the canonical GPU-resident entry point, supporting all four Cellpose v4 backbones (SAM + DINO). segment_cpsam is kept as a deprecated alias (emits DeprecationWarning, slated for removal after 0.8). (#51)
  • Tunable tile size via a new bsize parameter (defaults 256 for SAM, 384 for DINO), centralized in _resolve_bsize with cellpose's SAM→256 guard and non-positive-bsize validation. (#51)

Preprocessing — deconvolution

  • create_backprojector (cubic.preprocessing) — device-agnostic NumPy/CuPy port of BackProjector.m, supporting traditional, gaussian, butterworth, wiener, and wiener-butterworth types. (#52)
  • backprojector toggle on richardson_lucy_xp, threaded through decon_xpy, richardson_lucy_iter, and deconv_iter_num_finder. Faithful unmatched RL update (no H^T1, no correction<0 clip, estimate floored at 1e-3, both projectors sum-normalized); circulant only, and the default (None) leaves the matched path unchanged. (#52)

Packaging

  • Require cellpose>=4.2.0 (the release that first ships cpsam_v2/cpdino).
  • New cellpose-dino extra for the dinov3 dependency (pip install cubic[cellpose-dino]).

Docs & examples

  • New notebook deconvolution_wb_backprojector_3d.ipynb — matched-vs-WB convergence by PSNR/SSIM and absolute FSC resolution (+ paired script + README row).
  • 3D feature-extraction notebook gains a CPU-vs-GPU comparison.

Install

pip install cubic==0.8.0

Full changelog: v0.7.0...v0.8.0