μ-Tuning - Optimizing Your Foundation Model for Medical Images: A Comprehensive Analysis of Fine-Tuning Strategies
PAPER IS AVAILABLE HERE
Overview of the pipeline
- Clone this repository by
git clone https://github.com/tsly123/mutuning.git
- Install an Anaconda distribution of Python. Note you might need to use an anaconda prompt if you did not add anaconda to the path.
- Open an anaconda prompt / command prompt which has
conda
for python 3 in the path - Go to downloaded
assets
folder inside the downloaded folder at step 1 and runconda env create -f mutuning_env.yml
- To activate this new environment, run
conda activate mutuning
- 2D data were download at the source of each dataset
- Download 3D data athttps://medmnist.com/
Go to the folder mu_2D
and run:
bash scripts/mvlpt/main_single_coopdata_cut.sh $trainer $config $num_token $shots $seed $lr $eval_bool $dataset $save_dir
Go to the folder mu_3D
and run:
bash scripts/mvlpt/main_single_coopdata_cut.sh $trainer $config $num_token $shots $seed $lr $eval_bool $dataset $save_dir
$trainer
- such as VPT, bias, SSF, ... are defined in file scripts\mvlpt\main_single_coopdata_cut.sh
and trainers
- Upload running code
- Upload clean code
- Update fine-tuning instruction