Download Example Data

The monai-physio-download-data command downloads example datasets used by MONAI Physio tutorials and demos.

Supported Datasets

Data name

Description

Slicer-Heart-CT

Public 4D cardiac CT sample from SlicerHeart.

KCL-Heart-Model

King’s College London four-chamber heart model dataset: 20 individual heart meshes plus an average mesh, from Zenodo.

CHOP-Valve4D

CHOP Jolley Lab transcatheter pulmonary valve model, converted from the original FEBio model to VTK/ITK and segmented with Simpleware, from the MONAI Physio GitHub release. See data/CHOP-Valve4D/README.md.

Chest-CT

Ungated 3D chest CT, a single static volume, from the MONAI Physio GitHub release. See data/Chest-CT/README.md for the data source and required citation.

TCIA-4DLung

Converted tutorial subset of the 4D-Lung collection, from the MONAI Physio GitHub release. See data/TCIA-4DLung/README.md for the data source, the full-collection manual download, and required citation.

Duke-Heart-4DLabelmaps

Gated 4D cardiac labelmaps and JSON landmark files from the PROMISE study CT data (Duke University, Dr. Paul Segars’ lab), segmented with the ASCardio module of Simpleware, from the MONAI Physio GitHub release. Models trained on them should only be applied to labelmaps also generated with ASCardio (SegmentHeartSimplewareTrimmedBranches). See data/Duke-Heart-4DLabelmaps/README.md for the data source, its CC BY license, and required citation.

PhysicsNeMo-MGN-Lung-Motion

Pretrained PhysicsNeMo MeshGraphNet checkpoint for lung motion, from the MONAI Physio GitHub release. Used by Lung Tutorial 10 and later when skipping Tutorial 9’s training.

PhysicsNeMo-MGN-Duke-Heart-Motion

Pretrained PhysicsNeMo MeshGraphNet checkpoint for Duke heart motion, with the heart PCA shape model it was trained against. Used by the cardiac Tutorial 00 notebook and by Duke Tutorials 12-14 when skipping Tutorial 9’s training.

PhysicsNeMo-PhysicsInformed-Motion-Duke-Heart

Pretrained physics-informed (neo-Hookean residual) MeshGraphNet checkpoint for Duke heart motion, with the volumetric PCA shape model it was trained against. Used by the physics-informed Tutorial 00 notebook and by Tutorial 18 when skipping Tutorial 17’s training.

PhysicsNeMo-PhysicsInformed-Motion-Duke-Heart-Ablation

The same network trained with the physics term switched off (lambda_physics = 0), the baseline the physics-informed checkpoint is compared against.

Basic Usage

Download a dataset into its default location:

monai-physio-download-data Slicer-Heart-CT

Running the command with no arguments prints usage/help instead of downloading anything.

Options

monai-physio-download-data [Slicer-Heart-CT|KCL-Heart-Model|CHOP-Valve4D|Chest-CT|TCIA-4DLung|Duke-Heart-4DLabelmaps|PhysicsNeMo-MGN-Lung-Motion|PhysicsNeMo-MGN-Duke-Heart-Motion|PhysicsNeMo-PhysicsInformed-Motion-Duke-Heart|PhysicsNeMo-PhysicsInformed-Motion-Duke-Heart-Ablation] [--directory DIRECTORY]
data_name

Dataset to download. One of Slicer-Heart-CT, KCL-Heart-Model, CHOP-Valve4D, Chest-CT, TCIA-4DLung, Duke-Heart-4DLabelmaps, PhysicsNeMo-MGN-Lung-Motion, PhysicsNeMo-MGN-Duke-Heart-Motion, PhysicsNeMo-PhysicsInformed-Motion-Duke-Heart, or PhysicsNeMo-PhysicsInformed-Motion-Duke-Heart-Ablation. Required - omitting it prints help and exits.

--directory

Directory where the dataset is stored. Defaults to data/<data_name>, or tutorials/network_weights for the PhysicsNeMo-* checkpoints.

Output

For Slicer-Heart-CT, the command downloads the 4-D sequence and splits it into per-phase 3-D volumes:

data/Slicer-Heart-CT/TruncalValve_4DCT.seq.nrrd
data/Slicer-Heart-CT/slice_000.mha ... slice_020.mha

The command uses monai_physio.download_data.DownloadData.download_slicer_heart_ct_data(), so repeated runs reuse the existing non-empty file and skip the split once the slice_???.mha files are present.

For KCL-Heart-Model, the command downloads, extracts, and reuses:

data/KCL-Heart-Model/average_mesh.vtk
data/KCL-Heart-Model/input_meshes/01.vtk ... 20.vtk

The command uses monai_physio.download_data.DownloadData.download_kcl_heart_model_data(), which fetches each per-model .tar.gz archive from Zenodo, extracts its mesh, and skips archives whose target .vtk file is already present.

For CHOP-Valve4D, the command downloads, extracts, and reuses:

data/CHOP-Valve4D/Alterra/   (valve mesh time series, >1 GB)
data/CHOP-Valve4D/TPV25/     (valve mesh time series, >1 GB)
data/CHOP-Valve4D/CT/        (source CT volume and Simpleware segmentation)

The command uses monai_physio.download_data.DownloadData.download_chop_valve_4d_data(), which fetches each subdirectory’s zip archive from the MONAI Physio GitHub release and skips a subdirectory once it has its expected extracted files (the CT volume or Simpleware segmentation for CT/, .vtk meshes for Alterra/ and TPV25/) - a subdirectory left behind by an interrupted extraction is re-downloaded rather than treated as complete.

For Chest-CT, the command downloads and reuses a single volume:

data/Chest-CT/Chest-CT.mha

The command uses monai_physio.download_data.DownloadData.download_chest_ct_data(), which fetches the volume from the MONAI Physio GitHub release and reuses an existing non-empty file, so re-running resumes an interrupted download.

For TCIA-4DLung, the command downloads, extracts, and reuses:

data/TCIA-4DLung/100_HM10395/100_HM10395_g000.nii.gz ...
data/TCIA-4DLung/116_HM10395/116_HM10395_g000.nii.gz ...

The command uses monai_physio.download_data.DownloadData.download_tcia_4d_lung_data(), which fetches both zip archives (TCIA-4DLung-Part1.zip and TCIA-4DLung-Part2.zip) from the MONAI Physio GitHub release and skips the download entirely once any case’s phase volumes are already present - this is a converted tutorial subset; see data/TCIA-4DLung/README.md for how to obtain the full TCIA 4D-Lung collection manually.

For Duke-Heart-4DLabelmaps, the command downloads, extracts, and reuses:

data/Duke-Heart-4DLabelmaps/pm0002/*_labelmap.nii.gz
data/Duke-Heart-4DLabelmaps/pm0002/*_landmark.mrk.json ...

The command uses monai_physio.download_data.DownloadData.download_duke_heart_4d_labelmaps_data(), which fetches Duke-Heart-4DLabelmaps.zip from the MONAI Physio GitHub release and skips the download once any case’s labelmaps are already present.

For PhysicsNeMo-MGN-Lung-Motion, the command downloads, extracts, and reuses:

tutorials/network_weights/physicsnemo_mgn_lung_motion/mgn_stage_model.pt
tutorials/network_weights/physicsnemo_mgn_lung_motion/  (other epoch
    checkpoints and metadata)

The command uses monai_physio.download_data.DownloadData.download_physicsnemo_mgn_lung_motion_data(), which fetches physicsnemo_mgn_lung_motion.zip from the MONAI Physio GitHub release and skips the download once mgn_stage_model.pt is already present. Unlike every dataset, its default --directory is tutorials/network_weights, not data/<data_name>.

The three Duke heart checkpoints are fetched the same way, each into its own directory under tutorials/network_weights:

tutorials/network_weights/physicsnemo_mgn_duke_heart_motion/mgn_stage_model.pt
tutorials/network_weights/physicsnemo_physics_informed_motion_duke_heart/physics_informed_motion_stage_model.pt
tutorials/network_weights/physicsnemo_physics_informed_motion_duke_heart_ablation/physics_informed_motion_stage_model.pt

They use monai_physio.download_data.DownloadData.download_physicsnemo_mgn_duke_heart_motion_data(), monai_physio.download_data.DownloadData.download_physicsnemo_physics_informed_motion_duke_heart_data() and monai_physio.download_data.DownloadData.download_physicsnemo_physics_informed_motion_duke_heart_ablation_data(), each of which skips the download once its checkpoint is present, so a network trained locally by Tutorial 9 or 17 is never overwritten.

See Also

  • Tutorials - Slicer-Heart-CT drives Heart Tutorials 1, 3 and 4; KCL-Heart-Model drives Heart Tutorial 6; Chest-CT drives Lung Tutorial 7 and Tutorial 13; TCIA-4DLung drives Lung Tutorials 1, 2, 3, 4, 6, 8, 10-12, 14 and 15. DirLab-4DCT, used by Heart Tutorial 7, has no monai-physio-download-data entry - DIR-Lab distributes each case individually and may require registration, so it is manual-only, see data/DirLab-4DCT/README.md. Duke-Heart-4DLabelmaps, which drives the fifteen duke_heart variants, is downloaded with the CLI; see data/Duke-Heart-4DLabelmaps/README.md. PhysicsNeMo-MGN-Lung-Motion is the pretrained-checkpoint shortcut for Lung Tutorial 10 (and everything downstream of it: 11-14), letting a reader skip running Tutorial 9’s training themselves. PhysicsNeMo-MGN-Duke-Heart-Motion and the two PhysicsNeMo-PhysicsInformed-Motion-Duke-Heart* checkpoints drive the two cardiac Tutorial 00 notebooks with no other tutorial run first.

  • Bring Your Own Data - DICOM, Images & VTK to USD

  • Heart Gated CT Processing

  • CLI & Scripts Overview