v4.0.5
Updates to Cellpose-SAM
resampleadded back to CLI fordiameterchanges. Note that thediameterparameter is only used for image rescaling and is not always necessary to provide in CPSAM compared to CP3.- default model weights are changed to
torch.bfloat16instead of previous 32-bit float data type. This decreases the model size by ~50% and speeds up runtime by ~40%, therefore helping with OOM issues. Changing back to the 32-bit model can be done duringCellposeModelinstantiation by settinguse_bfloat16=False. - Improved 3d image dimension guessing
- Fixed a bug that ran the network 4x more often than necessary when image size was <256 length or width.
- Added some documentation
- Updated notebooks
- Some more comprehensive testing
Changelog: v4.0.4...v4.0.5