How to run Stable Diffusion on Windows with an AMD GPU!

preview_player
Показать описание
This guide shows you how you can run the Stable Diffusion model locally on your Windows 10 or 11 machine and an AMD Radeon GPU. It uses Onnx as a workaround since the ROCm driver variant doesn't seem to work well on Windows.

Timestamps:
00:00 intro
01:00 the actual guide
04:55 let the fun start
06:58 first result lmao
Рекомендации по теме
Комментарии
Автор

works on a Radeon 5700XT. thanks for the help!

lordzallen
Автор

Really easy to set up thank you, I'll make a UI for it soon enough. Just wondering if using the other pipelines (Img2Img, Inpainting) will require a whole regeneration of the onnx model.

Bankoru
Автор

Wow! Great vid! I actually got it running! I remember trying to run a different pytorch project prevously but gave up.

TetraTimboman
Автор

For me, step VII with the huggingface-cli login does nothing.
I typed in but nothing happens in Git bash.
Tried to run the command in cmd but it doesn't let me to write in anything when it asks the token.

Solution for those who have the same issue: open Git CMD, go to your folder diffusers\examples\inference, then enter huggingface-cli login
it will run and will wait for the code, now copy your code, and right-click on the flashing cursor in cmd to include it (ctrl+v will not work). You'll not see the code but press enter, it will accept it.

kisatom
Автор

Thanks for the tutorial on this. Looking forward to digging into this.

AnthonyTopper
Автор

Thanks for your guide, it worked well for me.

iainh
Автор

OK, I was following along with both the video and the blog but you don't identify the download location for the Onnyx package. Would you mind filling in that detail? Never mind. I already installed Stable Diffusion the standard way. I just downloaded to THAT project folder. Worked. "Your project folder" is still a little unclear. I'm also using the Conda CLI with the Powershell version as an administrator.

BasketcaseSoftware
Автор

After several failed attempts, I had it working! Working great on an rx 6600xt. BTW it is also consuming ots of ram in my machine, so if things are failing for someone, it might not be a video ram issue, but a system ram one..

kaishenboku
Автор

What folder is meant by 3:24? You just say to put it "in your folder" but don't specify which folder that is. Sorry if this is a stupid question, but I'm having a hard time figuring out this part.

DigitalJedi
Автор

I`m sure those who have the basic understanding about programming had no trouble with this guide but as a noob I couldn`t figure it out, I rly wish to use this tool also I have the very same GPU (Vega 56) at this moment, but many steps are far from clear like how and where I actually have to do such steps. Is there any chance we get a more detailed guide for ppl who have never used these things, like me?

leandrodrace
Автор

So, it took me a while but I finally got it running on my machine too. :)

- The command line didn't cut it for me, I had to use the Windows Powershell.
- I had huge troubles with the "huggingface-cli login" command which the PS just didn't want to find/execute.
- So I went to
- ...copied the "huggingface_cli.py"...
- ...and pasted it here in my SD folder:
- Then I opened the PS and navigated into the "inference" folder.
- With "python ./huggingface_cli.py" I then could run the login script
- Copy/Paste didn't work for the token, I had to input that manually.

I also managed to get some nice pictures out of it.
But since the generation is rather slow with 3 samples/second, is there a way to generate more pictures at once?

BenjaminSebek
Автор

This is my first and last AMD video card for now on. I'll try this tomorrow since most methods I was oblivious to the AMD compatibility problem.

trippybruh
Автор

worked after my 2nd try (yeah, cringe), so don't loose motivation if it doesn't work first try! great video, I just was really broken after 2 days of trying to use stable diffusion with WSL linux, thanks git gud!!!

eliahilse
Автор

'huggingface-cli' is not recognized as an internal or external command,
operable program or batch file.
What do?

crimsoncuttlefish
Автор

can i get this working on an RX6600M on my laptop? or should i not bother?

fabersoul
Автор

Thanks for the info. It is very easy to setup. I had to enable developer mode in Windows 10.

blenderlove
Автор

Thank you for the guide!
Every steps worked fine but when installation is about to complete, it gives me "Memory Allocation" error.
I tried 2 times and i get the same error.
What could be the issue?

leonpijudo
Автор

I am afraid this guide isn't detailed and nuanced enough to work for a novice. It appears to be missing prereqs and more granular details. Such as needing GIT.

Jnaathra
Автор

TypeError: getattr(): attribute name must be string

joseaugusto
Автор

This worked quite well, is there a guide on how to add the web interface to this as well? Would love that.

Thanks for the video!

demolicous