action recognition · vision · WASM · ~87 MB
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.
| Model | Human-Action-Recognition-ViT-Base — a ViT-Base fine-tuned on 15 actions |
|---|---|
| Task / pipeline | image-classification (activity, not object) — via transformers.js |
| Actions | Calling, Clapping, Cycling, Dancing, Drinking, Eating, Fighting, Hugging, Laughing, Listening Music, Running, Sitting, Sleeping, Texting, Using Laptop |
| Input | a single RGB image, resized to 224×224 (ViT patch-16) |
| Output | a probability over the 15 actions (softmax of the logits) |
| Quantization | q8 (model_quantized.onnx) — runs on the plain WASM backend, no WebGPU needed |
| Download | ~87 MB, cached after first load (auto-inits on return) |
| License | Apache-2.0 (fine-tune of Apache-2.0 google/vit-base-patch16-224) |
| Web APIs | WebAssembly, Web Workers — all Baseline widely available |
Licensed photos, each read by the model for the action it depicts (top action + the runners-up).
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.