How shayliu/cmr-ai-segmentation-workbench works
CMR AI Segmentation Workbench is a reproducible cardiac-MRI segmentation workflow, centered on preparing datasets, running nnU-Net training and inference, evaluating predictions with Dice/HD95, and producing visual QC. Data preparation supports ACDC, MSD Cardiac, and local CorSeg SAX pseudo-labels; evaluation, conservative postprocessing, and overlays are separate capabilities. The README documents the main ACDC sequence, but the excerpts do not show shell-wrapper internals or a wired postprocessing step, so those relationships are not asserted.
Main entry points: predict_nnunet_acdc.sh Prediction wrapper · evaluate_segmentation.py Metric evaluation · visualize_segmentation.py QC overlays · train_nnunet_acdc.sh Training wrapper
Components 15
Data preparation
- Prepare ACDC
scripts/prepare_acdc.py - Prepare MSD
scripts/prepare_msd_cardiac.py - Prepare CorSeg
scripts/prepare_corseg_sax_pseudolabels.py
Model workflow
- nnU-Net v2
- Training wrapper
scripts/train_nnunet_acdc.sh - Prediction wrapper
scripts/predict_nnunet_acdc.sh
Evaluation and QC
- Mask cleanup
scripts/postprocess_segmentation.py - Metric evaluation
scripts/evaluate_segmentation.py - QC overlays
scripts/visualize_segmentation.py
Research artifacts
- Metric reports
results/acdc_300epoch_fold0_val_metrics.csv - QC figures
docs/assets
Other components
- Researcher
- ACDC data
- MSD data
- CorSeg data
Connections 17
- Researcher → Prepare ACDC: prepares data
README.md - Researcher → Prepare MSD: prepares data
README.md - Researcher → Prepare CorSeg: prepares data
README.md - ACDC data → Prepare ACDC: converts
README.md - MSD data → Prepare MSD: converts
README.md - CorSeg data → Prepare CorSeg: converts
README.md - Researcher → Training wrapper: starts training
README.md - Training wrapper → nnU-Net v2: runs training
README.md - Researcher → Prediction wrapper: starts inference
README.md - Prediction wrapper → nnU-Net v2: runs prediction
README.md - Researcher → Metric evaluation: evaluates results
README.md - Prediction wrapper → Metric evaluation: supplies predictions
README.md - Metric evaluation → Metric reports: writes metrics
scripts/evaluate_segmentation.py - Researcher → QC overlays: renders QC
README.md - Prediction wrapper → QC overlays: supplies prediction
README.md - QC overlays → QC figures: writes overlays
README.md - Researcher → Mask cleanup: cleans masks
scripts/postprocess_segmentation.py