image-classification Β· vision Β· WASM Β· ~10 MB
Same 1,000-way ImageNet job as the ViT and ConvNeXt demos, but with a model a fraction of their size. MobileNetV3-Small is a 2.5M-parameter neural-architecture-search design combining depthwise convolutions, squeeze-and-excitation, and hard-swish activations for on-device inference. Classify an image and read the real millisecond latency; the story here is tiny + hardware-aware.
| Model | onnx-community/mobilenetv3_small_100.lamb_in1k |
|---|---|
| Task / pipeline | image-classification |
| Architecture | MobileNetV3-Small β 2.5M params, hardware-aware NAS, inverted residuals, squeeze-and-excitation, and hard-swish |
| Labels | ImageNet-1k = 1,000 outputs |
| Quantization | fp32 (see note) β the canonical q8 export produced semantically broken labels in browser testing |
| Backend | WebAssembly (runs without WebGPU) |
| Download | ~10 MB β vs ~29 MB (ConvNeXt) and ~88 MB (ViT) |
| License | Apache-2.0 (exact upstream timm checkpoint) |
| Web APIs | WebAssembly, Web Workers, FileReader, getUserMedia (webcam demo) β all Baseline widely available |
This repo prefers 8-bit weights, but the canonical q8 conversion failed semantic sanity in the exact browser probe: a rights-cleared cats fixture produced unrelated architecture and household labels. The canonical fp32 graph classified the same image as Egyptian, tabby, and Persian cat. fp32 is therefore the honest choice and is still only ~10 MB.
Pick or drop an image and hit Classify. Watch the latency read-out β MobileNetV3 is built to be quick.

5 labels
MobileNetV3's final layer produces one raw logit per class, and a softmax turns those into probabilities. The table shows the top classes with their raw logit next to the softmax probability, plus the shape of the distribution: top-1 margin and normalised entropy.
| Class | logit | softmax |
|---|
Confidence (low β β high):
Download size and parameter counts are fixed facts. The "latency here" cell fills in with a real measured run once you classify above.
| Model | Params | Download | Outputs | Latency here |
|---|---|---|---|---|
| MobileNetV3-Small | 2.5M | ~10 MB | 1,000 | run above β |
| ConvNeXt-Tiny | ~28M | ~29 MB | 1,000 | 8Γ the params |
| ViT-B/16 | ~86M | ~88 MB | 1,000 | 25Γ the params |
MobileNetV3 is the workhorse of on-device vision: small enough to ship inside an app or a web page, fast enough to run on every frame of a camera feed, and accurate enough for a huge range of real tasks. When the constraint is battery, bandwidth, or latency β not the last point of accuracy β this is the backbone you reach for.
Classify a sample and read the top-k with a real latency read-out.
Real-time webcam tagging β the mobile use case: classify live camera frames.
Torture test: shrink and JPEG-crush an image and find where the tiny model breaks.
Fast prefilter β confirm: MobileNetV3 triages, ViT double-checks only the uncertain ones.
The convenience path is two lines with Transformers.js:
import { pipeline } from "@huggingface/transformers";
const classify = await pipeline(
"image-classification",
"onnx-community/mobilenetv3_small_100.lamb_in1k",
{ dtype: "fp32" },
); // downloads + caches ~10 MB once
const output = await classify(imageURL, { top_k: 5 });
// β [{ label: "tiger, Panthera tigris", score: 0.70 }, { label: "tiger cat", score: 0.21 }, β¦]
This page goes one level deeper for "See inside": instead of the pipeline it runs the model's
own processor then model() in a single forward pass, so it can read the
raw logits tensor (all 1,000 ImageNet classes) and compute the softmax, entropy,
and margin itself. Inference runs in a Web Worker so the page remains responsive.