What-to-Preserve-Where-to-Adapt
3D nnU-Net checkpoints against forgetting in segmentation
2 min readupdated
A collection of pretrained weights and evaluation results for a research paper on the forgetting effect in continual learning for gynecological medical image segmentation. Built on the 3D nnU-Net architecture (v1, 3d_fullres configuration) using AmalSaqib's Lifelong nnU-Net framework, this release includes a base model along with 38 experimental runs adapted to new datasets (ECPC-IDS and UT-EndoMRI), including variants with per-block learning rate calibration. Medical computer vision researchers can use this repository to study catastrophic forgetting in AI models and reproduce the paper's experiments without retraining from scratch on a GPU.
Key features
- 3D nnU-Net architecture: all models were trained in the
3d_fullresconfiguration using Lifelong nnU-Net up to the final 100th epoch (fold 0). - Full set of experiments: the
results/folder contains the initial checkpoint (trained on the UMD dataset) plus 38 variants adapted to new tasks (ECPC-IDS and UT-EndoMRI). - Per-block calibration: scale-aware runs include
gradient_lr_calibration.jsonfiles containing calibrated multipliers for individual network blocks. - Ready-to-use quality metrics: the
evaluation/folder providesval_metrics_eval.jsonfiles with per-case and per-class Dice and IoU scores, alongsideSHA256SUMSchecksums.
What you can do
- Reproduce paper tables without a GPU: download the checkpoints and evaluations, then run
reproducibility/summarize_questions.pyto recalculate forgetting, Dice scores, and weight drift. - Study weight dynamics during fine-tuning: analyze which 3D nnU-Net blocks shift the most when adapting to new medical datasets and how layer-wise learning rates help.
- Use as a starting point for experiments: take the base UMD checkpoint as initial weights for your own continual segmentation tests in Lifelong nnU-Net.
Example
git clone [https://github.com/AmalSaqib/What-to-Preserve-Where-to-Adapt](https://github.com/AmalSaqib/What-to-Preserve-Where-to-Adapt) && cd What-to-Preserve-Where-to-Adapt
hf download AmalSaqib/What-to-Preserve-Where-to-Adapt --local-dir hf
export RESULTS_FOLDER=$PWD/hf/results EVALUATION_FOLDER=$PWD/hf/evaluation
SEQ=nnUNet_ext/3d_fullres/Task666_UMD_Task555_ECPC_Task778_EndoMRI_T1FS/Task666_UMD/nnUNetTrainerSequential__nnUNetPlansv2.1/Generic_UNet/SEQ
export PAPER_INIT_CHECKPOINT=$RESULTS_FOLDER/$SEQ/fold_0
export PAPER_BASELINE_UMD_EVAL=$EVALUATION_FOLDER/$SEQ/head_Task666_UMD/fold_0/Task666_UMD/val_metrics_eval.json
python reproducibility/summarize_questions.py
Read more
DetailsTraining: 100 epochs (fold 0) based on Lifelong nnU-Net, using UMD as the base dataset with adaptation on ECPC-IDS and UT-EndoMRI.
Data: actual medical images and annotations are not included in the repository—only weights (
.model, .pkl) and Dice/IoU metrics.Security: checkpoints are saved in PyTorch pickle format, and the
.pkl files contain the original local training paths.License: CC BY-NC 4.0 (for non-commercial academic research only).










Comments