Skip to main content

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()

Metadata

Release files for pytorch-clip 2021.12.21.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pytorch-clip 2021.12.21.0
File Interpreter ABI Platform
pytorch_clip-2021.12.21.0-py3-none-any.whl Python 3 none any Details

Release files / pytorch_clip-2021.12.21.0-py3-none-any.whl

Download URL pytorch_clip-2021.12.21.0-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bb0d8c83238bac635ed335e5100fd2d845e3260282bdf160c6f64efb137d75e
BLAKE2b-256 checksum
How to use checksums
dc6cdfc5b369d9c9071da735b60d03a6f908a551280bce9a39c588514708f595
Upload date
Uploaded using Trusted Publishing?
What is 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
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page