realzdlegend's picture
Duplicate from TencentARC/Caption-Anything
3b8cdb2

A newer version of the Gradio SDK is available: 5.6.0

Upgrade

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