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 Distribution
Built Distribution
Close
Hashes for pytorch_clip-2021.12.19.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41535db8857bc7867add2601a3e3d411587ec8bfa118af3901756c8f77abeeeb |
|
MD5 | 133ed47cd4fb9bc73bb2d9f232ef5817 |
|
BLAKE2b-256 | 7380ba2bdb9cb0d2676e19130cc74d4d8b4a929f4989bcca21868b4959749bd0 |
Close
Hashes for pytorch_clip-2021.12.19.0-py3.8.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cf557ff57cccad61e8433f8dd89dc54b443e10659551851cdda8909080bb665 |
|
MD5 | e5070c6ac381be71dae6f6e117560a20 |
|
BLAKE2b-256 | f218602d7720c542b4df962d0c671bdab9ef491184e9ef53b47fe14cbc075930 |