nnU-Net · AutoPET
Segment tumor labels from paired CT and FDG PET using the autoPET II nnU-Net checkpoint.
The autoPET II checkpoint is the work of Fabian Isensee and Klaus H. Maier-Hein (MIC-DKFZ). The model, its training method and the weights are theirs: see the original repository, MIC-DKFZ/nnUNet, and the paper, arXiv:2309.13747. This repository only repackages their released weights (Zenodo 8362371) for MLX on Apple Silicon. Please cite their paper and star their repository if the autoPET model is useful to you.
Original repository · Original paper · Original weights · GitHub · Files · Docs · MedMLX paper
| Input | Output |
|---|---|
| CT + SUV PET · NIfTI | Tumor segmentation |
Apple Silicon · Metal · Python 3.13
Quick start
uv venv --python 3.13
source .venv/bin/activate
uv pip install "nnunet-mlx>=0.9.0"
Replace the example input paths with your own files.
from nnunet_mlx.named_models.autopet import run
result = run(
image_paths={"ct": "ct.nii.gz", "pet": "suv.nii.gz"},
output_dir="outputs",
)
print(result["outputs"]["mask"])
Weights download from this repository on first use, at a pinned revision. To fetch them yourself, download that revision and pass the folder as weights_path="models":
uv tool install huggingface-hub
hf download MedMLX/nnunet-autopet-mlx --revision 459d23802ae289be0f6539d40ca70c7facb1a9de --local-dir models
Use aligned CT and SUV PET volumes; the keys name each channel.
About nnunet-mlx
See the project README for package installation and current documentation.
Use & license
For research and education. Not validated for clinical use.
Paper references
Citation
Please cite the original paper:
Isensee, F. & Maier-Hein, K. H. (2023). Look Ma, no code: fine tuning nnU-Net for the AutoPET II challenge by only adjusting its JSON plans. arXiv:2309.13747.
If you use MedMLX, please cite the MedMLX paper:
@article{sandoval2026medmlx,
title = {MedMLX: On-Device Medical Imaging AI for Apple Silicon},
author = {Sandoval, J. and Sandoval, A. and Saleem, A.},
journal = {medRxiv},
year = {2026},
doi = {10.64898/2026.10.28.26366762}
}