← All models

action recognition · vision · WASM · ~87 MB

Human action recognition

The built image classifiers name the object in a photo. This one names the activity: given a picture of a person, it predicts what they're doing — one of 15 everyday actions (running, drinking, cycling, dancing, using a laptop, …). It's a ViT-Base fine-tuned for human action recognition. Below it reads real licensed photos; drop in your own to try it. Runs entirely on your device.

At a glance

ModelHuman-Action-Recognition-ViT-Base — a ViT-Base fine-tuned on 15 actions
Task / pipelineimage-classification (activity, not object) — via transformers.js
ActionsCalling, Clapping, Cycling, Dancing, Drinking, Eating, Fighting, Hugging, Laughing, Listening Music, Running, Sitting, Sleeping, Texting, Using Laptop
Inputa single RGB image, resized to 224×224 (ViT patch-16)
Outputa probability over the 15 actions (softmax of the logits)
Quantizationq8 (model_quantized.onnx) — runs on the plain WASM backend, no WebGPU needed
Download~87 MB, cached after first load (auto-inits on return)
LicenseApache-2.0 (fine-tune of Apache-2.0 google/vit-base-patch16-224)
Web APIsWebAssembly, Web Workers — all Baseline widely available

Run it

Licensed photos, each read by the model for the action it depicts (top action + the runners-up).

Try your own

Drop a photo of a person here, or click to choose

Object vs action

A plain image classifier trained on ImageNet would answer "person" or "bicycle". This model answers the harder question — what the person is doing — because it was fine-tuned on labelled actions rather than objects. It reads a single still, so ambiguous poses get lower-confidence guesses; the bars show exactly how sure it is. Everything runs locally.