LanguageBind: multimodal (video/audio/image/depth/thermal) embedding model aligned to text via language-based semantic alignment. Packaged for pip-installability with compatibility patches for modern transformers/torchvision/torchaudio.
Project description
languagebind
LanguageBind (ICLR 2024) packaged as a pip-installable library with compatibility patches for modern transformers, torchvision, and torchaudio.
The original LanguageBind repo has no pyproject.toml, so it cannot be installed via pip. This package provides that, plus inline patches for five breaking changes introduced in newer dependency versions.
Installation
pip install languagebind
For video support:
pip install "languagebind[video]"
For audio support:
pip install "languagebind[audio]"
Usage
from languagebind import (
LanguageBindVideo, LanguageBindVideoProcessor, LanguageBindVideoTokenizer,
LanguageBindAudio, LanguageBindAudioProcessor, LanguageBindAudioTokenizer,
LanguageBindImage, LanguageBindImageProcessor, LanguageBindImageTokenizer,
)
Compatibility patches
_expand_mask/clip_loss: removed fromtransformers4.40+, re-implemented inlanguagebind._compattorchaudio.set_audio_backend(): deprecated, guarded withtry/excepttorchvision.transforms._transforms_video: private API fallback to publictorchvision.transformsequivalentsCLIPTokenizer.__init__positional args: changed to keyword args fortransformers4.40+ compatibility
License
MIT — same as the original LanguageBind.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file languagebind-0.1.0.tar.gz.
File metadata
- Download URL: languagebind-0.1.0.tar.gz
- Upload date:
- Size: 67.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ac8b7e2b76075b7b025d1be3bdf5ba651d650b1c3960583bf8afef5458ee66b
|
|
| MD5 |
cede76f2778cc54b3dbe7a9a9f4813e9
|
|
| BLAKE2b-256 |
33bf7fed0a405cfebe4ff85392b3f5ae79047088335920ad1025ca64e4554fc3
|
File details
Details for the file languagebind-0.1.0-py3-none-any.whl.
File metadata
- Download URL: languagebind-0.1.0-py3-none-any.whl
- Upload date:
- Size: 79.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74c0c96cab230a59b32afda266df930cddd35c4f49c08888d561c7dd00c91d22
|
|
| MD5 |
18e9b0f708fde3a052afd80751c7ad22
|
|
| BLAKE2b-256 |
44dd8a474b5b16ac34d55ce07944ef6b24d6d2b9677420288afa0e32ff3ae9e9
|