batchgeneratorsv2
This repository is work in progress. If builds upon the batchgenerators framework but makes several key changes to the transforms:
- Transforms now explicitly distinguish between data types: images, segmentation, pixel-wise regression target, keypoints, bbox
- All transforms have been reimplemented from scratch with a focus on performance. In case of performance parity between previous numpy and new torch-based implementations, preference is given to pytorch.
- Transforms are applied on a sample level, not a batch level as was done previously!
Caveats:
- performance is optimized for CPU. GPU-based data augmentation is not supported (implementation may use numpy etc) and will not be supported
- currently this repository only covers a small subset of the transforms available in batchgenerators. Feel free to contribute more
How to contribute
We are happy to accept PRs that further optimize performance and extend the available transformations!
- Please provide benchmarking results relative to the old batchgenerators implementation (if applicable)
- Please stick to the current transform template!
Acknowledgements
batchgeneratorsv2 developed and maintained by the Applied Computer Vision Lab (ACVL) of Helmholtz Imaging and the Division of Medical Image Computing at the German Cancer Research Center (DKFZ).
Metadata
Release files for batchgeneratorsv2 0.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| batchgeneratorsv2-0.3.5.tar.gz | 53.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| batchgeneratorsv2-0.3.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 130.5 kB
Release files / batchgeneratorsv2-0.3.5.tar.gz
| Download URL | batchgeneratorsv2-0.3.5.tar.gz |
|---|---|
| Size | 53.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d75a421e7f18076308209f55af60582227ce061e03714a9e5a0c9dcddea3593
|
|
BLAKE2b-256 checksum How to use checksums |
742f235291df11c8476c95b77c4447ba4f066ae1e54c9266e18bf8023d4783fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.
Transparency logRelease files / batchgeneratorsv2-0.3.5-py3-none-any.whl
| Download URL | batchgeneratorsv2-0.3.5-py3-none-any.whl |
|---|---|
| Size | 76.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1773332bf41530a47c4c3856f43cee658f06e825bf964106e9c5422c5b4669a
|
|
BLAKE2b-256 checksum How to use checksums |
3def3233c320ffbf12a916511606398b7405d63c0e01646d1f39484f1d605c40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.
Transparency log