Practical overview
When it fits
Use Nitrain when a Python medical-imaging project needs dataset, sampling, augmentation, and training utilities in one workflow, with a choice of PyTorch, TensorFlow, or Keras.
Who it is for
- Python developers building medical-imaging AI workflows
- Researchers preparing medical-image datasets for segmentation, classification, or registration models
Documented uses
- Read medical images and organize model inputs and target labels into a dataset.
- Apply image transforms, sampling, and augmentation before training.
- Train a medical-imaging model using a supported framework backend.
- Visualize medical-image data and results with ANTsPy support.
Requirements & limits
- ANTsPy is identified as a key dependency for reading, operating on, and visualizing medical images.
- Model creation uses a supported backend: PyTorch, TensorFlow, or Keras.
- The repository is public and specifies the AGPL-3.0 license.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up Nitrain for medical-image model training
Install the library and identify the image-handling dependency and model backend required by the documented workflow.
Before you start
- Python and pip
- ANTsPy for medical-image reading, operations, and visualization
- A model backend: PyTorch, TensorFlow, or Keras
Steps
Install the latest release with the command below.
pip install nitrainInstall or configure ANTsPy for medical-image handling.
Choose a supported backend for creating models.
Expected outcome
Nitrain is installed, with its documented medical-image dependency and a backend selected for model creation.
Guide limitations
- This setup guide does not cover backend-specific installation steps.
- Installation instructions are taken from project documentation and are not execution tests.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 15 October 2026
- Original website title
- nitrain/nitrain · Official homepage title · retained in its source language

