TahaKoleilat/BiomedCoOp

Model

1

stars

38

commits

1

linked in READMEs

Mar 20, 2025

updated

biology
medical
tensorboard
Browse cluster: Biomedical Data and Multimodal Learning

README

Model Checkpoints and Logs

NameFew-ShotBase-to-Novel
BiomedCoOplinklink

Reproducing Results

Run the following scripts to use the checkpoints and get testing results. Note that the following scripts automatically download the desired model weights:

(1) Few-shot Evaluation
CUDA_VISIBLE_DEVICES=<GPU number> bash scripts/biomedcoop/eval_fewshot.sh <data directory> <dataset> <nb of shots>
# Example on BTMRI using 16 shots and the BiomedCLIP model on GPU 0
CUDA_VISIBLE_DEVICES=0 bash scripts/biomedcoop/eval_fewshot.sh data btmri 16
(2) Base-to-Novel Generalization
CUDA_VISIBLE_DEVICES=<GPU number> bash scripts/biomedcoop/eval_base2new.sh <data directory> <dataset> <nb of shots>
# Example on BTMRI using 16 shots and the BiomedCLIP model on GPU 0
CUDA_VISIBLE_DEVICES=0 bash scripts/biomedcoop/eval_base2new.sh data btmri 16

Citation

If you use our work, please consider citing:

@article{koleilat2024biomedcoop,
        title={BiomedCoOp: Learning to Prompt for Biomedical Vision-Language Models},
        author={Koleilat, Taha and Asgariandehkordi, Hojat and Rivaz, Hassan and Xiao, Yiming},
        journal={arXiv preprint arXiv:2411.15232},
        year={2024}
}

Contributors

TahaKoleilat

38 commits

TahaKoleilat/BiomedCoOp

Model

1

stars

38

commits

1

linked in READMEs

Mar 20, 2025

updated

biology
medical
tensorboard
Browse cluster: Biomedical Data and Multimodal Learning

README

Model Checkpoints and Logs

NameFew-ShotBase-to-Novel
BiomedCoOplinklink

Reproducing Results

Run the following scripts to use the checkpoints and get testing results. Note that the following scripts automatically download the desired model weights:

(1) Few-shot Evaluation
CUDA_VISIBLE_DEVICES=<GPU number> bash scripts/biomedcoop/eval_fewshot.sh <data directory> <dataset> <nb of shots>
# Example on BTMRI using 16 shots and the BiomedCLIP model on GPU 0
CUDA_VISIBLE_DEVICES=0 bash scripts/biomedcoop/eval_fewshot.sh data btmri 16
(2) Base-to-Novel Generalization
CUDA_VISIBLE_DEVICES=<GPU number> bash scripts/biomedcoop/eval_base2new.sh <data directory> <dataset> <nb of shots>
# Example on BTMRI using 16 shots and the BiomedCLIP model on GPU 0
CUDA_VISIBLE_DEVICES=0 bash scripts/biomedcoop/eval_base2new.sh data btmri 16

Citation

If you use our work, please consider citing:

@article{koleilat2024biomedcoop,
        title={BiomedCoOp: Learning to Prompt for Biomedical Vision-Language Models},
        author={Koleilat, Taha and Asgariandehkordi, Hojat and Rivaz, Hassan and Xiao, Yiming},
        journal={arXiv preprint arXiv:2411.15232},
        year={2024}
}

Contributors

TahaKoleilat

38 commits