realzdlegend's picture
Duplicate from TencentARC/Caption-Anything
3b8cdb2
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
```