AI大模型教程
一起来学习

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

(stable-diffusion-webui) C:Usersqinchstable-diffusion-webui>webui-user.bat

venv “C:Usersqstable-diffusion-webuivenvScriptsPython.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:Usersqstable-diffusion-webuilaunch.py”, line 360, in

prepare_environment()

File “C:Usersqstable-diffusion-webuilaunch.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:Usersqstable-diffusion-webuilaunch.py”, line 129, in run_python

return run(f'”{python}” -c “{code}”‘, desc, errdesc)

File “C:Usersqstable-diffusion-webuilaunch.py”, line 105, in run

raise RuntimeError(message)

RuntimeError: Error running command.

Command: “C:Usersqstable-diffusion-webuivenvScriptspython.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:

stderr: Traceback (most recent call last):

File “”, line 1, in

File “C:Usersqstable-diffusion-webuivenvlibsite-packagestorch__init__.py”, line 235, in

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.

文章来源于互联网:部署本地化stable-diffusion遇到问题,求解

相关推荐: AI | LLaMA-Factory 一个好用的微调工具

‘’ LLama Factory,这个工具能够高效且低成本地支持对 100 多个模型进行微调。LLama Factory 简化了模型微调的过程,并且易于访问,使用体验友好。此外,它还提供了由 Hiyouga 提供的 Hugging Face 空间,可用于对模型…

赞(0)
未经允许不得转载:5bei.cn大模型教程网 » 部署本地化stable-diffusion遇到问题,求解
分享到: 更多 (0)

AI大模型,我们的未来

小欢软考联系我们