https://github.com/bes-dev/pytorch_clip
Pytorch API to work with CLIP models.
https://github.com/bes-dev/pytorch_clip
Last synced: about 1 year ago
JSON representation
Pytorch API to work with CLIP models.
- Host: GitHub
- URL: https://github.com/bes-dev/pytorch_clip
- Owner: bes-dev
- License: apache-2.0
- Created: 2021-12-06T21:31:46.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-22T22:10:24.000Z (over 4 years ago)
- Last Synced: 2025-02-18T09:33:00.556Z (over 1 year ago)
- Language: Python
- Size: 30.3 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pytorch_clip: Pytorch API to work with CLIP models.
[](https://pepy.tech/project/pytorch_clip)
[](https://pepy.tech/project/pytorch_clip)
[](https://pepy.tech/project/pytorch_clip)
## Install package
```bash
pip install pytorch_clip
```
## Install the latest version
```bash
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
```python
import torch
from pytorch_clip import get_models_list, get_clip_model
print(get_models_list())
model, text_processor, image_processor = get_clip_model()
```