sketch recognition · vision · WASM · ~21 MB
The built image classifiers read photos. This one reads doodles. Draw something in the box and a MobileViT — trained on Google's QuickDraw — guesses what it is, live, from 345 categories. It's the "Quick, Draw!" game running entirely on your device: no photo, no upload, just your sketch. Try a cat, a house, a star, a ladder…
| Model | quickdraw-mobilevit-small — MobileViT fine-tuned on QuickDraw |
|---|---|
| Task | image-classification over sketches — run via raw ONNX Runtime Web (see note below) |
| Runtime | onnxruntime-web 1.21 (the pipeline can't feed its 1-channel grayscale stem) |
| Input | [1, 1, 28, 28] float32 — a grayscale sketch, white strokes on black, tight-cropped & centred |
| Output | a probability over 345 QuickDraw categories |
| Quantization | fp32 ONNX — runs on the plain WASM backend, no WebGPU needed |
| Download | ~21 MB, cached after first load (auto-inits on return) |
| License | MIT (base apple/mobilevit-small) |
| Web APIs | WebAssembly, Web Workers, Canvas + Pointer Events — all Baseline widely available |
Draw something to start…
QuickDraw sketches are grayscale — one channel — so the model's first convolution expects a single-channel image, which the transformers.js image pipeline (built for 3-channel photos) can't feed. We run the ONNX directly: tight-crop your drawing to its ink, centre it, shrink it to 28×28, and pass white-on-black pixels straight to the model. It classifies as you draw, and every stroke stays on your device.
Inspect the exact 28×28 grayscale tensor MobileViT sees, tune crop margin and brush weight, and watch Top-5 confidence shift stroke by stroke.
Sketch the shape you want instead of guessing its name — get instant copyable Unicode emoji and clean 24×24 inline SVG icons on-device.
Play a 6-round local "Quick, Draw!" game against MobileViT with a live guessing ticker, Top-1/Top-3 mode, streak tracker, and final doodle gallery.
Draw a hero, magic object, and setting — QuickDraw MobileViT (~21 MB) recognizes all three and hands them to llama2.c-stories15M (~15 MB) to stream a live bedtime tale.