Open 303Aki303 opened 8 months ago
I'm going through the AMD on Windows experience right now too :(
try adding the "--skip-torch-cuda-test" to the COMMANDLINE_ARGS line you added -directml to?
from there, you can try to follow the instructions scattered around this thread, because you'll probably still be getting errors: https://github.com/lllyasviel/stable-diffusion-webui-forge/issues/58 - it's quite a bit of work though, so here's tl;dr that worked for me:
comment out all the @torch.inference_mode() (add # before them) on: \ldm_patched\modules\utils.py - line 407 \modules_forge\forge_loader.py - line 236, line 242
change "with torch.inference_mode():" for "with torch.no_grad():" on: \modules\processing.py - line 817
then random number generation source from GPU to CPU in the webui settings, and try restarting your computer - that should get things working for you, hopefully!
comment out all the @torch.inference_mode() (add # before them) on: \ldm_patched\modules\utils.py - line 407 \modules_forge\forge_loader.py - line 236, line 242 change "with torch.inference_mode():" for "with torch.no_grad():" on: \modules\processing.py - line 817
then random number generation source from GPU to CPU in the webui settings, and try restarting your computer - that should get things working for you, hopefully!
ok, now it kinda works. But there is new problem, it eats ALL vram (and freezes because of that) even when generating small 512x512 image. Something is not right. After so much time there's no proper tutorial how to use forge on AMD? is that right?
I also get this error and it's an Nvidia GPU.
Checklist
What happened?
I downloaded and installed everything, but it keeps telling me "Torch is not able to use GPU". I'm on AMD windows so I tried --directml and then --use-directml but still no luck, how can I fix this?
Steps to reproduce the problem
open the webui-user.bat
What should have happened?
it should've opened
What browsers do you use to access the UI ?
Mozilla Firefox, Google Chrome, Brave, Microsoft Edge
Sysinfo
can't open the webui
Console logs
Additional information
thanks in advance foe any helps and tips