OpenAI CLIP wrapper
Project description
soco-clip
How to install
pip install soco-clip
Download model
wget https://openaipublic.azureedge.net/clip/models/5806e77cd80f8b59890b7e101eabd078d9fb84e6937f9e85e4ecb61988df416f/ViT-B-16.pt
Examples
from soco_clip import CLIP
encoder = CLIP()
encoded_texts = encoder.texts(["standing","sitting"])
encoded_images = encoder.images(["a.jpg","b.jpg"])
encoded_video = encoder.video("a.mp4")
video_texts_result = encoder.video_texts("a.mp4",["standing","sitting"])
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
soco_clip-0.0.12.tar.gz
(1.4 MB
view details)
File details
Details for the file soco_clip-0.0.12.tar.gz
.
File metadata
- Download URL: soco_clip-0.0.12.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.26.0 setuptools/58.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 030e7bf515f99585e0cd806c70b21462f79c02c040320e22e6f1e3fa1cbc2700 |
|
MD5 | c2fded335523b27e0570b2a308ca9778 |
|
BLAKE2b-256 | c16089209ad5ada6cc9f85095f0a6a0edca9bab4e752cbde2caaee77b54c71b4 |