Releases: TheJacksonLaboratory/zarrdataset
ZarrDataset with zarr v2 support
What's Changed
- Enabled kwargs to pass padding_mode to the ImageLoader function by @fercer in #15
- PR: Enable Multi-GPU Sharding in IterableDataset by @schaugf in #18
- Changed use of single value data group as pyramid level by @fercer in #23
- Modified requirements to use
zarr<3
by @fercer in #26
New Contributors
Full Changelog: v0.2.1...v0.2.2
Support sequence of transforms
This release enables registering multiple transforms to be applied to the distinct data modes handled by a ZarrDataset
object.
Sequence of transforms can be added using the .add_transform
method. This method now allows to assign a list of transforms to each specific data mode, instead of a single one transform.
Moreover, this functionality lets describe more complex transform pipelines involving different data modes for data augmentation purposes.
ZarrDataset update for inference
Description
New capabilities were added to PatchSampler
and ImageBase
to handle padded samples and incomplete patches.
This allows to use ZarrDataset
in an inference workflow and not only for training.
Additionally, patch sampling is now based on multiples of the patch_size
instead of the chunk size from input files. This allow to sample patches from "incomplete" chunks (those smaller than the file's chunk size).
Changes
- Added
allow_incomplete_patches
parameter toPatchSampler
class. This allows to retrieve patches from chunks that are smaller than the input file's chunk size. Previously, these chunks and all patches that could potentially be extracted were discarded. - Added
pad
parameter toPatchSampler
to add padding into all spatial axes when generating the selection slices. - Added
stride
parameter toPatchSampler
to introduce spacing between sampled patches. - Updated
ImageBase
to handle indices that request pixels from outside the actual image by adding padding to cached chunks.
ZarrDataset available at PyPI with complete documentation
Documentation ready at https://thejacksonlaboratory.github.io/zarrdataset/index.html and the package for installing from PyPI
Release testing publication of ZarrDataset to PyPI
This release is for python 3.9 and should be able to publish ZarrDataset to PyPI
First release
First release of ZarrDataset for testing with TestPyPI