nnU-Net is a self-adapting framework for biomedical image segmentation that automatically configures itself for new datasets. Version 2.7.0 reworks the dataset conversion and introduces new training modes. Active development, monthly releases.
pip install nnunetv2Verified import paths — ran on the pinned version, not inferred.
Prepares environment variables, converts a Medical Segmentation Decathlon dataset, plans preprocessing, and runs a 2D training fold.
Set new env vars: nnUNet_raw, nnUNet_preprocessed, nnUNet_results. Update scripts that used the old names.
Update dataset.json to follow the new schema. See https://github.com/MIC-DKFZ/nnUNet/blob/master/documentation/dataset_format.md
Replace nnUNet_compile=True with torch.compile(model) in your training script.
Use Linux (Ubuntu) or WSL2. Ensure short paths (e.g., C:\nnunet).
Run training with torchrun: torchrun --nnodes=1 --nproc_per_node=4 --master_port=xxxx nnunetv2/run/run_training.py ...
No dependency data recorded yet.