Joint Video-Text embeddings for search, classification and more.
AskVideos-VideoCLIP
- AskVideos-VideoCLIP is a language-grounded video embedding model.
- This model produces a single context-aware embedding for each video clip.
- 16 frames are sampled from each video clip to generate a video embedding.
- The model is trained with contrastive and captioning loss to ground the video embeddings to text.
Pre-trained & Fine-tuned Checkpoints
| Checkpoint | Link |
|---|---|
| AskVideos-VideoCLIP-v0.1 | link |
| AskVideos-VideoCLIP-v0.2 | link |
Usage
Environment Preparation
First, install ffmpeg.
apt update
apt install ffmpeg
Then, create a conda environment:
conda create -n askvideosclip python=3.9
conda activate askvideosclip
Then, install the requiremnts:
pip3 install -U pip
pip3 install -r requirements.txt
How to Run Demo Locally
python video_clip.py
The demo is also available to run on colab.
| Model | Colab link |
|---|---|
| AskVideos-VideoCLIP-v0.1 | link |
| AskVideos-VideoCLIP-v0.2 | link |
Star History
Term of Use
AskVideos code and models are distributed under the Apache 2.0 license.
Acknowledgement
This model is inspired by the Video-LLaMA Video-Qformer model.
Citation
bibtex
@misc{askvideos2024videoclip,
title = {AskVideos-VideoCLIP: Language-grounded video embeddings},
author = {AskVideos},
year = {2024},
howpublished = {GitHub},
url = {https://github.com/AskYoutubeAI/AskVideos-VideoCLIP}
}
Metadata
Release files for video-clip 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| video_clip-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / video_clip-0.2.0-py3-none-any.whl
| Download URL | video_clip-0.2.0-py3-none-any.whl |
|---|---|
| Size | 129.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
270bf520f9596763f70785eeff85a588a94a16ef4bed01a90b941d55e4aa0e0e
|
|
BLAKE2b-256 checksum How to use checksums |
fed836e5398aad4fdb4891854e71a9c51d59b9b7e50430b068e6c75e36c18598
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|