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 Actions
pytorch_clip-2021.12.21.0-py3-none-any.whl Python 3 none any Details for pytorch_clip-2021.12.21.0-py3-none-any.whl

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

Security for pytorch-clip 2021.12.21.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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