部署本地化stable-diffusion遇到问题,求解

部署本地化stable-diffusion遇到问题,求解

    正在检查是否收录...

(stable-diffusion-webui) C:\Users\qinch\stable-diffusion-webui>webui-user.bat

venv "C:\Users\q\stable-diffusion-webui\venv\Scripts\Python.exe"

Python 3.10.6 | packaged by conda-forge | (main, Oct 24 2022, 16:02:16) [MSC v.1916 64 bit (AMD64)]

Commit hash: 076d624a297532d6e4abebe5807fd7c7504d7a73

Traceback (most recent call last):

File "C:\Users\q\stable-diffusion-webui\launch.py", line 360, in <module>

prepare_environment()

File "C:\Users\q\stable-diffusion-webui\launch.py", line 272, in prepare_environment

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\q\stable-diffusion-webui\launch.py", line 129, in run_python

return run(f'"{python}" -c "{code}"', desc, errdesc)

File "C:\Users\q\stable-diffusion-webui\launch.py", line 105, in run

raise RuntimeError(message)

RuntimeError: Error running command.

Command: "C:\Users\q\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>

File "C:\Users\q\stable-diffusion-webui\venv\lib\site-packages\torch\__init__.py", line 235, in <module>

raise ImportError(textwrap.dedent('''

ImportError: Failed to load PyTorch C extensions:

It appears that PyTorch has loaded the `torch/_C` folder

of the PyTorch repository rather than the C extensions which

are expected in the `torch._C` namespace. This can occur when

using the `install` workflow. e.g.

$ python setup.py install && python -c "import torch"

This error can generally be solved using the `develop` workflow

$ python setup.py develop && python -c "import torch" # This should succeed

or by running Python from a different directory.

pythonwebuiwebdiffusionpytorchgpueloworkflowflowcodescriptapprapurlcto
  • 本文作者:李琛
  • 本文链接: https://wapzz.net/post-1186.html
  • 版权声明:本博客所有文章除特别声明外,均默认采用 CC BY-NC-SA 4.0 许可协议。
本站部分内容来源于网络转载,仅供学习交流使用。如涉及版权问题,请及时联系我们,我们将第一时间处理。
文章很赞!支持一下吧 还没有人为TA充电
为TA充电
还没有人为TA充电
0
  • 支付宝打赏
    支付宝扫一扫
  • 微信打赏
    微信扫一扫
感谢支持
文章很赞!支持一下吧
关于作者
2.3W+
5
0
1
WAP站长官方

NoveAI本地环境搭建、AI作画

上一篇

Anthropic CEO拒绝了OpenAI董事会提出的合并要约

下一篇
  • 复制图片
按住ctrl可打开默认菜单