machineuser
Sync widgets demo
6c7ce80
|
raw
history blame
1.62 kB

Use Cases

Video classification models can be used to categorize what a video is all about.

Activity Recognition

Video classification models are used to perform activity recognition which is useful for fitness applications. Activity recognition is also helpful for vision-impaired individuals especially when they're commuting.

Video Search

Models trained in video classification can improve user experience by organizing and categorizing video galleries on the phone or in the cloud, on multiple keywords or tags.

Inference

Below you can find code for inferring with a pre-trained video classification model.

from transformers import pipeline

pipe = pipeline(task = "video-classification", model="nateraw/videomae-base-finetuned-ucf101-subset")
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/basketball.avi?download=true")

#[{'score': 0.90, 'label': 'BasketballDunk'},
# {'score': 0.02, 'label': 'BalanceBeam'},
# ... ]

Useful Resources

Creating your own video classifier in minutes