← All models

sketch recognition · vision · WASM · ~21 MB

Sketch recognition (QuickDraw)

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…

At a glance

Modelquickdraw-mobilevit-small — MobileViT fine-tuned on QuickDraw
Taskimage-classification over sketches — run via raw ONNX Runtime Web (see note below)
Runtimeonnxruntime-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
Outputa probability over 345 QuickDraw categories
Quantizationfp32 ONNX — runs on the plain WASM backend, no WebGPU needed
Download~21 MB, cached after first load (auto-inits on return)
LicenseMIT (base apple/mobilevit-small)
Web APIsWebAssembly, Web Workers, Canvas + Pointer Events — all Baseline widely available

Draw something

draw a cat · house · star · tree · ladder · fish…

Draw something to start…

Why raw ONNX Runtime Web?

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.

Use-case ladder

Basics · 28×28 Retina & Stroke Lab

Inspect the exact 28×28 grayscale tensor MobileViT sees, tune crop margin and brush weight, and watch Top-5 confidence shift stroke by stroke.

Practical · Doodle-to-Emoji & SVG Icon Finder

Sketch the shape you want instead of guessing its name — get instant copyable Unicode emoji and clean 24×24 inline SVG icons on-device.

Wild · 20-Second Speed-Sketch Arena

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.

Multi-model · 3-Panel Doodle Storyteller

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.