tract in your browser

Neural networks running in your browser, on your GPU through WebGPU or on your CPU, with tract, compiled to WebAssembly. Your microphone, camera, pictures and prompts never leave your machine.

Stable Diffusion 1.5

Text to image, 512 × 512, with a prompt, a negative prompt and a choice of sampler.

Downloads 2.1 GB of fp16 weights from Hugging Face on the first visit. Needs WebGPU with shader-f16.

Bonsai Image

Text to image, up to 768 × 768, in four steps, with PrismML's ternary 4B Flux.2 Klein model.

Downloads 4.4 GB of packed weights from Hugging Face on the first visit. Needs WebGPU with shader-f16.

Background replacement

Person segmentation on your camera, with the background blurred or replaced by a colour, live.

Uses your camera. Downloads a 0.5 MB or 26 MB model from Hugging Face. Needs WebGPU.

Speech recognition

Streaming transcription of your microphone with NVIDIA's Nemotron 3.5 ASR, in dozens of languages.

Uses your microphone. Downloads 2.6 GB of weights from Hugging Face on the first visit. Needs WebGPU.

Hey Snips

Wake word detection on your microphone, streaming, from raw samples to a score every 10 ms.

Uses your microphone. Runs on the CPU in WebAssembly, no WebGPU needed. 1.2 MB model.

Read a picture

Find the text in a sample page, a picture you choose, or a camera snapshot.

PP-OCRv6 Tiny, Small, or Medium from Hugging Face. Runs on tract, on the CPU or on WebGPU.

Speak some text

Read text aloud in one of 31 languages, with ten voices, as fast as your GPU allows.

Supertone's Supertonic 3 or 2 from Hugging Face, the ONNX graphs as published. Runs on tract, on WebGPU or the CPU. 263 to 398 MB.

Bezier Piano

Play glowing strings over your camera picture: a fingertip that crosses one plays a note.

Uses your camera. MediaPipe's hand models from Google, 7.8 MB, run as published. Runs on tract, on WebGPU or the CPU.

Source code of the demos, in tract's examples.