nnU-Net · Pancreas
Segment the pancreas and pancreatic cancer in 3D CT with the PancCTMultiTalentV2 ResEncUNet-L checkpoint.
The pancreas checkpoint is the work of Omer Durugol, Maximilian Rokuss and co-authors. The model, its training method and the weights are theirs: see the nnU-Net repository, MIC-DKFZ/nnUNet, and the PANTHER paper, arXiv:2508.21775. This repository only repackages their released weights (Zenodo 17212158) for MLX on Apple Silicon. Please cite their paper and star their repository if the pancreas model is useful to you.
Original repository · Original paper · Original weights · GitHub · Files · Docs · MedMLX paper
| Input | Output |
|---|---|
| 3D pancreatic CT · NIfTI | Pancreas and cancer segmentation |
Apple Silicon · Metal · Python 3.13
Converted from the published PancCTMultiTalentV2 checkpoint without retraining.
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.pancreas import run
result = run(image_path="ct.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-pancreas-mlx --revision b2d5f14bb31f9793e3d9ab2c24096427eea983ae --local-dir models
About nnunet-mlx
See the project README for package installation and current documentation.
Use & license
For research and education. Not validated for clinical use.
The source authors publish the checkpoint archive under CC-BY-4.0. Credit Omer Durugol and Maximilian Rokuss’s Zenodo release and identify changes when redistributing. MedMLX converted the checkpoint to MLX safetensors and adapted the staged fold and trainer metadata without retraining.
The upstream model was trained using datasets including PANORAMA, whose data are separately licensed CC-BY-NC-4.0. The bundled upstream dataset.json contains a CC-BY-SA-4.0 license field; the Zenodo model archive itself is labeled CC-BY-4.0. Dataset terms and any implications for downstream model use have not been independently resolved. No training images are included in this repository. See NOTICE for sources.
Paper references
- Source checkpoint and PANTHER method: A Multi-Stage Fine-Tuning and Ensembling Strategy for Pancreatic Tumor Segmentation in Diagnostic and Therapeutic MRI.
- Pretraining method: MultiTalent: A Multi-Dataset Approach to Medical Image Segmentation.
Citation
Please cite the original paper:
Durugol, O. F. et al. (2025). A Multi-Stage Fine-Tuning and Ensembling Strategy for Pancreatic Tumor Segmentation in Diagnostic and Therapeutic MRI. arXiv:2508.21775.
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}
}