#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.

Stars
1.9k
License
AGPL-3.0
Last commit
Nov 2026
Last release
May 2024
Language
Python
Stars, last 29 weeks+8
10 May 2026: 1,873 stars17 May 2026: 1,873 stars24 May 2026: 1,873 stars31 May 2026: 1,873 stars7 Jun 2026: 1,873 stars14 Jun 2026: 1,873 stars21 Jun 2026: 1,873 stars28 Jun 2026: 1,873 stars5 Jul 2026: 1,873 stars12 Jul 2026: 1,874 stars19 Jul 2026: 1,874 stars26 Jul 2026: 1,874 stars2 Aug 2026: 1,875 stars9 Aug 2026: 1,876 stars16 Aug 2026: 1,876 stars23 Aug 2026: 1,876 stars30 Aug 2026: 1,876 stars6 Sept 2026: 1,877 stars13 Sept 2026: 1,879 stars20 Sept 2026: 1,879 stars27 Sept 2026: 1,880 stars4 Oct 2026: 1,880 stars11 Oct 2026: 1,880 stars18 Oct 2026: 1,880 stars25 Oct 2026: 1,880 stars1 Nov 2026: 1,880 stars8 Nov 2026: 1,880 stars15 Nov 2026: 1,880 stars22 Nov 2026: 1,880 stars29 Nov 2026: 1,881 stars

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
Also in ML frameworks and libraries
RankProjectScore
#342robosuiteMuJoCo-based robot learning simulator with benchmark manipulation tasks2.7k starscustom license34 out of 100
#343flow-forecastDeep learning library for time series forecasting, classification and anomaly detection2.3k starsGPL-3.034 out of 100
#345slowfastPyTorch codebase for training video classification and detection backbones7.5k starsApache-2.033 out of 100
#346tensortradePython framework for training reinforcement learning agents on trading environments7.4k stars+112 (+1.5%) in 30 daysApache-2.033 out of 100
#347aix360Python library of explainability algorithms and metrics for ML models and data1.8k starsApache-2.033 out of 100