首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >稳定扩散(位于___的车轮“火炬”无效)。

稳定扩散(位于___的车轮“火炬”无效)。
EN

Stack Overflow用户
提问于 2022-12-03 09:57:18
回答 1查看 46关注 0票数 0

我一直试图安装稳定扩散,并遇到了这个错误,我不知道如何修复。当尝试运行webui-user时,我会收到以下消息

代码语言:javascript
运行
复制
venv "C:\Users\___\Desktop\AI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: ce049c471b4a1d22f5a8fe8f527788edcf934eda
Installing torch and torchvision
Traceback (most recent call last):
  File "C:\Users\___\Desktop\AI\stable-diffusion-webui\launch.py", line 293, in <module>
    prepare_enviroment()
  File "C:\Users\___\Desktop\AI\stable-diffusion-webui\launch.py", line 205, in prepare_enviroment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch")
  File "C:\Users\___\Desktop\AI\stable-diffusion-webui\launch.py", line 49, in run
    raise RuntimeError(message)
RuntimeError: Couldn't install torch.
Command: "C:\Users\___\Desktop\AI\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113
Error code: 1
stdout: Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu113
Collecting torch==1.12.1+cu113
  Downloading https://download.pytorch.org/whl/cu113/torch-1.12.1%2Bcu113-cp310-cp310-win_amd64.whl (2143.8 MB)
     ----                                     0.2/2.1 GB 17.2 MB/s eta 0:01:51

stderr: ERROR: Wheel 'torch' located at C:\Users\___\AppData\Local\Temp\pip-unpack-qiio06a2\torch-1.12.1+cu113-cp310-cp310-win_amd64.whl is invalid.

我还没有真正尝试过什么来解决这个问题,因为在尝试安装SD的时候,我还没有看到很多其他人用有问题的解决方案表达自己的想法。

(我确实注意到文件中的amd是无效的,我个人拥有一个nvidia gpu和amd cpu。如果该文件是为amd gpu用户提供的,这可能是问题所在,但我不确定)

另外,我遵循的方法是“到目前为止,我所做的是使用巧克力来安装Python3.10.6和Git的依赖项。然后在自动1111 url上使用"git克隆“。下载了我喜欢的权值文件。将它们添加到“模型”文件夹中。然后运行webui用户并在我的帖子中看到错误。我也有一个pip错误,但是在运行了update命令之后,webui-user.bat提示我停止了这个错误,并留下了这个轮转错误。我跟踪了一段youtube视频,但我基本上遵循了自动1111网站上显示的方法。“

EN

回答 1

Stack Overflow用户

发布于 2022-12-03 18:11:32

Automatic1111很容易从零开始安装,并且有一个很好的用户界面。

您必须提供您所遵循的说明,以帮助我们解决您的特定方法。

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74665626

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档