Windows安装stable diffusion遇到“Torch is not able to use GPU”的问题

在Windows上安装stable diffusion的最后一步执行webui-user.bat时,提示了错误信息AssertionError: Torch is not able to use GPU; add –skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

具体错误代码如下:

《Windows安装stable diffusion遇到“Torch is not able to use GPU”的问题》《Windows安装stable diffusion遇到“Torch is not able to use GPU”的问题》

解决方法

参考了github上的issue,需要修改webui-user.bat文件,具体更改如下:

COMMANDLINE_ARGS=
and change it to:
COMMANDLINE_ARGS= –lowvram –precision full –no-half –skip-torch-cuda-test

保存修改之后再次运行webui-user.bat就可以了。如果这个解决方法还没解决问题,可以查看同个issue下的其它回答,或者能找到解决方法。

点赞