If you have an AMD GPU and encounter the following error message after attempting to install Stable Diffusion WebUI using DirectML 1.7.0 by running Webui-user.bat for the first time, with the last line indicating:
"RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check"
Here is the solution, involving modifications in two places:
- Locate the "requirements_versions" file, open it, and add the following command at the end before saving:
torch-directml
- Open Webui-user.bat, find the line with set COMMANDLINE_ARGS, and add the following command before saving: