Pytorch API to work with CLIP models.
Project description
pytorch_clip: Pytorch API to work with CLIP models.
Install package
pip install pytorch_clip
Install the latest version
pip install --upgrade git+https://github.com/bes-dev/pytorch_clip.git
Features
- Supports original CLIP models by OpenAI and ruCLIP model by SberAI.
Usage
Simple code
import torch
from pytorch_clip import get_models_list, get_clip_model
print(get_models_list())
model, text_processor, image_processor = get_clip_model()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file pytorch_clip-2021.12.21.0-py3-none-any.whl
.
File metadata
- Download URL: pytorch_clip-2021.12.21.0-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bb0d8c83238bac635ed335e5100fd2d845e3260282bdf160c6f64efb137d75e |
|
MD5 | 6583526fac1357ede2381eb2b1dd605f |
|
BLAKE2b-256 | dc6cdfc5b369d9c9071da735b60d03a6f908a551280bce9a39c588514708f595 |