weijiawu's picture
Duplicate from TencentARC/Caption-Anything
0ab9a32
|
raw
history blame
No virus
414 Bytes

To run BLIP/BLIP2, you should install transformers from source!

!pip install git+https://github.com/huggingface/transformers.git

To run filter module, you should install CLIP repo as a Python package as follow:

!pip install ftfy regex tqdm
!pip install git+https://github.com/openai/CLIP.git

To accelerate BLIP2 with int8, you should install accelerate

!pip install accelerate bitsandbytes