@@ -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