#106 · Primary category: Image Generation

web-stable-diffusion

deep-learning stable-diffusion tvm web-assembly webgpu webml

Bringing stable diffusion models to web browsers. Everything runs inside the browser with no server support.

Project last updated:03/12/24

GitHub Stars

3.7K

Forks

238

Contributors

10

License

Apache-2.0

Why we included this project

The usual way to ship text-to-image is to rent a GPU server, but this project compiles stable diffusion into WebGPU and WebAssembly so the prompt, the latent diffusion step, and the image decoding all happen inside a browser tab. That saves the per-request inference bill and keeps prompts off hardware you do not control, both benefits the README calls out explicitly. It is built on the MLC/TVM toolchain, the same stack behind the sibling WebLLM project, which makes it a handy reference for anyone wondering how far client-side generative AI can go. There is working code, a live demo, and a concrete answer to whether your own workload could run without a backend.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category