On-device image classification
Upload an image or use the camera and let the real SqueezeNet 1.1 model classify it inside your browser, with the top five classes, their scores and the actual inference time on your device.
Preparing the experiment…
Model used
| Name | SqueezeNet 1.1 (image classification) |
|---|---|
| Task | Image classification into 1000 classes (ImageNet-1k) |
| Download size | 4.7 MB |
| Licence | Apache-2.0 (ONNX Model Zoo) |
| Verified on | 2026-11-26 |
The model is not downloaded until you press the run button in the experiment.
How it works
- Press “Load model” after reading its size; nothing downloads before that.
- Choose an image (never uploaded to any server) or start the camera with your own click.
- The image is resized to 224×224 and normalised with ImageNet mean and std, then the network runs through ONNX Runtime Web in a worker.
- The outputs become probabilities (softmax) and the top five classes are shown.
Limits and caveats
- The model is small and less accurate than modern models; errors are expected, especially for images that do not resemble ImageNet classes.
- There are 1000 English-only classes and they do not cover everything you may photograph.
- The displayed latency is your own device right now and does not represent any other hardware.
- This is an educational experiment, not a diagnostic or decision tool.
Privacy: all processing is inside your browser. Images and audio are not uploaded to the server.
Modules that explain the idea
Image and audio processing in the experiments runs inside your browser. Your images and audio are never uploaded and conversations are not stored. Privacy
