The Pytorch implementation of Medical Knowledge Intervention Prompt Tuning for Medical Image Classification.
conda create -n cilmp python==3.8
conda activate cilmp
git clone https://github.com/usr922/cilmp.git
cd cilmp
pip install -r requirements.txt
bash scripts/train.sh ${DATASET}bash scripts/eval.sh ${DATASET}We sincerely thank Prof. Kaiyang Zhou for the great work CoOp, Dassl.pytorch and Dr. Muhammad Uzair Khattak for the great work PromptSRC. We borrow codes heavily from their repositories.