Downloads · 30 days
0
youngzhou12/M-FLAG
M-FLAG is a machine learning model from youngzhou12. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as mit.
A retrained M-FLAG model for benchmarking medical vision-language pre-training methods within the BenchX framework.
Downloads · 30 days
0
Access
Public
Updated Nov 8, 2024
Repo size
572 MB
Likes
0
Public
Click a slice to open those files.
.pth572 MB · 100%
From the Hugging Face model README
A retrained M-FLAG model for benchmarking medical vision-language pre-training methods within the BenchX framework.
Please follow the instruction to install BenchX.
To fine-tune M-FLAG for classification, run this command:
python bin/train.py config/classification/<dataset_name>/mflag.yml
To fine-tune M-FLAG for segmentation, run this command:
python mmsegmentation/tools/train.py config/benchmark/<dataset_name>/mflag.yml
To fine-tune M-FLAG for report generation, run this command:
python bin/train.py config/report_generation/<dataset_name>/mflag.yml
To evaluate fine-tuned M-FLAG models, run:
# For classification and report generation
python bin/test.py config/<task_name>/<dataset_name>/mflag.yml validator.splits=[test] ckpt_dir=<path_to_checkpoint>
# For segmentation
python mmsegmentation/tools/my_test.py mmsegmentation/config/<dataset_name>/mflag.yml <path_to_checkpoint>
@inproceedings{huang2021M-FLAG,
title={M-FLAG: Medical Vision-Language Pre-training with Frozen Language Models and Latent Space Geometry Optimization},
author={Liu, Che and Cheng, Sibo and Chen, Chen and Qiao, Mengyun and Zhang, Weitong and Shah, Anand and Bai, Wenjia and Arcucci, Rossella},
booktitle={Proceedings of MICCAI},
pages={637--647},
year={2023},
}
@inproceedings{zhou2024benchx,
title={BenchX: A Unified Benchmark Framework for Medical Vision-Language Pretraining on Chest X-Rays},
author={Yang Zhou, Tan Li Hui Faith, Yanyu Xu, Sicong Leng, Xinxing Xu, Yong Liu, Rick Siow Mong Goh},
booktitle={Proceedings of NeurIPS},
year={2024}
}