44 <img alt =" CineMA logo " src =" logo_light.svg " height =" 256 " >
55</picture >
66
7- # CineMA: A Foundation Model for Cine Cardiac MRI 🎥🫀
7+ # CineMA: A Vision Foundation Model for Cine Cardiac MRI 🎥🫀
88
99![ python] ( https://img.shields.io/badge/Python-3.11-3776AB.svg?style=flat&logo=python&logoColor=white )
1010![ pytorch] ( https://img.shields.io/badge/PyTorch-EE4C2C?style=flat&logo=pytorch&logoColor=white )
1515
1616## Overview
1717
18- ** CineMA** is a foundation model for ** Cine** cardiac magnetic resonance (CMR) imaging based on
18+ ** CineMA** is a vision foundation model for ** Cine** cardiac magnetic resonance (CMR) imaging based on
1919** M** asked-** A** utoencoder. CineMA has been pre-trained on UK Biobank data and fine-tuned on multiple clinically
2020relevant tasks such as ventricle and myocaridum segmentation, ejection fraction (EF) regression, cardiovascular disease
2121(CVD) detection and classification, and mid-valve plane and apical landmark localization. The model has been evaluated
@@ -73,7 +73,7 @@ python examples/inference/landmark_coordinate.py
7373| Landmark localization by heatmap regression | LAX 2C or LAX 4C | 1 | [ landmark_heatmap.py] ( examples/inference/landmark_heatmap.py ) |
7474| Landmark localization by coordinates regression | LAX 2C or LAX 4C | 1 | [ landmark_coordinate.py] ( examples/inference/landmark_coordinate.py ) |
7575
76- ### Use pre-trained models for fine-tuning
76+ ### Use pre-trained models
7777
7878The pre-trained CineMA model backbone is available at https://huggingface.co/mathpluscode/CineMA . Following scripts
7979demonstrated how to fine-tune this backbone using
@@ -91,10 +91,17 @@ python examples/train/regression.py
9191| Cardiovascular disease classification | [ classification.py] ( examples/train/classification.py ) |
9292| Ejection fraction regression | [ regression.py] ( examples/train/regression.py ) |
9393
94- For other datasets, pre-process can be performed using the provided scripts following the documentations. Note that it
95- is recommended to download the data under ` ~/.cache/cinema_datasets ` as the integration tests uses this path. For
96- instance, the mnms preprocessed data would be ` ~/.cache/cinema_datasets/mnms/processed ` . Otherwise define the path using
97- environment variable ` CINEMA_DATA_DIR ` .
94+ Another two scripts demonstrated the masking and prediction process of MAE and the feature extraction from MAE.
95+
96+ ``` bash
97+ python examples/inference/mae.py
98+ python examples/inference/mae_feature_extraction.py
99+ ```
100+
101+ For fine-tuning CineMA on other datasets, pre-process can be performed using the provided scripts following the
102+ documentations. Note that it is recommended to download the data under ` ~/.cache/cinema_datasets ` as the integration
103+ tests uses this path. For instance, the mnms preprocessed data would be ` ~/.cache/cinema_datasets/mnms/processed ` .
104+ Otherwise define the path using environment variable ` CINEMA_DATA_DIR ` .
98105
99106| Training Data | Documentations |
100107| ------------- | -------------------------------------------- |
0 commit comments