Skip to content
vboussotPublic

About

PANTHER 2025 Challenge – Code and weights for pancreatic tumor segmentation on T2-weighted MRI using transfer learning, fine-tuning, and ensembling.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Grand Challenge Hugging Face

PANTHER 2025: Pancreatic Tumor Segmentation on T2W MRI (2nd place 🥈)

This repository provides the full code and configurations used for our submission to the PANTHER Challenge 2025, focused on automatic pancreatic tumor segmentation on MR-Linac T2-weighted MRI.
Our approach leverages transfer learning, fine-tuning, and ensemble methods to tackle the few-shot setting (50 annotated cases).


📊 Results

🏁 Official Challenge Leaderboard

Rank Team / User Method DSC (↑) NSD (↑) HD95 [mm] (↓) ASD [mm] (↓) Vol. [mm³] (↑)
1st MIC-DKFZ Bauchspeichel-Doppel-Düse 0.5289 0.6999 23.0110 5.1319 17163.5753 (4)
2nd BreizhSeg docker_Task2 0.4910 0.6736 25.2634 (4) 6.1722 (2) 16714.9043 (2)
2nd LiboZhang Task2Baseline 0.4814 0.6507 24.0864 (2) 7.6881 (3) 16647.2197 (1)
4th amparobt9 PANTHER baseline (MRSegmentator) 0.4784 0.6457 24.1735 (3) 8.1224 (4) 16846.2910 (3)

🔗 View the full leaderboard


🧩 Methods

Our approach explored three main strategies:

  1. MRI → CT Transfer

  2. Direct MRI Fine-tuning

    • Fine-tuned a pretrained PANORAMA ResUNetL (winner of CT segmentation) on Panther T2W MRIs.
    • Showed competitive performance but high inter-patient variability.
  3. SAM 2.1 Fine-tuning with Prompts

    • Used method (2) segmentations as prompts for SAM 2.1.
    • Fine-tuned SAM on Panther dataset.
    • Improvement marginal; SAM struggled with medical tumor characteristics.

✅ Final Submission

We combined the panther curvas with multiple fine-tuned models with STAPLE ensembling, which provided the most robust approach across cases.


📦 Models & Weights


🚀 Build & run

The weights are not committed (resources/ is git-ignored) and are baked into the image at build time. Place them first, then build:

resources/
├── nnUNet_results/   # 5-fold nnUNet ResEncUNet-L ensemble (from Hugging Face VBoussot/Panther)
└── Model/            # MRSegmentator v1.2.0 weights
./do_build.sh                 # docker build --platform=linux/amd64 --tag panther-baseline
./do_test_run.sh              # forward pass over test/input → test/output (GPU, --network none)
./do_save.sh                  # export the image as a gzipped tar for Grand Challenge upload

Runtime pipeline: MRSegmentator localizes the pancreas (label 7) → margin-crop ROI → 5-model nnUNet ResEncUNet-L ensemble → STAPLE fusion (0.5) → un-crop → tumor_seg.mha. nnUNetTrainer_Xepochs.py is injected into the nnUNet install at build time because it is required to load the custom-epoch checkpoints. I/O follows the Grand Challenge convention (/input/images/*mri* → /output/images/pancreatic-tumor-segmentation/tumor_seg.mha).

🧠 Framework note

KonfAI produced the auxiliary/experimental models explored during development (SynthRAD sCT, Curvas CT — strategies 1–2 above). The final submitted container is a standard nnUNet + MRSegmentator pipeline and has no KonfAI dependency at inference.

Source files carry Apache-2.0 headers.


About

PANTHER 2025 Challenge – Code and weights for pancreatic tumor segmentation on T2-weighted MRI using transfer learning, fine-tuning, and ensembling.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages