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.

Runs for real in your browser

Preparing the experiment…

Model used

NameSqueezeNet 1.1 (image classification)
TaskImage classification into 1000 classes (ImageNet-1k)
Download size4.7 MB
LicenceApache-2.0 (ONNX Model Zoo)
Verified on2026-11-26

The model is not downloaded until you press the run button in the experiment.

Full model card

How it works

  1. Press “Load model” after reading its size; nothing downloads before that.
  2. Choose an image (never uploaded to any server) or start the camera with your own click.
  3. 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.
  4. 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.

Image and audio processing in the experiments runs inside your browser. Your images and audio are never uploaded and conversations are not stored. Privacy