Release Notes
0.1.4_4.0.6 [2026-11-20]
Fixes:
- Added
cellpose_compat.pyshim to fixTypeErrorraised byNumPy 2whencellpose 4.0.6resize helpers calledint()on a multi-dimensionalnp.argwhereresult, causing all 2-D segmentations to fail after the network pass
Maintenance:
- Replaced
pytorch/pytorch:2.6.0-cuda12.6-cudnn9-runtimebase image with digest-pinnedubuntu:22.04, removing the conda dependency and relying ontorch+cu132wheels for the CUDA runtime - Updated
CUDA_VERSIONCI variable from12.6to13.2to match the bundledtorch+cu132wheels - Upgraded
numpyconstraint from>=1.22.0,<2.0to>=2.0,<3.0 - Upgraded
opencv-python-headlessminimum from>=4.7.0to>=4.12.0to align withnumpy>=2requirement - Upgraded
scikit-imageconstraint from>=0.19.0,<0.22to>=0.22.0,<1.0to includecp312wheels - Added explicit
torch>=2.14.0andtorchvision>=0.29.0dependencies sourced from the PyTorch CUDA 13.2 index on Linux - Tightened
requires-pythonfrom>=3.10.1to>=3.12.1 - Pinned security upgrades for
apt,libapt-pkg6.0,libssl3, andopensslin theDockerfile - Switched
Dockerfilefinal stage fromUSER flywheeltoUSER 31337to avoid relying on username resolution - Added
CLAUDE.mddeveloper guidance document to the repository - Added
coverage.xmlandjunit.xmlto.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 in0.1.4_4.0.6-rc4). cellpose4.0.6restores a squeezed axis inCellposeModel._resize_gradients/_resize_cellprobwithint(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 from4.12.0on requiresnumpy>=2, so thenumpypin moved from>=1.22.0,<2.0to>=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-104851inurllib3(2.7.0->2.8.0) andfsspec(2025.12.0->2026.9.0) by refreshing pinned dependencies. - Remediated
CVE-2025-33228(High) incuda-toolkitby sourcingtorch/torchvisionfrom the PyTorch CUDA 13.2 index (https://download.pytorch.org/whl/cu132) instead of the default PyPI build. The defaulttorchwheel pinscuda-toolkit==13.0.3(vulnerable) and cannot be moved to the fix (>=13.1.0) on PyPI, whereas the+cu132build of the sametorchversion pinscuda-toolkit==13.2.1. This keepstorchat its latest version with full GPU/CUDA support and no version downgrade.torchandtorchvisionare 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 inrequirements.txt). - Raised
requires-pythonto>=3.12.1andscikit-imagefrom>=0.19.0,<0.22to>=0.22.0,<1.0(0.21.0->0.26.0).scikit-image0.21.0has no Python 3.12 wheels, so it had to be compiled from source, which fails;0.22.0is 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;
uvnow installs a standalone Python 3.12 (in/opt/uv/python) for the venv. Dropped--system-site-packagesand thePYTHONPATHoverride, neither of which is needed since every dependency is installed in the venv. - Replaced the
pytorch/pytorch:2.6.0-cuda12.6-cudnn9-runtimebase image with a digest-pinnedubuntu:22.04. The gear never used the base image's conda environment (its CUDA 13.2 runtime comes from thetorch+cu132wheels 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 ofopenssl,libssl3,aptandlibapt-pkg6.0. The Wiz scan goes from 115 policy findings to 0, the image shrinks from 12.1 GB to 8.8 GB, andrequirements.txtis unchanged.
0.1.3_4.0.6 [2026-08-25]
Enhancements:
- Added
modalityandorganmetadata fields to the gear manifest. - Updated gear
descriptionto provide a detailed summary of outputs, supported input formats, and fallback behavior. - Added
output_configurationwithenforce_file_version_matchto the manifest.
Maintenance:
- Migrated from
flywheel-gear-toolkittofw-gear. - Updated several dependencies to address vulnerabilities.
- Added
gpgv=2.2.27-3ubuntu2.5system package installation. - Updated
urlin manifest to point to the GitLab repository.
0.1.2_4.0.6 [2025-12-16]
Maintenance:
- Updated
urllib3to>=2.6.0to address security vulnerabilities - Updated
brotlito>=1.2.0to 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
uvfor dependency management - Updated to
python3.12runtime - Added
cellpose4.0.6withpytorch2.6.0and CUDA12.6support - Added
flywheel-gear-toolkit>=0.6,<0.7for Flywheel integration - Added
numpy>=1.22.0,<2.0,scipy>=1.9.0,<2.0, andpandas<2.0 - Added
scikit-image>=0.19.0,<0.22,opencv-python-headless>=4.7.0,<5.0, andpillow11.3.0 - Added
matplotlib>=3.5.0,<4.0for visualization - Added
huggingface-hub0.35.3for model weight management - Configured GitLab CI with 6-hour timeout and GPU support
- Set up
pre-commithooks withruff,hadolint,jsonlint,yamllint, andpytest
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