This is the finetune of InstructBLIP paper.
git clone https://github.com/ZhanKunLiAuto/LAVIS-AD
cd LAVIS-AD
pip install -e .
InstructBLIP uses frozen 13B models. Please first follow the instructions to prepare Vicuna v1.1 weights.
Then modify the model.llm_model
in the lavis/configs/models/blip2/blip2_instruct_vicuna13b_autonomous_driving.yaml
to the folder that contains Vicuna weights.
python train.py --cfg-path lavis/configs/models/blip2/blip2_instruct_vicuna13b_autonomous_driving.yaml
-
Modify the
model.llm_model
in thelavis/configs/models/blip2/blip2_instruct_vicuna13b.yaml
to the folder that contains Vicuna weights. -
Modify the
model.pretrained
in thelavis/configs/models/blip2/blip2_instruct_vicuna13b.yaml
to the checkpoint. -
Run Gradio Demo locally with
python run_demo.py