Vision-Language SAM
November 22, 2024 ยท View on GitHub
Installation
- Create a virtual environment
conda create -n medsam python=3.10 -yand activate itconda activate VLSAM - Install Pytorch 2.0
- Or install the same environment as
https://github.com/bowang-lab/MedSAM
Model Training
Data preprocessing
Download SAM checkpoint and place it at work_dir/SAM/sam_vit_b_01ec64.pth .
Training on one GPU
python train.py
Inference
python Inference_vlsam.py