nnunetv2
nnU-Net is a framework for out-of-the box image segmentation.
What it is and what it does
nnU-Net is a self-configuring deep learning framework for semantic segmentation, primarily designed for biomedical image analysis. It analyzes your training data to create a dataset fingerprint, automatically selects and configures appropriate U-Net architectures (including 2D, 3D, and cascade variants), and handles the full pipeline from preprocessing through training to model selection and inference. The framework is built on PyTorch and depends on a substantial stack of scientific libraries including scipy, scikit-learn, SimpleITK, nibabel, and others for image I/O, processing, and visualization.
It works particularly well in training-from-scratch scenarios on biomedical, medical imaging, and challenge datasets where standard pretrained models are often a poor fit. While primarily designed for supervised segmentation tasks, it serves as both a production tool and a development framework for researchers exploring new segmentation methods. The package is actively maintained by the Applied Computer Vision Lab at Helmholtz Imaging and the Division of Medical Image Computing at the German Cancer Research Center.
Use it for:
- Segment organs, tumors, or anatomical structures in CT, MRI, or other medical imaging modalities without manual architecture design
- Establish a strong baseline for new segmentation datasets or medical imaging challenges
- Train and compare multiple U-Net configurations automatically on your own biomedical image data
- Preprocess and standardize medical imaging datasets for downstream analysis or model development
- Perform 3D volumetric segmentation on stacked 2D slices or native 3D imaging data
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
nnU-Net is a semantic segmentation framework that automatically configures U-Net variants based on dataset characteristics and provides end-to-end workflows for preprocessing, training, model selection, and inference on 2D and 3D images.
Yes. nnU-Net is actively maintained, has low install friction, carries a permissive Apache 2.0 license, and reports no known vulnerabilities. It is well-suited for anyone working on biomedical image segmentation who wants to avoid manual architecture tuning. The substantial dependency footprint (22 runtime packages) is appropriate for its domain and is unlikely to conflict with typical scientific Python workflows. Start with the installation and getting-started documentation.
Install
nnunetv2 on PyPI
pip
pip install nnunetv2uv
uv add nnunetv2poetry
poetry add nnunetv2Installing nnunetv2
Before you install
Low friction installation with a pure Python wheel. Active maintenance with a recent release 44 days ago and ongoing repository activity. Requires torch and 22 runtime dependencies including scipy, scikit-learn, and medical imaging libraries like SimpleITK and nibabel.
License in practice
Apache License 2.0 is permissive: you can use, modify, and distribute nnU-Net freely in commercial and private projects, provided you include the license and attribute the original copyright holders.
Quickstart
pip install nnunetv2
from nnunetv2.imageio.base_reader_writer import BaseReaderWriter
from nnunetv2.training.nnUNetTrainer.nnUNetTrainer import nnUNetTrainer
Requires PyTorch to be installed first for your hardware (CPU/GPU). Requires Python >= 3.10. Needs environment setup for nnUNet_raw, nnUNet_preprocessed, and nnUNet_results directories per documentation.
Verify before relying
- Whether the framework supports inference on pre-trained models from external sources or only on models trained within nnU-Net
- Performance characteristics and memory requirements for typical biomedical datasets
- Specific GPU/CUDA version compatibility beyond the Python requirement
Package facts
| License | Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 22 — torch, acvl-utils, dynamic-network-architectures, tqdm, scipy, batchgenerators, numpy, scikit-learn, scikit-image, SimpleITK, pandas, graphviz, tifffile, requests, nibabel, matplotlib, seaborn, imagecodecs, yacs, batchgeneratorsv2, einops, blosc2 |
| Maintenance | actively maintained — 44 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 155,255/month — #10,827 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: nnunetv2-2.8.1-py3-none-any.whl
Keywords: deep learning, image segmentation, semantic segmentation, medical image analysis, medical image segmentation, nnU-Net, nnunet
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
segmentation-models-pytorchProvides PyTorch-based neural network models…
permissive · top 15,000 on PyPI
TotalSegmentatorAutomated segmentation of anatomical structures…
permissive · top 15,000 on PyPI
pytorchcvProvides a collection of pretrained computer…
unclear · top 15,000 on PyPI
cellposeCellpose segments cells and nuclei in…
permissive · top 15,000 on PyPI
connected-components-3dLabels connected components in 2D and 3D images…
copyleft · top 15,000 on PyPI
monaiMONAI is a PyTorch-based framework for building…
permissive · top 15,000 on PyPI
ultralyticsUltralytics YOLO provides a unified framework…
agpl · top 5,000 on PyPI
batchgeneratorsv2Reimplemented data augmentation transforms for…
permissive · top 15,000 on PyPI
nuscenes-devkitProvides tools to load, parse, and analyze the…
noncommercial · top 15,000 on PyPI
itk-segmentationProvides Python bindings for ITK's segmentation…
permissive · top 15,000 on PyPI