Skip to main content

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


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

pytorch_clip-2021.12.21.0-py3-none-any.whl (19.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page