Skip to content

Release Notes

0.1.4_4.0.6 [2026-11-20]

Fixes:

  • Added cellpose_compat.py shim to fix TypeError raised by NumPy 2 when cellpose 4.0.6 resize helpers called int() on a multi-dimensional np.argwhere result, causing all 2-D segmentations to fail after the network pass

Maintenance:

  • Replaced pytorch/pytorch:2.6.0-cuda12.6-cudnn9-runtime base image with digest-pinned ubuntu:22.04, removing the conda dependency and relying on torch +cu132 wheels for the CUDA runtime
  • Updated CUDA_VERSION CI variable from 12.6 to 13.2 to match the bundled torch +cu132 wheels
  • Upgraded numpy constraint from >=1.22.0,<2.0 to >=2.0,<3.0
  • Upgraded opencv-python-headless minimum from >=4.7.0 to >=4.12.0 to align with numpy>=2 requirement
  • Upgraded scikit-image constraint from >=0.19.0,<0.22 to >=0.22.0,<1.0 to include cp312 wheels
  • Added explicit torch>=2.14.0 and torchvision>=0.29.0 dependencies sourced from the PyTorch CUDA 13.2 index on Linux
  • Tightened requires-python from >=3.10.1 to >=3.12.1
  • Pinned security upgrades for apt, libapt-pkg6.0, libssl3, and openssl in the Dockerfile
  • Switched Dockerfile final stage from USER flywheel to USER 31337 to avoid relying on username resolution
  • Added CLAUDE.md developer guidance document to the repository
  • Added coverage.xml and junit.xml to .gitignore

Unreleased

Fixes:

  • Fixed 2-D segmentation failing right after the network pass with TypeError: only 0-dimensional arrays can be converted to Python scalars (regression in 0.1.4_4.0.6-rc4). cellpose 4.0.6 restores a squeezed axis in CellposeModel._resize_gradients / _resize_cellprob with int(np.argwhere(...)), which NumPy 2 rejects. The gear now wraps both methods (fw_gear_cellpose/cellpose_compat.py) so the axis is restored with a NumPy 2 safe index; segmentation results are unchanged.

Maintenance:

  • Upgraded opencv-python-headless (4.11.0.86 -> 4.14.0.94, floor raised to >=4.12.0). Every release from 4.12.0 on requires numpy>=2, so the numpy pin moved from >=1.22.0,<2.0 to >=2.0,<3.0 (1.26.4 -> 2.5.5).
  • Security patch updates: remediates CVE-2026-97687, CVE-2026-97688, CVE-2026-97689, CVE-2026-104851 in urllib3 (2.7.0 -> 2.8.0) and fsspec (2025.12.0 -> 2026.9.0) by refreshing pinned dependencies.
  • Remediated CVE-2025-33228 (High) in cuda-toolkit by sourcing torch/torchvision from the PyTorch CUDA 13.2 index (https://download.pytorch.org/whl/cu132) instead of the default PyPI build. The default torch wheel pins cuda-toolkit==13.0.3 (vulnerable) and cannot be moved to the fix (>=13.1.0) on PyPI, whereas the +cu132 build of the same torch version pins cuda-toolkit==13.2.1. This keeps torch at its latest version with full GPU/CUDA support and no version downgrade. torch and torchvision are now declared as direct dependencies so the [tool.uv.sources] index applies; the extra index is passed at Docker build time (it is not persisted in requirements.txt).
  • Raised requires-python to >=3.12.1 and scikit-image from >=0.19.0,<0.22 to >=0.22.0,<1.0 (0.21.0 -> 0.26.0). scikit-image 0.21.0 has no Python 3.12 wheels, so it had to be compiled from source, which fails; 0.22.0 is the first release that ships them.
  • The Docker image now really runs Python 3.12. The previous base image only shipped conda Python 3.11, which the venv was silently built on; uv now installs a standalone Python 3.12 (in /opt/uv/python) for the venv. Dropped --system-site-packages and the PYTHONPATH override, neither of which is needed since every dependency is installed in the venv.
  • Replaced the pytorch/pytorch:2.6.0-cuda12.6-cudnn9-runtime base image with a digest-pinned ubuntu:22.04. The gear never used the base image's conda environment (its CUDA 13.2 runtime comes from the torch +cu132 wheels in the venv), yet that environment carried all 109 Critical/High library, CPE and secret findings of the Wiz scan. The remaining 6 High findings are fixed by pinned upgrades of openssl, libssl3, apt and libapt-pkg6.0. The Wiz scan goes from 115 policy findings to 0, the image shrinks from 12.1 GB to 8.8 GB, and requirements.txt is unchanged.

0.1.3_4.0.6 [2026-08-25]

Enhancements:

  • Added modality and organ metadata fields to the gear manifest.
  • Updated gear description to provide a detailed summary of outputs, supported input formats, and fallback behavior.
  • Added output_configuration with enforce_file_version_match to the manifest.

Maintenance:

  • Migrated from flywheel-gear-toolkit to fw-gear.
  • Updated several dependencies to address vulnerabilities.
  • Added gpgv=2.2.27-3ubuntu2.5 system package installation.
  • Updated url in manifest to point to the GitLab repository.

0.1.2_4.0.6 [2025-12-16]

Maintenance:

  • Updated urllib3 to >=2.6.0 to address security vulnerabilities
  • Updated brotli to >=1.2.0 to address security vulnerabilities

0.1.1_4.0.6 [2025-10-28]

Enhancements:

  • Added Cellpose gear for cell and nuclei segmentation in microscopy images
  • Implemented support for multiple Cellpose models (cyto, nuclei, cyto2, transformer, omni)
  • Added 3D segmentation support for volumetric images with configurable z-axis and channel axis
  • Implemented GPU acceleration support with automatic CPU fallback
  • Added cell statistics output with area and centroid coordinates in CSV format
  • Created visualization outputs with segmentation masks and overlays
  • Pre-downloaded Cellpose-SAM transformer model weights from Hugging Face during build

Maintenance:

  • Migrated to uv for dependency management
  • Updated to python 3.12 runtime
  • Added cellpose 4.0.6 with pytorch 2.6.0 and CUDA 12.6 support
  • Added flywheel-gear-toolkit >=0.6,<0.7 for Flywheel integration
  • Added numpy >=1.22.0,<2.0, scipy >=1.9.0,<2.0, and pandas <2.0
  • Added scikit-image >=0.19.0,<0.22, opencv-python-headless >=4.7.0,<5.0, and pillow 11.3.0
  • Added matplotlib >=3.5.0,<4.0 for visualization
  • Added huggingface-hub 0.35.3 for model weight management
  • Configured GitLab CI with 6-hour timeout and GPU support
  • Set up pre-commit hooks with ruff, hadolint, jsonlint, yamllint, and pytest

Documentation:

  • Added comprehensive README with usage instructions, workflow diagrams, and FAQ
  • Added CONTRIBUTING guide with development setup and testing instructions
  • Included citation for Cellpose paper and BSD-3-Clause license