This project brings stable diffusion models to web browsers. Everything runs inside the browser with no server support. Please check out our GitHub repo to see how we did it. There is also a demo which you can try out.
> As WebGPU does not support FP16 at this moment, the memory consumption of running the demo is about 7GB. For Apple silicon Mac with only 8GB of unified memory, it may take longer (a few minutes) to generate an image. This demo may also work for Mac with AMD GPU.
Ouch. It will be interesting what this number will look like in 2-3 years though.
I'm looking forward to an OpenAI quality embedding that I can use locally. I think eliminating the latency/cost from calling their API will allow for some novel UX patterns.
This is an AMAZING work! Just type in one line description and click, I get a photo by stable diffusion on my macbook in minutes. And it never needs any setup, just having fun. :)
This actually works on my non-M1/M2 macbook with AMD GPUs pretty smoothly. It's a bit slow for now (~70sec), but I expect this to be faster with fp16. Any roadmap to support fp16 on WebGPUs?
19 comments
[ 4.2 ms ] story [ 82.0 ms ] threadOuch. It will be interesting what this number will look like in 2-3 years though.
It can generate any image I want within 2mins:)
One thing I am curious, how's the performance of WebGPU approach compared to the local server approach?
Does it also work for cuda device? Is there any plan to support other models soon?