r/StableDiffusion • u/Sifright1 • Oct 17 '22
Stable diffusion with AMD Gpu
So I've managed to get stable diffusion working with an AMD gpu on windows but I was wondering if any one had managed to do the same with any of the webui variants out there and if so did they have a guide that could be followed?
9
Upvotes
View all comments
Show parent comment
2
u/suplexxer Jan 26 '23
yea i made the post before realizing that i was using the cpu my self aswell. i had no referens for how long it should take to generate images so it took me awhile to figure that out.
But i come bearing a solution.
NodeAI/Shark over at Github has a solution to generate text2img for amd gpus (with windows) that work. i verified that and now run about 4.5 iterations a second, meaning a 100 step image takes me about 24 seconds to generate.
step 1:
Download and install Python 3.10
Download and install Git
Download and install The AMD Software: Adrenalin Edition 22.11.1 for MLIR/IREE
make sure to uninstall previous versions of adrenaline
step 2:
Download NodeAI StableDiffusion install file
put it where you want, it doesn't matter. as long as you have more than 10gb free space on that drive.
run the .exe file and you should get a local:8080 window with a webui for NodeAI
The engine will download and compile the necesary files when you generate the first image. its gonna take a while depending on your connection speed. its gonna download about 3gb for each model.
But it will only download the models files when you start to generate with a specific model. it only does this once for every model. about 10gb worth of data in total.
Go and give the NodeAI/shark a look at Github. For further reading check out their own guide.
https://github.com/nod-ai/SHARK/blob/main/shark/examples/shark_inference/stable_diffusion/stable_diffusion_amd.md
have fun