Views
No views yet
AutoModel, AutoTokenizer and AutoVideoProcessor from HF Transformers.| Kinetics-400 top-1 accuracy | UCF-101 top-1 accuracy | HMDB51 top-1 accuracy | MSR-VTT video/text retrieval recall@1 | MSVD video/text retrieval recall@1 |
|---|---|---|---|---|
| 64.3 | 79.9 | 61.0 | 44.6 / 43.7 | 54.5 / 84.6 |
1import torch
2import torch.nn.functional as F
3from transformers import AutoModel, AutoTokenizer, AutoVideoProcessor
4
5model = AutoModel.from_pretrained("laion/ViCLIP-L-14-BVD-V-50M-s50M-b32K-WiSE-FT", trust_remote_code=True)
6tokenizer = AutoTokenizer.from_pretrained("laion/ViCLIP-L-14-BVD-V-50M-s50M-b32K-WiSE-FT", trust_remote_code=True)
7video_processor = AutoVideoProcessor.from_pretrained("laion/ViCLIP-L-14-BVD-V-50M-s50M-b32K-WiSE-FT", trust_remote_code=True)
8
9video = video_processor("path/to/video.mp4")
10
11labels = ["a person playing basketball", "a person swimming", "a person running"]
12text_tokens = tokenizer(labels, padding="max_length", truncation=True, max_length=77, return_tensors="pt")
13
14with torch.no_grad():
15 v_feat = model.get_video_features(video["pixel_values_videos"])
16 t_feat = model.get_text_features(text_tokens["input_ids"])
17
18logits = 100.0 * v_feat @ t_feat.t()
19probs = logits.softmax(dim=-1)
20print("Label probs:", probs)1@misc{laionbvd2026,
2 title={LAION-BVD: A 10-Million-Hour Open Video Dataset for Multimodal Pre-training},
3 author={Andreas Hochlehnert and Marianna Nezhurina and Mehdi Cherti and Andrej Radonjic and Thaddäus Wiedemer and Christoph Schuhmann and Romain Beaumont and Wieland Brendel and Bernhard Schölkopf and A. Sophia Koepke and Jenia Jitsev and Matthias Bethge},
4 year={2026},
5 eprint={2608.24845},
6 archivePrefix={arXiv},
7 primaryClass={cs.CV},
8 url={https://arxiv.org/abs/2608.24845},
9}