by crowwork on 3/8/23, 6:33 PM
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.
by junrushao1994 on 3/8/23, 7:17 PM
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?
by cyx6 on 3/8/23, 7:06 PM
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. :)
by sberens on 3/8/23, 7:01 PM
> 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.
by ziheng on 3/8/23, 7:17 PM
Cool project. The main point I guess is this doesn't require user to do any environment setup. All your need to do is just run it in the browser.
One thing I am curious, how's the performance of WebGPU approach compared to the local server approach?
by sberens on 3/8/23, 7:04 PM
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.
by zxybazh on 3/8/23, 7:36 PM
Very cool demo, got it working on M1 macbook, generates each pic in 140s. Fun experience without specific setup.
Does it also work for cuda device? Is there any plan to support other models soon?
by yongwww on 3/8/23, 8:28 PM
Great project! It is able to run on my local Mac M2, the generated result looks good to me! Looking forward to seeing more models are enabled
by jinhongyii on 3/8/23, 7:14 PM
Great work! It's exciting to see such a large model running on my local web browser.
by l3jin on 3/8/23, 7:09 PM
Cooool! We can use Stable Diffusion models on chrome.
It can generate any image I want within 2mins:)
by spectrometerHBH on 3/8/23, 7:04 PM
50s per image, 16'' M1 pro 16G mbp, amazing!
by misakamisuzu on 3/8/23, 8:01 PM
Really impressive! Very smooth experience on chrome.
by wuweil on 3/9/23, 1:05 AM
super cool! it also works on my MacBook with AMD GPU. this is a great demonstration of the power of web GPU
by yecomb on 3/9/23, 11:38 AM
huggingface would save a lot of money if they know this :)