【问题标题】:Stable diffusion [closed]稳定扩散[关闭]
【发布时间】: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


    【解决方案1】:
    AssertionError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
    

    如果您没有 GPU,请将 --skip-torch-cuda-test 添加到 COMMANDLINE_ARGS。我不记得确切的位置,应该在某个地方有一个配置文件。 webui-user.bat 什么的

    如果您有 GPU 并正在尝试使用它,则不确定如何处理此问题。

    【讨论】:

    • 我确实有一个 GPU。
    猜你喜欢
    • 2022-11-11
    • 2022-12-31
    • 2022-11-18
    • 2022-11-03
    • 2022-12-19
    • 2022-10-01
    • 2011-01-20
    • 2010-09-12
    • 2023-02-22
    相关资源
    最近更新 更多