monai
AI Toolkit for Healthcare Imaging
What it is and what it does
MONAI is a PyTorch-based framework designed for deep learning in healthcare imaging. It sits on top of NumPy and PyTorch and provides domain-specific building blocks—transforms for preprocessing multi-dimensional medical data, network architectures, loss functions, and evaluation metrics—aimed at researchers and clinicians building end-to-end training workflows. The framework is part of the PyTorch Ecosystem and emphasizes compositional, portable APIs that integrate into existing workflows.
The package targets academic, industrial, and clinical researchers. It handles the standardized, optimized setup of deep learning models for medical imaging, reducing boilerplate and allowing users to focus on domain logic rather than infrastructure. Multi-GPU and multi-node data parallelism are built in. Installation is straightforward via pip, and the project is actively maintained with support for modern Python versions.
Use it for:
- Build and train classification or segmentation models on medical imaging datasets (CT, MRI scans).
- Preprocess multi-dimensional medical imaging data with domain-specific transforms.
- Evaluate deep learning models using healthcare-specific metrics and loss functions.
- Deploy end-to-end training workflows for clinical imaging applications.
- Leverage community-contributed models from the MONAI Model Zoo for transfer learning.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
MONAI is a PyTorch-based framework for building deep learning models on medical imaging data, providing pre-processing, network architectures, loss functions, and evaluation metrics tailored to healthcare applications.
Yes. MONAI is actively maintained, has low install friction, carries a permissive license, and provides a mature, well-documented framework purpose-built for medical imaging deep learning. It is suitable for researchers and practitioners building healthcare imaging applications with PyTorch. No known security vulnerabilities as of the query date.
Install
monai on PyPI
pip
pip install monaiuv
uv add monaipoetry
poetry add monaiInstalling monai
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained with a recent release 53 days ago and ongoing development; the project has 8597 stars and supports current Python versions (3.10–3.13).
License in practice
Apache License 2.0 is permissive, allowing commercial and private use with minimal restrictions beyond attribution and liability disclaimers.
Quickstart
pip install monai
import monai
from monai.transforms import Compose, LoadImage
transforms = Compose([LoadImage(image_only=True)])
Requires PyTorch and NumPy; GPU support is optional but recommended for medical imaging workloads.
Verify before relying
- Whether the package includes pre-trained models or requires users to train from scratch.
- Performance characteristics and typical training time for common medical imaging tasks.
- Specific medical imaging modalities (CT, MRI, ultrasound, etc.) that are best supported.
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — torch, numpy |
| Maintenance | actively maintained — 53 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 542,753/month — #6,088 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: monai-1.6.0-202606221745-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
torchioTorchIO reads, preprocesses, augments, and…
permissive · top 15,000 on PyPI
nnunetv2nnU-Net is a semantic segmentation framework…
permissive · top 15,000 on PyPI
torchxrayvisionTorchXRayVision provides pre-trained deep…
permissive · top 15,000 on PyPI
fastaifastai is a deep learning library that provides…
permissive · top 15,000 on PyPI
mmdetMMDetection is an object detection and instance…
permissive · top 15,000 on PyPI
batchgeneratorsv2Reimplemented data augmentation transforms for…
permissive · top 15,000 on PyPI
pytorch-ignitePyTorch Ignite provides a high-level training…
permissive · top 15,000 on PyPI
torchPyTorch provides GPU-accelerated tensor…
permissive · top 1,000 on PyPI
segmentation-models-pytorchProvides PyTorch-based neural network models…
permissive · top 15,000 on PyPI
mmengineMMEngine is a foundational PyTorch training…
permissive · top 5,000 on PyPI