Framework-agnostic Python library for medical image sampling, augmentation, and AI training.
Simplify medical image sampling, augmentation, and model training in Python.
Nitrain is a framework-agnostic Python library designed for sampling and augmenting medical images while training AI models. It suits medical imaging researchers and developers working with PyTorch, TensorFlow, or Keras.
It provides high-level abstractions and reasonable defaults to simplify training segmentation, classification, and registration models on medical imaging datasets. The library relies on ANTsPy for efficient image reading, operations, and visualization.
It suits machine learning engineers and researchers building medical imaging AI. It does not suit clinicians without Python programming experience or those looking for a ready-to-use graphical diagnostic application.
Supports PyTorch, TensorFlow, and Keras as backends for creating models.
Built-in readers handle specialized formats like NIfTI files via ANTsPy integration.
Includes tools like SliceSampler to handle multi-dimensional medical data batches.
Quickly fetch standard architectures like U-Net configured for specific dimensions.
Nitrain is free under its open-source license, with no paid hosted option provided. The only cost is running it yourself on your own hardware or cloud compute instances.
874 open remote AI-training roles, updated November 15, 2026; most pay $20–$170 an hour. Zekai lists them free; the application goes to the employer’s platform.
These reviewed AI tools do the same job instantly — from our scored directory.
Nitrain supports PyTorch, TensorFlow, and Keras as backends for your model training.
It reads medical imaging formats supported by ANTsPy, such as NIfTI (.nii.gz) files.
No, Nitrain is a Python library that you run locally or within your own compute environment.
See Zekai first in Google