Instructions to use google/vivit-b-16x2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/vivit-b-16x2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("video-classification", model="google/vivit-b-16x2")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForVideoClassification processor = AutoImageProcessor.from_pretrained("google/vivit-b-16x2") model = AutoModelForVideoClassification.from_pretrained("google/vivit-b-16x2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Adding `safetensors` variant of this model
#2 opened almost 2 years ago
by
SFconvertbot