r/StableDiffusion • u/Unreal_777 • Oct 12 '22
Question Image2Image with AMD hardware?
Hello
Has anyone found a way to use other SD features such as IMG2IMG with a SD version that relies on AMD hardware?
4
Upvotes
3
u/[deleted] Oct 13 '22
If you’re ok using Linux, ROCm will let you use any gpu compute software with an AMD card, pretty much. I have been using automatic1111 for a while and I generate a 512x512 img2img in about 4 seconds. $650 6800xt card. Not all cards are supported, so be careful which one you get.
Currently, its not really possible to use an AMD card efficiently on windows. The closest I got was utilizing 40% of my card and taking about 20 seconds to make a 512x512 image. And it was a headache! Stick with Linux, you just run a script and you’re pretty much already going.
2
u/Crafty-Process-5727 Oct 13 '22 edited Oct 13 '22
I found a tensorflow port by divamgupta a while back and got it to run on win10+AMD using
pip install tensorflow-directml-pluginwith minimal effort. It's barebones, and needs (provided) converted weights, but it works, getting ~1.44it/s on RX6600.No luck for pytorch-directml yet, since the current directml backend is stuck on 1.8 and hasn't implemented at least one necessary op. Hopefully that will change soon, based on pytorch/pull/85040.