nnU-Net
nnU-Net is a semantic segmentation framework that automatically adapts its pipeline to a dataset. It analyzes the training data, creates a dataset fingerprint, configures suitable U-Net variants, and provides an end-to-end workflow from preprocessing to training, model selection, and inference.
It is primarily designed for supervised biomedical image segmentation, but it also works well as a strong baseline and development framework for researchers working on new segmentation methods.
If you are looking for nnU-Net v1, use the v1 branch. If you are migrating from v1, start with the TLDR migration guide.
Start Here
- First-time setup: Installation and setup
- First run on your own data: Getting Started
- Task-oriented docs: How-to Guides
- Formats, commands, and configuration details: Reference
- Concepts and rationale: Explanation
Quick Install
Install PyTorch for your hardware first, then install nnU-Net:
pip install nnunetv2
For the full setup, including nnUNet_raw, nnUNet_preprocessed, and nnUNet_results, see Installation and setup.
Documentation
Start with the documentation home.
Useful entry points:
- New users: Getting Started
- Dataset preparation: Prepare a dataset
- Training workflow: Train models
- Inference workflow: Run inference
- Recommended residual encoder presets: Residual Encoder Presets in nnU-Net
- Contributing: CONTRIBUTING.md
Scope
nnU-Net is built for supervised semantic segmentation. It supports 2D and 3D data, arbitrary channel definitions, multiple image formats, and dataset-specific adaptation of preprocessing and network configuration.
It performs particularly well in training-from-scratch settings such as biomedical datasets, challenge datasets, and non-standard imaging problems where off-the-shelf natural-image pretrained models are often a poor fit.
For a concise overview of the design, see How nnU-Net works.
Citation
Please cite the following paper when using nnU-Net:
Isensee, F., Jaeger, P. F., Kohl, S. A., Petersen, J., & Maier-Hein, K. H. (2021).
nnU-Net: a self-configuring method for deep learning-based biomedical image segmentation.
Nature Methods, 18(2), 203-211.
Additional recent work on residual encoder presets and benchmarking:
Project Notes
- nnU-Net v2 is a complete reimplementation of the original nnU-Net with improved code structure and extensibility.
- Not every dataset creates every configuration. For example, the cascade is only generated when the dataset characteristics justify it.
- Detailed historical changes are summarized in What is different in v2?.
Acknowledgements
nnU-Net is developed and maintained by the Applied Computer Vision Lab (ACVL) of Helmholtz Imaging and the Division of Medical Image Computing at the German Cancer Research Center (DKFZ).
Release files for nnunetv2 2.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nnunetv2-2.8.1.tar.gz | 209.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nnunetv2-2.8.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 500.1 kB
Release files / nnunetv2-2.8.1.tar.gz
| Download URL | nnunetv2-2.8.1.tar.gz |
|---|---|
| Size | 209.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63646638f1bbbaaa9f2a7f92dda44b992581435e45556529f0d8190f6c80dfcc
|
|
BLAKE2b-256 checksum How to use checksums |
1df6fc6d02fafdae3059c57b612020522724a8a3648d4f80e850fb1b7493c439
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 1, 2026.
Transparency logRelease files / nnunetv2-2.8.1-py3-none-any.whl
| Download URL | nnunetv2-2.8.1-py3-none-any.whl |
|---|---|
| Size | 291.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58aeb5719c9ee7bdac4b420106940cf3b21ea08a28a494802b0921ca14fde63f
|
|
BLAKE2b-256 checksum How to use checksums |
b30a1102f1362b290d06aaf3a92163fb424e7499dbde407230d61d2617b355f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 1, 2026.
Transparency log