#344344th of 437 in ML frameworks and librariesFor science, health and research, science, health and medicine
nitrain
Python library for loading, augmenting and training models on medical images
Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts nitrain on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.nitrain is on your watch list. Its new releases and problems show there.
- Stars
- 1.9k
- License
- AGPL-3.0
- Last commit
- Nov 2026
- Last release
- May 2024
- Language
- Python
1,873 on 10 May 20261,881 on 29 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Nitrain (formerly torchsample) is a Python library that reads medical imaging datasets such as NIfTI files, applies transforms and samplers, and trains models through a high-level Trainer. It works with torch, tensorflow and keras backends and uses ANTsPy for image I/O and visualization. Tutorials cover segmentation, classification and registration.
Who it is for: Researchers training deep learning models on medical imaging data in Python
Strengths
- Dataset, Loader and Trainer abstractions cover medical image training in a few lines
- Supports torch, tensorflow and keras backends
- Built-in readers, slice sampling and intensity or resize transforms for 3D images
- Tutorials for segmentation, classification and registration in a separate repo
Weaknesses
- Last release is 2024-05-24, well behind recent commits
- Depends on ANTsPy for image handling
- AGPL-3.0 license restricts use in closed-source products
- Quickstart omits the tx import and has a missing comma, so it won't run as written
What it needs
- GPU optional
- Needs ANTsPy, torch, tensorflow or keras
- Models: torch, tensorflow, keras
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in ML frameworks and libraries
See all 437| Rank | Project | Score |
|---|---|---|
| #342 | robosuiteMuJoCo-based robot learning simulator with benchmark manipulation tasks | 34 out of 100 |
| #343 | flow-forecastDeep learning library for time series forecasting, classification and anomaly detection | 34 out of 100 |
| #345 | slowfastPyTorch codebase for training video classification and detection backbones | 33 out of 100 |
| #346 | tensortradePython framework for training reinforcement learning agents on trading environments | 33 out of 100 |
| #347 | aix360Python library of explainability algorithms and metrics for ML models and data | 33 out of 100 |