【发布时间】:2022-11-14 01:58:31
【问题描述】:
我正在尝试在我的电脑(Windows 10 x64)上本地安装稳定的扩散,但每次我尝试运行 webui-user.bat 我都会收到以下错误:
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 7ba3923d5b494b7756d0b12f33acb3716d830b9a
Traceback (most recent call last):
File "C:\Users\VPC\Desktop\stable diffusion\stable-diffusion-webui\launch.py", line 251, in <module>
prepare_enviroment()
File "C:\Users\VPC\Desktop\stable diffusion\stable-diffusion-webui\launch.py", line 172, in prepare_enviroment
run_python("import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'")
File "C:\Users\VPC\Desktop\stable diffusion\stable-diffusion-webui\launch.py", line 58, in run_python
return run(f'"{python}" -c "{code}"', desc, errdesc)
File "C:\Users\VPC\Desktop\stable diffusion\stable-diffusion-webui\launch.py", line 34, in run
raise RuntimeError(message)
RuntimeError: Error running command.
Command: "C:\Users\VPC\Desktop\stable diffusion\stable-diffusion-webui\venv\Scripts\python.exe" -c "import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'"
Error code: 1
stdout: <empty>
stderr: Traceback (most recent call last):
File "<string>", line 1, in <module>
AssertionError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
Press any key to continue . . .
我尝试重新安装 python 并重新启动我的电脑,这摆脱了一堆其他错误,但给我留下了这个问题。
【问题讨论】:
标签: python artificial-intelligence stable-diffusion