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
5
u/Awakenlee Oct 17 '22
If you're willing to use Linux the Automatic1111 distribution works. I had very little idea what I was doing, but I got Ubuntu and the webui working in a couple hours.
I don't know how well it works. Mine generates an image in about 8 seconds on my 6900xt, which I think is well short of 3090s and even lesser cards, however it's nearly twice as fast as the best I got on Google Colab. Maybe there's optimization I can figure out eventually, but I was just happy I got it working after not touching Linux in fifteen years.
3
u/Sifright1 Oct 18 '22
Managed to find a guide that sets up a GUI for the prompt as opposed to having to modify a py file on every image generation.
No where near as featured as things like automatic1111, but here you go.
https://github.com/quickwick/stable-diffusion-win-amd-ui
Lets you change the seed either randomly at a button push or specifically can take positive prompt and lets you change between a couple of working schedulers. No way to choose between variant models in this but it's still a step up from modifying a py file saving it and then running another command every time.
5
u/xXNemo92Xx Oct 17 '22
I think the WebUI projects must be rewritten with AMD GPU in mind, because they need NV cards to work with.
1
u/suplexxer Jan 22 '23 edited Jan 22 '23
If you are looking for a stable diffusion set up with windows/amd rig and that also has a webui then i know a guide that will work since i got it to work my self.
check out this guide https://www.youtube.com/watch?v=Pyze0seDHzA
some pointers:
1: you dont need to sign up to any membership pages, it'll work regardless
2: use the specified python version in the guide namely 3.10 (i think he says 3.10.6 and latest is 3.10.9 but thats fine)
3: you need to edit the webui-user.bat file after all is installed. there is a "commandline_args". set it to: "set COMMANDLINE_ARGS=--skip-torch-cuda-test --precision full --no-half" without the " ".
4: set the python path where the app lies inkluding the extension. like "set PYTHON=C:\Users\Jimmy\AppData\Local\Programs\Python\Python310\python.exe"
with all this done just start up the webui-user.bat file. it'll chug for a while and download some stuff to complete the installation. it only does this the first time you run it. in the end of the promt you will get a lokal host adress http://127.0.0.1:7860/ copy paste that in a webpage and you got your webui there.
bon apetit
edit: for this to work you need a gpu with minimum 6gb vram, and you need roughly 10gb disk space.