Framework-agnostic Python data augmentation library for 2D and 3D medical imaging. Provides spatial transforms (elastic deformations, rotations, scaling, mirroring), intensity augmentations (gamma, brightness, contrast), noise injection, and anatomy-informed operations compatible with both PyTorch and TensorFlow training pipelines. Handles volumetric (3D) data natively — a differentiator from most general-purpose augmentation libraries. Used as the augmentation backend in nnU-Net but widely adopted independently for medical image segmentation and classification training. Apache 2.0, 1.2k stars, v0.25.1 (March 2024). A successor, batchgeneratorsv2, is in active development (February 2025). Developed at MIC-DKFZ / Helmholtz Imaging.
Adopt — committed within 3 months; 1177 stars (strong community); 169357 monthly downloads (widely used); permissive licence (Apache-2.0).
Derived deterministically by the MACH scorer from the signals below — not written prose.
Active — committed within the last month; has tests, CI
★ 1,177 stars · 234 forks · 37 open issues
Jupyter Notebook 87% Python 13%
Every value records the source it was harvested from.
| Field | Value | Source |
|---|---|---|
| citations | 101 | openalex |
| description | A framework for data augmentation for 2D and 3D image classification and segmentation | github_api |
| discovered_conda | not_found | discovery |
| discovered_cran | not_found | discovery |
| discovered_doi | 10.5281/zenodo.3632567 | discovery |
| discovered_hf | not_found | discovery |
| discovered_npm | not_found | discovery |
| discovered_pypi | batchgenerators | discovery |
| has CI | True | github_api |
| has docs | True | github_api |
| has releases | False | github_api |
| has tests | True | github_api |
| HuggingFace downloads (monthly) | not_found | huggingface |
| judgement | Adopt | mach_scorer |
| judgement reason | Adopt — committed within 3 months; 1177 stars (strong community); 169357 monthly downloads (widely used); permissive licence (Apache-2.0). | mach_scorer |
| license | Apache-2.0 | github_api |
| openalex_id | https://openalex.org/W6912259547 | openalex |
| openalex_type | software | openalex |
| openalex_venue | Zenodo (CERN European Organization for Nuclear Research) | openalex |
| publication_year | 2020 | openalex |
| PyPI downloads (monthly) | 169357 | pypi |
| archived | False | github_api |
| repository created | 2017-10-27T12:43:51Z | github_api |
| GitHub forks | 234 | github_api |
| repo health | Active | mach_health |
| repo health reason | committed within the last month; has tests, CI | mach_health |
| homepage | ok | github_api |
| languages | Jupyter Notebook:87,Python:13 | github_api |
| last commit | 2026-11-04T09:03:55Z | github_api |
| open issues | 37 | github_api |
| primary language | Jupyter Notebook | github_api |
| repo_size_kb | 7895 | github_api |
| GitHub stars | 1177 | github_api |
| topics | ok | github_api |
Recorded deviations — when a harvested value changed between runs.
| When | Field | Was | Now | Source |
|---|---|---|---|---|
| 2026-11-20T21:53:44.330700 | repo_health | — | Active | mach_health |
| 2026-11-20T21:53:44.330700 | repo_health_reason | — | committed within the last month; has tests, CI | mach_health |
| 2026-11-20T21:53:44.330596 | judgement | — | Adopt | mach_scorer |
| 2026-11-20T21:53:44.330596 | judgement_reason | — | Adopt — committed within 3 months; 1177 stars (strong community); 169357 monthly downloads (widely used); permissive licence (Apache-2.0). | mach_scorer |
| 2026-11-20T21:47:43.630166 | hf_downloads | — | — | huggingface |
| 2026-11-20T21:47:43.572962 | pypi_downloads | — | 169357 | pypi |
| 2026-11-20T21:47:43.109579 | citations | — | 101 | openalex |
| 2026-11-20T21:47:43.109579 | openalex_id | — | https://openalex.org/W6912259547 | openalex |
| 2026-11-20T21:47:43.109579 | openalex_type | — | software | openalex |
| 2026-11-20T21:47:43.109579 | openalex_venue | — | Zenodo (CERN European Organization for Nuclear Research) | openalex |
| 2026-11-20T21:47:43.109579 | publication_year | — | 2020 | openalex |
| 2026-11-20T21:47:43.109526 | discovered_conda | — | — | discovery |
| 2026-11-20T21:47:43.109526 | discovered_cran | — | — | discovery |
| 2026-11-20T21:47:43.109526 | discovered_doi | — | 10.5281/zenodo.3632567 | discovery |
| 2026-11-20T21:47:43.109526 | discovered_hf | — | — | discovery |
| 2026-11-20T21:47:43.109526 | discovered_npm | — | — | discovery |
| 2026-11-20T21:47:43.109526 | discovered_pypi | — | batchgenerators | discovery |
| 2026-11-20T21:47:41.469057 | has_ci | — | True | github_api |
| 2026-11-20T21:47:41.469057 | has_docs | — | True | github_api |
| 2026-11-20T21:47:41.469057 | has_releases | — | False | github_api |
| 2026-11-20T21:47:41.469057 | has_tests | — | True | github_api |
| 2026-11-20T21:47:41.469057 | repo_languages | — | Jupyter Notebook:87,Python:13 | github_api |
| 2026-11-20T21:47:41.468984 | description | — | A framework for data augmentation for 2D and 3D image classification and segmentation | github_api |
| 2026-11-20T21:47:41.468984 | license | — | Apache-2.0 | github_api |
| 2026-11-20T21:47:41.468984 | repo_archived | — | False | github_api |
| 2026-11-20T21:47:41.468984 | repo_created | — | 2017-10-27T12:43:51Z | github_api |
| 2026-11-20T21:47:41.468984 | repo_forks | — | 234 | github_api |
| 2026-11-20T21:47:41.468984 | repo_homepage | — | — | github_api |
| 2026-11-20T21:47:41.468984 | repo_last_commit | — | 2026-11-04T09:03:55Z | github_api |
| 2026-11-20T21:47:41.468984 | repo_open_issues | — | 37 | github_api |
| 2026-11-20T21:47:41.468984 | repo_primary_language | — | Jupyter Notebook | github_api |
| 2026-11-20T21:47:41.468984 | repo_size_kb | — | 7895 | github_api |
| 2026-11-20T21:47:41.468984 | repo_stars | — | 1177 | github_api |
| 2026-11-20T21:47:41.468984 | repo_topics | — | — | github_api |