vision / image-classification
Image classification
Labels a whole image with one or more classes. The mobile-grade backbones here are the oldest reliable browser AI workload: a few megabytes, well-tested WebGL and WebAssembly paths, and frame rates high enough to run on a video element.
4 entries
Catalog comparison
Entries include models, tools and applications. An upstream example documents a browser integration, not a test on your device. Missing versions, measurements and licenses remain unverified. Historical estimates are not benchmark results.
| Entry | Entry type | Framework | Resources | License | Browser evidence | Links |
|---|---|---|---|---|---|---|
Classifies browser image, canvas or video elements. Model version and width multiplier affect its output and resource requirements. Tasks: Image classification | Model | TensorFlow.js | Download size: Not verified | Code license: Apache-2.0 Weight license: Not verified | Upstream browser example Reference ↗Source review is not a browser execution test. | |
Sources and comparison details
Deployment variants
Performance and compatibility measurementsCompare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size. Not measured
| ||||||
Vision Transformer trained on ImageNet-1k; the standard accuracy baseline for image classification. Tasks: Image classification | Model | Transformers.js | q4f16: 48.9 MiB q8: 84.2 MiB fp16: 165.4 MiB fp32: 330.5 MiB | Code license: Apache-2.0 Weight license: Apache-2.0 | Upstream browser example Reference ↗Source review is not a browser execution test. | |
Sources and comparison details
Deployment variants
Performance and compatibility measurementsCompare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size. Not measured
| ||||||
Convolutional classification baseline; widely used as the reference point other models are compared against. Tasks: Image classification | Model | Transformers.js | q8: 24.6 MiB fp16: 48.7 MiB q4f16: 48.8 MiB fp32: 97.4 MiB | Code license: Apache-2.0 Weight license: Apache-2.0 | Upstream browser example Reference ↗Source review is not a browser execution test. | |
Sources and comparison details
Deployment variants
Performance and compatibility measurementsCompare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size. Not measured
| ||||||
Hybrid convolution / transformer classifier designed for mobile-class compute budgets. Tasks: Image classification | Model | Transformers.js | q8: 6.0 MiB q4f16: 7.0 MiB fp16: 11.0 MiB fp32: 21.6 MiB | Code license: Apache-2.0 Weight license: Other | Upstream browser example Reference ↗Source review is not a browser execution test. | |
Sources and comparison details
Deployment variants
Performance and compatibility measurementsCompare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size. Not measured
| ||||||
Application workflows
About Image classification
Image classification under Vision holds 4 catalogue entries: 4 models.
4 of them carry browser evidence, all from upstream browser examples.
The usual pattern for this task is to load quantised weights (ONNX, TFLite or a MediaPipe asset bundle) into the page, hand them to Transformers.js and TensorFlow.js, and accelerate with WebGPU or WebAssembly. What decides the experience is weight size, peak memory and decoding path — not the parameter count.
To see the output first, open the interactive demo for this task: switch models, edit the sample input and compare results on one page. Every demo states whether it is running real weights or a deterministic simulator.
At a glance
- Entries
- 4 in total
- Main runtime
- Transformers.js and TensorFlow.js
- Smallest known weights
- 6.0 MiB
- Browser evidence
- 4 of 4 verified
Image classification: common questions
- Can Image classification run directly in a browser?
- Yes. 4 entries already carry browser evidence (tested here or an upstream example), so the approach works; whether it runs smoothly on your device depends on weight size, browser version and whether WebGPU is enabled.
- How large is the model for Image classification?
- We verified the weight file sizes of 3 entries in this task; the smallest tier is 6.0 MiB. Quantisation differs between entries, so the real download depends on the precision you pick. Files are reused from the HTTP cache or Cache Storage after the first download.
- Which devices suit Image classification?
- Any modern browser with WebAssembly is a starting point, and WebGPU usually makes it faster. Phones are tighter on memory, so run the demo once on the target device before deciding.
- Does running a model here upload my data?
- The demos on this site infer inside the tab, so inputs never reach a server. Weights and runtimes are fetched from a CDN on first use and then served from the browser cache.