pip install pytorch_clip
pip install --upgrade git+https://github.com/bes-dev/pytorch_clip.git
- Supports original CLIP models by OpenAI and ruCLIP model by SberAI.
import torch
from pytorch_clip import get_models_list, get_clip_model
print(get_models_list())
model, text_processor, image_processor = get_clip_model()