nnU-Net nnU-Net is a semantic segmentation framework that automatically adapts its pipeline to a dataset. It analyzes the training data, cr…
nnU-Net nnU-Net is a semantic segmentation framework that automatically adapts its pipeline to a dataset. It analyzes the training data, cr…
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.
Install PyTorch for your hardware first, then install nnU-Net:
pip install nnunetv2For the full setup, including nnUNet_raw, nnUNet_preprocessed, and nnUNet_results, see Installation and setup.
Start with the documentation home.
Useful entry points:
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.
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:
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).
Inconsistent Axis Order in `median_image_size_in_voxels` After Running `nnUNet_plan_and_preprocess` on Different Datasets
[Feature Request] Optional Visualization / Debug Mode for Preprocessing and Training.
TensorRT deployment
[Feature Request]: tiff compression of saved predictions
TypeError: nnUNetTrainer.__init__() takes from 5 to 6 positional arguments but 7 were given
Race condition in nnUNetTrainer.do_split(): concurrent trainings can read a partially written splits_final.json
Discussion: batched GPU data augmentation
Discussion: optional RankSEG-style decoding support for nnU-Net inference
--val --val_best fails when checkpoint_final is missing
All classes climb to EMA pseudo-Dice ~0.06 by epoch ~55, then collapse back to ~0 by epoch 1000 (extremely sparse multi-class MRI)