r/StableDiffusion • u/OfficialEquilibrium Unstable Staff • Nov 17 '22
Resource | Update Easy-to-use local install of Stable Diffusion released
1.0k
Upvotes
r/StableDiffusion • u/OfficialEquilibrium Unstable Staff • Nov 17 '22
View all comments
Show parent comment
5
u/MCRusher Nov 17 '22
yup, I did a "from scratch commandline install", and I've got an amd gpu so I've gotta use diffusers OnnxStableDiffusionPipeline, which is bugged (completely broken) in the latest release, but fixed if you download the main branch from github, and the onnxruntime-directml version.
The documentation for ONNX is vpretty lacking, I ended up having to constantly dig through the diffusers library source code to figure things out.
It took about like 8 hours altogether of trial and error, taking examples from code samples, and searching apis to get everything mostly working.
And I also had to modify the diffusers source code to silence warnings, one of them was about CPUExecutionProvider not being in the providers list, when you can only pass one provider in __init__() so wtf am I supposed to do about that other than modify the source code to append CPUExecutionProvider to the providers list for OnnxRuntimeModel?
It works for DmlExecutionProvider and CPUExecutionProvider now (has to toggle mem pattern and parallelism off for Dml)
But for some reason if I use parallel execution my computer freezes for like a minute and then I get an absurdly long 1hr+ generation time for 1 512x512 image that I've never waited out completely.
It also takes like 3 minutes to generate a 512x512 image, Dml or CPU are about the same time, but Dml makes the computer unusable while generating images by hogging all the GPU.
I'm gonna be seeing the source code in my dreams.