Stable Diffusion WebUI|本地化部署

本文介绍了如何在本地环境中部署Stable Diffusion WebUI AI绘画工具,详细讲解了如何使用该工具进行高效率的AI绘画操作并安装依赖环境Git和AnaConda或MiniConda等。

Stable-Diffusion主页配图

本地化部署Stable Diffusion WebUI AI绘画教程

本地化部署Stable Diffusion WebUI AI绘画教程,介绍了如何在本地环境中部署 Stable Diffusion WebUI AI绘画工具,使用该工具可以进行高效率的AI绘画操作。

网上的教程都太过于笼统了,对于很对细节并没有一一枚举,本教程将会让你成功零基础搭建Stable Diffusion WebUI最新版本。

技术交流

本站已开放AI技术交流论坛,如果您在学习过程当中遇到问题,可在本论坛【点击前往】发帖求助。

安装前提

  • 你的电脑必须是英伟达(NVIDIA)显卡。
  • 必须安装Git工具,该工具是为了可以自动拉取GitHub远程仓库的代码。
  • 安装AnaCondaMiniConda,该软件可以避免你的电脑内存在多个Git或Python等编程环境的情况,相当于一个沙盒。

该篇教程将会全自动安装依赖环境:

  • pytorch
  • defaults
  • python=3.8.5
  • pip=20.3
  • cudatoolkit=11.3
  • pytorch=1.11.0
  • torchvision=0.12.0
  • numpy=1.19.2

安装过程

如果部分软件由于网络问题无法下载,可以在此文章最后找到所有所需安装包的百度网盘|腾讯微云|阿里网盘的下载地址。

Git下载

该软件的作用是拉取远程Github仓库代码,可以让你的Stable Diffusion远程实时更新,及时使用全新功能。

Git安装

Conda下载

Conda有Anaconda和Miniconda两个版本可以选择,Anaconda属于完整版,默认包含很多库,但我们用不到,本教程使用的是Miniconda,所以推荐大家也选择Miniconda。

备注:如果您想安装Anaconda也是可以的,教程所使用的命令行完全一样,不用担心不适配的问题。

Conda安装

关于Conda的安装,可以参考本站的此篇Conda安装教程。

如果您是初学者,那么本站非常建议您通过观看此教程来安装,可以避免很多小问题的出现。

配置环境

项目文件夹

在电脑的D盘新建一个文件夹,本站以域名为例,建议您与本站使用同样的名字<openai.wiki>,方便您后续不用改代码,这个文件夹用来后续存放项目文件。

本站创建项目文件夹后的完整路径为:<D:\openai.wiki>

拉取远程仓库

在您通过本站教程安装Git后,打开<D:\openai.wiki>该目录,在目录内鼠标右键空白位置,将会看到 Git Bash Here 选择,点击该选择之后将会自动弹出一个黑色的命令行窗口;复制以下代码,粘贴至该窗口内,然后按下回车,命令行窗口内将会自动下载Github远程仓库文件。

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

等待上面的命令行运行结束之后,就可以在D盘的<openai.wiki>文件夹内看到所拉取的Github仓库文件啦!

备注:如果执行git clone这句命令很卡的话,也可以访问这个网址:https://github.com/AUTOMATIC1111/stable-diffusion-webui,点击绿色按钮code再点击DownloadZIP,下载完成之后解压到该目录下也可以。

注意:必须要开启魔法上网,不然大概率无法下载。

依赖情境说明

到目前为止,我们已经下载好了所有需要用到的软件,以及所需要的GitHub项目,但我们所下载的WebUI是需要运行环境的。举个例子:如果你想要在电脑内安装一个软件,那么首先你先有一台电脑,然后为电脑安装操作系统,然后才可以安装这个软件,所以我们现在需要安装一些依赖。

创建Conda虚拟环境

在您安装完成Conda之后,你可以在电脑的开始菜单内找到 Miniconda3 (64-bit) -> Anaconda Prompt (miniconda3) ,打开这个应用,单击打开。

输入以下命令会自动在<D:\openai.wiki\stable-diffusion-webui>文件夹内创建一个名为 <automatic> 的Python虚拟环境,其中第一个 <D:\openai.wiki\stable-diffusion-webui\automatic> 是您希望环境位于的位置,第二个路径为YAML配置的位置,如果您调整了目录,请根据情况自行修改相应部分:

conda env create -p D:\openai.wiki\stable-diffusion-webui\automatic -f D:\openai.wiki\stable-diffusion-webui\environment-wsl2.yaml

等待全部下载完成后,需要等待几分钟,然后才会在<D:\openai.wiki\stable-diffusion-webui>目录内看到生成的<automatic>文件夹。

激活环境

复制下面的命令,粘贴至黑色的命令行窗口执行。

conda activate D:\openai.wiki\stable-diffusion-webui\automatic

安装依赖

复制下面的命令,粘贴至黑色的命令行窗口执行。

pip install -r D:/openai.wiki/stable-diffusion-webui/requirements.txt

执行完上面的命令行,可能会进入非常漫长的等待,因为这些依赖的文件都在过国外,如果网络不佳,可能需要半个小时左右,但也有可能遇到安装失败等问题,网上大部分都没有写该如何解决,其实并不难,本文章后面会有解决办法。

切换目录

cd /d D:\openai.wiki\stable-diffusion-webui

安装其它依赖

执行下面的命令后,将会继续安装依赖。

webui-user.bat

报错解决

如果遇到gfpganclipopen_clip报错,就打开Clash -> General -> Port -> 命令行图标 -> Copy Commands -> CMD ,粘贴至命令行窗口内按回车,然后重新执行下面的命令。

webui-user.bat

在确保已经成功安装gfpganclipopen_clip等依赖后,关闭该窗口,关闭魔法上网的全局模式。

模型安装

什么是模型?怎么下载?怎么安装?请阅读下面这篇:

下载好模型之后,将模型移到至<D:/openai.wiki/stable-diffusion-webui/models/Stable-diffusion>目录内。

运行

运行<D:\openai.wiki\stable-diffusion-webui\webui-user.bat>,将会自动弹出一个黑色的CMD窗口,等待窗口内出现如下提示:

Running on local URL:  http://127.0.0.1:7860

至此,本地化部署stable-diffusion-webui安装完成,可以打开浏览器输入地址http://127.0.0.1:7860,尽情拥抱Stable-Diffusion的魅力吧。

常见报错处理

依赖环境下载失败如何解决?

如果你的电脑是笔记本,请打开手机的个人热点功能,然后用笔记本直接连接此手机热点,通过流量下载,这里面的原因比较复杂,openAI站就不展开来讲了。

如果你的电脑是台式,有无线网卡的话,那直连即可。如果没有无线网卡,可以将数据线插入电脑并与手机连接,通过USB的方式共享网线给电脑,此方式苹果安卓都可以。

期间可能还会经历几次失败,请不要灰心,多尝试执行几次该命令即可,如果超过30次都没有下载成功,那可能就需要科学上网了哦。

生成了错误环境?

可能你乱改environment-wsl2.yaml文件,生成了错误的环境,此时需要把yaml重新恢复,不用删除该环境,可以运行update命令更新。

conda env update -f environment-wsl2.yaml

报错: No module named ‘CV2’?

因为你的程序依赖包都在新建的安装环境ldm下,所以每次重新打开miniconda都需要再切一次环境,再跑你的程序。

conda activate D:\openai.wiki\stable-diffusion-webui\automatic

其它报错

其它问题欢迎反馈。

点击下文前往Stable Diffusion的教程总目录,学习其它内容。

此文章由OpenAI开源维基百科原创发布,如若转载请注明出处:https://openai.wiki/stable-diffusion-webui-localization.html

(0)
上一篇 2022-12-09 02:25
下一篇 2022-12-10 13:20

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

评论列表(364条)

  • 昵称不会去
    昵称不会去 2023-02-26 17:19

    请问Clash -> General -> Port -> 命令行图标 -> Copy Commands。。。在哪里找?

    • PhiltreX
      PhiltreX 2023-02-26 20:22

      @昵称不会去已远程帮助解决

    • 大佬救命啊
      大佬救命啊 2023-03-04 15:24

      @昵称不会去clash ->General->port->命令行图标->这个在哪里找呢?595101544@qq.com

    • PhiltreX
      PhiltreX 2023-03-04 15:59

      @大佬救命啊关于这方面是敏感内容,本站不传授相关知识,希望谅解。

    • D
      D 2023-03-22 19:01

      @大佬救命啊在Clash的桌面客户端中,您可以通过以下步骤找到”Copy Commands”(复制命令)选项:

      打开Clash客户端并进入主界面。
      单击左侧菜单栏的”General”(一般)选项卡。
      在”General”选项卡下,找到”Port”(端口)部分。
      在”Port”部分下,您会看到”Command Line Icon”(命令行图标)选项,该选项是用来打开Clash的命令行终端的。
      将光标移至”Command Line Icon”旁边的图标上,您将看到一个小弹出窗口,其中包含”Copy Commands”选项。
      单击”Copy Commands”即可将Clash的命令行启动命令复制到剪贴板中。
      复制的命令包含了您在Clash客户端中设置的所有配置选项,可以直接在命令行中运行,从而启动Clash的代理服务。请注意,在运行复制的命令之前,您需要确保已经在系统中安装了Clash,并且已经在Clash客户端中完成了相关的代理配置。

    • 卸载程序支持
      卸载程序支持 2023-04-14 16:38

      @D同求clash for windows客户端 993640043

  • bbin13151488330@163.com
    bbin13151488330@163.com 2023-03-03 11:17

    为什么最后一步没反应呢

  • Sombra
    Sombra 2023-03-04 19:40

    你好,同问Clash在哪找。。。

  • 1
    1 2023-03-05 19:29

    通过教程按顺序进行,但是最后一步没有提示这个网址,并且我也无法打开这个网址,请问是哪里出了问题?

    • PhiltreX
      PhiltreX 2023-03-06 02:37

      @1CMD窗口往上翻一翻,应该有报错信息。

  • xianzhu
    xianzhu 2023-03-07 15:34

    您好那个sub报错怎么解决啊实在是不知道去哪找
    xianzhu05@outlook.com

  • xianzhu
    xianzhu 2023-03-07 15:54

    您好报错要怎么解决啊

  • pdd
    pdd 2023-03-08 09:15

    大佬,我报错信息是:couldnt install gfpgan ,麻烦说下解决方法。。。。1074987746@qq.com

  • 一个绘画苦手
    一个绘画苦手 2023-03-09 22:43

    1、切换目录这步,似乎在 Anaconda Prompt 的黑框里会报错?
    红字提示:Set-Location:找不到接受实际参数 “StableDiffusion路径” 的位置形式参数
    2、以及想请教最后运行的环节,是否从系统CMD进入即可?不再需要从 Anaconda Prompt 窗口输入 webui_user.bat 进入

    • PhiltreX
      PhiltreX 2023-03-10 10:24

      @一个绘画苦手其实从CMD也是可以的,之所以本站说建议从conda窗口使用,是因为有些人可能在安装conda的时候,没有正确配置环境变量,导致cmd窗口内可能无法调用conda命令哈。

    • 不会
      不会 2023-03-12 13:28

      @PhiltreX你没回答上一个问题啊

    • PhiltreX
      PhiltreX 2023-03-12 13:39

      @不会首先,我不是全职做这个,我网站也是免费的,没有广告,所以答疑也是挑空闲时间看一眼,你最好是客气点,一句谢谢都没有,整的像我应该如此似的。
      其次,你的问题可能是因为cd、d的时候,把/输入成了、,自己注意一下中英文,建议直接Copy,只改一下你自己的盘符就行了。

    • 不会
      不会 2023-03-12 16:12

      @PhiltreXSORRY,不好意思 我没有觉得应该的意思,我也是直接复制你的 但是就一直提示错误

  • 不会
    不会 2023-03-12 12:29

    set-Location:找不到接受实际参数的“F:openai.wiki\stable-diffusion-webui”的位置参数所在的位置 行:1 字符:1
    +cd、d F:\openai.wiki\stable-diffusion-webui
    这怎么解决

  • Feiyangyang2022
    Feiyangyang2022 2023-03-14 09:34

    pip版本不对,他说我要升级成23.0.1怎么解决

    • PhiltreX
      PhiltreX 2023-03-14 09:35

      @Feiyangyang2022提供你升级的那一行,应该会有一串可以直接升级的命令,复制执行一下就行了。

    • Feiyangyang2022
      Feiyangyang2022 2023-03-14 14:01

      @PhiltreX您好,报错信息是这样的Error code: 1
      stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
      Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\87750\appdata\local\temp\pip-req-build-e1r7ia_g

      stderr: ERROR: Error [WinError 2] ϵͳҲָļ while executing command git version
      ERROR: Cannot find command ‘git’ – do you have ‘git’ installed and in your PATH?

  • Feiyangyang2022
    Feiyangyang2022 2023-03-14 12:02

    您好,执行命令时Git版本出错,它说找不到Git文件,路径中没有安装,可是我看文件夹中有Git文件啊,怎么解决?

  • chaochaook
    chaochaook 2023-03-15 15:34

    clash ->General->port->命令行图标->这个在哪里找呢?

  • 什么昵称
    什么昵称 2023-03-16 16:57

    大佬,这什么意思啊
    F:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “F:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.9 | packaged by Anaconda, Inc. | (main, Mar 8 2023, 10:42:25) [MSC v.1916 64 bit (AMD64)]
    Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
    Installing open_clip
    Traceback (most recent call last):
    File “F:\openai.wiki\stable-diffusion-webui\launch.py”, line 380, in
    prepare_environment()
    File “F:\openai.wiki\stable-diffusion-webui\launch.py”, line 296, in prepare_environment
    run_pip(f”install {openclip_package}”, “open_clip”)
    File “F:\openai.wiki\stable-diffusion-webui\launch.py”, line 145, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “F:\openai.wiki\stable-diffusion-webui\launch.py”, line 113, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install open_clip.
    Command: “F:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/mlfoundations/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/mlfoundations/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b
    Cloning https://github.com/mlfoundations/open_clip.git (to revision bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b) to c:\users\administrator\appdata\local\temp\pip-req-build-0bs_j2f1

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/mlfoundations/open_clip.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-0bs_j2f1’
    error: RPC failed; curl 18 HTTP/2 stream 3 was not closed cleanly before end of the underlying stream
    fatal: expected flush after ref listing
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/mlfoundations/open_clip.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-0bs_j2f1’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/mlfoundations/open_clip.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-0bs_j2f1’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

    [notice] A new release of pip available: 22.3.1 -> 23.0.1
    [notice] To update, run: F:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip

  • Licorne
    Licorne 2023-03-16 18:24

    创建环境时显示:
    CondaHTTPError: HTTP 000 CONNECTION FAILED for url
    Elapsed: –

    An HTTP error occurred when trying to retrieve this URL.
    HTTP errors are often intermittent, and a simple retry will get you on your way.
    ‘https://conda.anaconda.org/pytorch/win-64’
    已经是开了clash的状态,前面的下载都是正常的,请问应该怎么处理啊

    • PhiltreX
      PhiltreX 2023-03-16 19:27

      @Licorne用手机热点试一下呢

    • Licorne
      Licorne 2023-03-16 20:08

      @PhiltreX还是不行,和原来是一样的错误

    • Licorne
      Licorne 2023-03-16 20:09

      @PhiltreX裸连反而成功了

    • Licorne
      Licorne 2023-03-16 21:47

      @PhiltreX在安装依赖的时候遇到了
      WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host=’files.pythonhosted.org’, port=443): Read timed out. (read timeout=15)”)’: /packages/bc/bf/58dbe1f382ecac2c0571c43b6e95028b14e159d67d75e49a00c26ef63d8f/lazy_loader-0.1-py3-none-any.whl
      WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(, ‘Connection to files.pythonhosted.org timed out. (connect timeout=15)’)’: /packages/bc/bf/58dbe1f382ecac2c0571c43b6e95028b14e159d67d75e49a00c26ef63d8f/lazy_loader-0.1-py3-none-any.whl
      WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(, ‘Connection to files.pythonhosted.org timed out. (connect timeout=15)’)’: /packages/bc/bf/58dbe1f382ecac2c0571c43b6e95028b14e159d67d75e49a00c26ef63d8f/lazy_loader-0.1-py3-none-any.whl
      WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(, ‘Connection to files.pythonhosted.org timed out. (connect timeout=15)’)’: /packages/bc/bf/58dbe1f382ecac2c0571c43b6e95028b14e159d67d75e49a00c26ef63d8f/lazy_loader-0.1-py3-none-any.whl
      WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(, ‘Connection to files.pythonhosted.org timed out. (connect timeout=15)’)’: /packages/bc/bf/58dbe1f382ecac2c0571c43b6e95028b14e159d67d75e49a00c26ef63d8f/lazy_loader-0.1-py3-none-any.whl
      ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host=’files.pythonhosted.org’, port=443): Max retries exceeded with url: /packages/bc/bf/58dbe1f382ecac2c0571c43b6e95028b14e159d67d75e49a00c26ef63d8f/lazy_loader-0.1-py3-none-any.whl (Caused by ConnectTimeoutError(, ‘Connection to files.pythonhosted.org timed out. (connect timeout=15)’))
      这是为什么,应该怎么解决呢
      麻烦您再帮忙看一下

    • PhiltreX
      PhiltreX 2023-03-17 02:07

      @Licorne可能是由于下载依赖库时连接到 files.pythonhosted.org 失败引起的。这种情况可能是由于网络连接问题导致的,建议换代理。

  • 2
    2 2023-03-16 18:51

    最后一步运行不起来:以下是出现的代码
    Error code: 1
    stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
    Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\huangjh\appdata\local\temp\pip-req-build-ijzkl_ss

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\huangjh\AppData\Local\Temp\pip-req-build-ijzkl_ss’
    error: RPC failed; curl 28 Recv failure: Connection was reset
    fatal: expected flush after ref listing
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\huangjh\AppData\Local\Temp\pip-req-build-ijzkl_ss’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\huangjh\AppData\Local\Temp\pip-req-build-ijzkl_ss’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

  • 阿建
    阿建 2023-03-16 19:33

    您好,最后一步运行不成功怎么办?

    • 阿建
      阿建 2023-03-16 19:34

      @阿建以下是报错信息:C:\WINDOWS\system32\cmd.exe X
      stderr:
      Running command git clone–fi1ter=b1ob:none–quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\huangj
      h\AppData\Loca1\Temp/pip-req-bui1d-4p9ojra8
      fatal:unableto access’https://github.com/TencentARC/GFPGAN.git/’: Recv failure: Connection was reset fatal:could not fetchfa702eeacff13fe8475b0e102a8b8c37602f3963 from promisor remote warning: Clone succeeded, but checkout failed.
      You can inspect what was checked out with ‘git status and retry with git restore –source=HEAD :/
      error:subprocess-exited-with-error
      git clone–fi1ter=b1ob:none–quiethttps://github.com/TencentARC/GFPGAN.git’C:\Users\huangjh\AppData\Loca1\Temp\pin -reg-bui1d-4p9ojra8’ did not run successfully. exit code: 128
      See above for output.
      note: This error originates from a subprocess, and is likely not a problem with pip. error:subprocess-exited-with-error
      数git clone–fi1ter=b1ob:none–quiet https://github.com/TencentARC/GFPGAN.git'C:\Users\huangjh\AppData\Loca1\Temp\pip-I
      eq-bui1d-4p9ojra8 did not run successfully.
      exit code:128
      See above for output.
      note:This error originates from a subprocess, and is likely not a problem with pip.

      请按任意键继续.

    • PhiltreX
      PhiltreX 2023-03-16 19:37

      @阿建这个错误信息表明在运行 git clone 命令时出现了问题,导致下载代码库失败。具体原因可能是网络连接中断或GitHub服务器出现问题。建议您更换节点,然后再次尝试运行命令。

    • PhiltreX
      PhiltreX 2023-03-16 19:34

      @阿建请将完整报错信息发出来

  • 1965
    1965 2023-03-16 22:25

    提示如下,请问如何解决,谢谢了
    (D:\openai.wiki\stable-diffusion-webui\automatic) D:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.9 | packaged by Anaconda, Inc. | (main, Mar 8 2023, 10:42:25) [MSC v.1916 64 bit (AMD64)]
    Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 380, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 316, in prepare_environment
    git_clone(taming_transformers_repo, repo_dir(‘taming-transformers’), “Taming Transformers”, taming_transformers_commit_hash)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 159, in git_clone
    current_hash = run(f'”{git}” -C “{dir}” rev-parse HEAD’, None, f”Couldn’t determine {name}’s hash: {commithash}”).strip()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 113, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t determine Taming Transformers’s hash: 24268930bf1dce879235a7fddd0b2355b84d7ea6.
    Command: “git” -C “D:\openai.wiki\stable-diffusion-webui\repositories\taming-transformers” rev-parse HEAD
    Error code: 128
    stdout: HEAD

    stderr: fatal: ambiguous argument ‘HEAD’: unknown revision or path not in the working tree.
    Use ‘–‘ to separate paths from revisions, like this:
    ‘git […] — […]’

    • PhiltreX
      PhiltreX 2023-03-17 02:06

      @1965执行一下这个试试git -C D:\openai.wiki\stable-diffusion-webui\repositories\taming-transformers rev-parse HEAD

    • nkwow
      nkwow 2023-04-27 23:02

      @PhiltreX大佬,请问如何执行?

  • gri
    gri 2023-03-16 22:35

    在“输入webui-user.bat”的这个步骤遇到问题,出现报错信息如下:
    F:\openai.wiki\stable-diffusion-webui-master>webui-user.bat
    venv “F:\openai.wiki\stable-diffusion-webui-master\venv\Scripts\Python.exe”
    Python 3.10.9 | packaged by Anaconda, Inc. | (main, Mar 8 2023, 10:42:25) [MSC v.1916 64 bit (AMD64)]
    Commit hash:
    Cloning Taming Transformers into F:\openai.wiki\stable-diffusion-webui-master\repositories\taming-transformers…
    Cloning K-diffusion into F:\openai.wiki\stable-diffusion-webui-master\repositories\k-diffusion…
    Cloning CodeFormer into F:\openai.wiki\stable-diffusion-webui-master\repositories\CodeFormer…
    Cloning BLIP into F:\openai.wiki\stable-diffusion-webui-master\repositories\BLIP…
    Traceback (most recent call last):
    File “F:\openai.wiki\stable-diffusion-webui-master\launch.py”, line 380, in
    prepare_environment()
    File “F:\openai.wiki\stable-diffusion-webui-master\launch.py”, line 319, in prepare_environment
    git_clone(blip_repo, repo_dir(‘BLIP’), “BLIP”, blip_commit_hash)
    File “F:\openai.wiki\stable-diffusion-webui-master\launch.py”, line 167, in git_clone
    run(f'”{git}” clone “{url}” “{dir}”‘, f”Cloning {name} into {dir}…”, f”Couldn’t clone {name}”)
    File “F:\openai.wiki\stable-diffusion-webui-master\launch.py”, line 113, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t clone BLIP.
    Command: “git” clone “https://github.com/salesforce/BLIP.git” “F:\openai.wiki\stable-diffusion-webui-master\repositories\BLIP”
    Error code: 128
    stdout:
    stderr: Cloning into ‘F:\openai.wiki\stable-diffusion-webui-master\repositories\BLIP’…
    fatal: unable to access ‘https://github.com/salesforce/BLIP.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
    方便的话可以麻烦告诉我该如何解决吗,还是需要远程解决

    • PhiltreX
      PhiltreX 2023-03-17 02:05

      @gri错误信息中提到了 OpenSSL SSL_read: Connection was reset, errno 10054,这表明在 SSL 通信过程中发生了连接被重置的错误。
      还是代理的问题,您的代理不行,考虑换一个吧。

  • 小小人
    小小人 2023-03-17 02:08

    最后一步弹Couldn’t launch python

    exit code: 9009

    • PhiltreX
      PhiltreX 2023-03-17 02:10

      @小小人先打开CMD执行激活Conda环境的命令,然后再在CMD里面执行Bat启动文件。

    • 高原
      高原 2023-03-21 18:18

      @PhiltreX大佬,我也是这个报错,但是我看不懂您的回复~~求助怎么在CMD里面执行Bat启动文件。

    • nkwow
      nkwow 2023-04-27 22:41

      @高原输入conda create –name sdwebui python=3.10.6(这是创建python3.10.6的环境),输入y再回车
      再输入conda activate sdwebui(这是激活conda环境)

  • 恆晨
    恆晨 2023-03-17 09:47

    您好,我在之前安裝过程中似乎没有遇到报错,但最后运行webui-user.bat的时候显示此应用无法在你的电脑上运行,这要如何解决呢?

    • 恆晨
      恆晨 2023-03-17 09:49

      @恆晨另外,如果我将文件拖入命令行执行的话,不会得到任何结果

    • PhiltreX
      PhiltreX 2023-03-19 16:10

      @恆晨因为你是以管理员方式运行的,所以无法拖拽。

    • PhiltreX
      PhiltreX 2023-03-19 16:11

      @恆晨我需要详细的报错信息才可以。

  • 一个绘画苦手
    一个绘画苦手 2023-03-17 10:11

    用博主的方法,用的体验很好,即使部署了训练环境也不影响SD的使用,那么新的问题来了,博主有什么方案可以对已部署好的SD和依赖的环境升级吗?

  • 恆晨
    恆晨 2023-03-17 11:51

    啊我发现问题出在哪了,我的webui-user不知道什么时候坏掉变成空白文件了,我重新下载了他,现在在继续尝试跑。之前的就不用回复了以免占用大家的版面,谢谢您

    • PhiltreX
      PhiltreX 2023-03-17 12:42

      @恆晨好的,好了就好,不客气。

    • 高原
      高原 2023-03-21 18:11

      @恆晨请问怎么看webui-user是不是坏了?
      我也是最后一步不运行

  • AIck
    AIck 2023-03-18 14:50

    venv “G:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.9 | packaged by Anaconda, Inc. | (main, Mar 8 2023, 10:42:25) [MSC v.1916 64 bit (AMD64)]
    Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
    Installing requirements for Web UI
    Launching Web UI with arguments:
    No module ‘xformers’. Proceeding without it.
    Loading weights [a586d5a51a] from G:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
    loading stable diffusion model: RuntimeError
    Traceback (most recent call last):
    File “G:\openai.wiki\stable-diffusion-webui\webui.py”, line 136, in initialize
    modules.sd_models.load_model()
    File “G:\openai.wiki\stable-diffusion-webui\modules\sd_models.py”, line 407, in load_model
    state_dict = get_checkpoint_state_dict(checkpoint_info, timer)
    File “G:\openai.wiki\stable-diffusion-webui\modules\sd_models.py”, line 262, in get_checkpoint_state_dict
    res = read_state_dict(checkpoint_info.filename)
    File “G:\openai.wiki\stable-diffusion-webui\modules\sd_models.py”, line 241, in read_state_dict
    pl_sd = safetensors.torch.load_file(checkpoint_file, device=device)
    File “G:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\safetensors\torch.py”, line 100, in load_file
    result[k] = f.get_tensor(k)
    RuntimeError: self.size(-1) must be divisible by 4 to view Byte as Float (different element sizes), but got 6545423

    Stable diffusion model failed to load, exiting
    请按任意键继续. . .

    • PhiltreX
      PhiltreX 2023-03-19 16:10

      @AIck根据错误信息,似乎该错误是由一个命名为“safetensors”的 Python 包引起的。这个包可能是用来确保模型权重的正确性和安全性的。建议您检查这个包是否正确安装,并查看是否有相关的错误报告。如果有,您可以尝试重新安装这个包或者检查模型权重文件是否存在或者损坏。

  • 阿建
    阿建 2023-03-18 22:04

    大佬,我在webuser这一步,一直在Cloning Stable Diffusion into xxx,然后报错Couldn’t clone Stable Diffusion.请问是怎么回事啊?

  • 111
    111 2023-03-19 13:55

    请问这是什么情况,下载requirements.txt出现的
    error: subprocess-exited-with-error

    × python setup.py egg_info did not run successfully.
    │ exit code: 1
    ╰─> [109 lines of output]
    D:\Miniconda\lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
    warnings.warn(
    ERROR: Exception:
    Traceback (most recent call last):
    File “D:\Miniconda\lib\site-packages\pip\_vendor\urllib3\response.py”, line 437, in _error_catcher
    yield
    File “D:\Miniconda\lib\site-packages\pip\_vendor\urllib3\response.py”, line 560, in read
    data = self._fp_read(amt) if not fp_closed else b””
    File “D:\Miniconda\lib\site-packages\pip\_vendor\urllib3\response.py”, line 526, in _fp_read
    return self._fp.read(amt) if amt is not None else self._fp.read()
    File “D:\Miniconda\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py”, line 90, in read
    data = self.__fp.read(amt)
    File “D:\Miniconda\lib\http\client.py”, line 465, in read
    s = self.fp.read(amt)
    File “D:\Miniconda\lib\socket.py”, line 705, in readinto
    return self._sock.recv_into(b)
    File “D:\Miniconda\lib\ssl.py”, line 1274, in recv_into
    return self.read(nbytes, buffer)
    File “D:\Miniconda\lib\ssl.py”, line 1130, in read
    return self._sslobj.read(len, buffer)
    TimeoutError: The read operation timed out

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “D:\Miniconda\lib\site-packages\pip\_internal\cli\base_command.py”, line 160, in exc_logging_wrapper
    status = run_func(*args)
    File “D:\Miniconda\lib\site-packages\pip\_internal\cli\req_command.py”, line 247, in wrapper
    return func(self, options, args)
    File “D:\Miniconda\lib\site-packages\pip\_internal\commands\wheel.py”, line 170, in run
    requirement_set = resolver.resolve(reqs, check_supported_wheels=True)
    File “D:\Miniconda\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py”, line 92, in resolve
    result = self._result = resolver.resolve(
    File “D:\Miniconda\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 481, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
    File “D:\Miniconda\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 348, in resolve
    self._add_to_criteria(self.state.criteria, r, parent=None)
    File “D:\Miniconda\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 172, in _add_to_criteria
    if not criterion.candidates:
    File “D:\Miniconda\lib\site-packages\pip\_vendor\resolvelib\structs.py”, line 151, in __bool__
    return bool(self._sequence)
    File “D:\Miniconda\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 155, in __bool__
    return any(self)
    File “D:\Miniconda\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 143, in
    return (c for c in iterator if id(c) not in self._incompatible_ids)
    File “D:\Miniconda\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 47, in _iter_built
    candidate = func()
    File “D:\Miniconda\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py”, line 206, in _make_candidate_from_link
    self._link_candidate_cache[link] = LinkCandidate(
    File “D:\Miniconda\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 297, in __init__
    super().__init__(
    File “D:\Miniconda\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 162, in __init__
    self.dist = self._prepare()
    File “D:\Miniconda\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 231, in _prepare
    dist = self._prepare_distribution()
    File “D:\Miniconda\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 308, in _prepare_distribution
    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
    File “D:\Miniconda\lib\site-packages\pip\_internal\operations\prepare.py”, line 491, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
    File “D:\Miniconda\lib\site-packages\pip\_internal\operations\prepare.py”, line 536, in _prepare_linked_requirement
    local_file = unpack_url(
    File “D:\Miniconda\lib\site-packages\pip\_internal\operations\prepare.py”, line 166, in unpack_url
    file = get_http_url(
    File “D:\Miniconda\lib\site-packages\pip\_internal\operations\prepare.py”, line 107, in get_http_url
    from_path, content_type = download(link, temp_dir.path)
    File “D:\Miniconda\lib\site-packages\pip\_internal\network\download.py”, line 147, in __call__
    for chunk in chunks:
    File “D:\Miniconda\lib\site-packages\pip\_internal\network\utils.py”, line 63, in response_chunks
    for chunk in response.raw.stream(
    File “D:\Miniconda\lib\site-packages\pip\_vendor\urllib3\response.py”, line 621, in stream
    data = self.read(amt=amt, decode_content=decode_content)
    File “D:\Miniconda\lib\site-packages\pip\_vendor\urllib3\response.py”, line 559, in read
    with self._error_catcher():
    File “D:\Miniconda\lib\contextlib.py”, line 153, in __exit__
    self.gen.throw(typ, value, traceback)
    File “D:\Miniconda\lib\site-packages\pip\_vendor\urllib3\response.py”, line 442, in _error_catcher
    raise ReadTimeoutError(self._pool, None, “Read timed out.”)
    pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=’files.pythonhosted.org’, port=443): Read timed out.
    Traceback (most recent call last):
    File “D:\Miniconda\lib\site-packages\setuptools\installer.py”, line 82, in fetch_build_egg
    subprocess.check_call(cmd)
    File “D:\Miniconda\lib\subprocess.py”, line 369, in check_call
    raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command ‘[‘D:\\Miniconda\\python.exe’, ‘-m’, ‘pip’, ‘–disable-pip-version-check’, ‘wheel’, ‘–no-deps’, ‘-w’, ‘C:\\Users\\23243\\AppData\\Local\\Temp\\tmpk82g_bqu’, ‘–quiet’, ‘torch’]’ returned non-zero exit status 2.

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
    File “”, line 2, in
    File “”, line 34, in
    File “C:\Users\23243\AppData\Local\Temp\pip-install-hauelb5m\basicsr_ff9fa51afe15482f8d5ed318666d9752\setup.py”, line 147, in
    setup(
    File “D:\Miniconda\lib\site-packages\setuptools\__init__.py”, line 86, in setup
    _install_setup_requires(attrs)
    File “D:\Miniconda\lib\site-packages\setuptools\__init__.py”, line 80, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
    File “D:\Miniconda\lib\site-packages\setuptools\dist.py”, line 874, in fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
    File “D:\Miniconda\lib\site-packages\pkg_resources\__init__.py”, line 789, in resolve
    dist = best[req.key] = env.best_match(
    File “D:\Miniconda\lib\site-packages\pkg_resources\__init__.py”, line 1075, in best_match
    return self.obtain(req, installer)
    File “D:\Miniconda\lib\site-packages\pkg_resources\__init__.py”, line 1087, in obtain
    return installer(requirement)
    File “D:\Miniconda\lib\site-packages\setuptools\dist.py”, line 944, in fetch_build_egg
    return fetch_build_egg(self, req)
    File “D:\Miniconda\lib\site-packages\setuptools\installer.py”, line 84, in fetch_build_egg
    raise DistutilsError(str(e)) from e
    distutils.errors.DistutilsError: Command ‘[‘D:\\Miniconda\\python.exe’, ‘-m’, ‘pip’, ‘–disable-pip-version-check’, ‘wheel’, ‘–no-deps’, ‘-w’, ‘C:\\Users\\23243\\AppData\\Local\\Temp\\tmpk82g_bqu’, ‘–quiet’, ‘torch’]’ returned non-zero exit status 2.
    [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: metadata-generation-failed

    × Encountered error while generating package metadata.
    ╰─> See above for output.

    note: This is an issue with the package mentioned above, not pip.
    hint: See above for details.

    • PhiltreX
      PhiltreX 2023-03-19 15:51

      @111错误信息表明在下载包时遇到了一个网络超时错误,导致生成包元数据失败,建议开启全局魔法。

  • shelken
    shelken 2023-03-19 16:37

    建议使用该开源项目:https://github.com/AbdBarho/stable-diffusion-webui-docker
    部署更加简单,也可轻松选择不同ui。

    • PhiltreX
      PhiltreX 2023-03-19 16:46

      @shelken感谢提供,本站后续如果测试没问题的话,将会考虑给出完整部署教程。

  • adq
    adq 2023-03-19 23:22

    大佬帮忙看看这是什么情况,最后一步显示这个
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.9 | packaged by Anaconda, Inc. | (main, Mar 8 2023, 10:42:25) [MSC v.1916 64 bit (AMD64)]
    Commit hash:
    Installing gfpgan
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 380, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 290, in prepare_environment
    run_pip(f”install {gfpgan_package}”, “gfpgan”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 145, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 113, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install gfpgan.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
    Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\17742\appdata\local\temp\pip-req-build-ocz06mwj

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\17742\AppData\Local\Temp\pip-req-build-ocz06mwj’
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21046 ms: Couldn’t connect to server
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\17742\AppData\Local\Temp\pip-req-build-ocz06mwj’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\17742\AppData\Local\Temp\pip-req-build-ocz06mwj’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

    [notice] A new release of pip available: 22.3.1 -> 23.0.1
    [notice] To update, run: D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip

  • 还有什么好名
    还有什么好名 2023-03-20 11:12

    请问 Clash -> General -> Port -> 命令行图标 -> Copy Commands 在哪找?

    • 还有什么好名
      还有什么好名 2023-03-20 11:19

      @还有什么好名错误信息
      Installing clip
      Installing open_clip
      Traceback (most recent call last):
      File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 380, in
      prepare_environment()
      File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 296, in prepare_environment
      run_pip(f”install {openclip_package}”, “open_clip”)
      File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 145, in run_pip
      return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
      File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 113, in run
      raise RuntimeError(message)
      RuntimeError: Couldn’t install open_clip.
      Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/mlfoundations/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b –prefer-binary
      Error code: 1
      stdout: Collecting git+https://github.com/mlfoundations/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b
      Cloning https://github.com/mlfoundations/open_clip.git (to revision bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b) to c:\users\13631\appdata\local\temp\pip-req-build-b6pneub8

      stderr: Running command git clone –filter=blob:none –quiet https://github.com/mlfoundations/open_clip.git ‘C:\Users\13631\AppData\Local\Temp\pip-req-build-b6pneub8’
      Running command git rev-parse -q –verify ‘sha^bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b’
      Running command git fetch -q https://github.com/mlfoundations/open_clip.git bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b
      fatal: unable to access ‘https://github.com/mlfoundations/open_clip.git/’: Failed to connect to github.com port 443 after 21106 ms: Couldn’t connect to server
      error: subprocess-exited-with-error

      git fetch -q https://github.com/mlfoundations/open_clip.git bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b did not run successfully.
      exit code: 128

      See above for output.

      note: This error originates from a subprocess, and is likely not a problem with pip.
      error: subprocess-exited-with-error

      git fetch -q https://github.com/mlfoundations/open_clip.git bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b did not run successfully.
      exit code: 128

      See above for output.

      note: This error originates from a subprocess, and is likely not a problem with pip.

    • PhiltreX
      PhiltreX 2023-03-20 11:32

      @还有什么好名Installing open_clip没安装上,建议开启全局魔法。

    • PhiltreX
      PhiltreX 2023-03-20 11:33

      @还有什么好名就在Clash的主界面呢

  • 我叫随便
    我叫随便 2023-03-21 14:05

    pip install 特别慢,30K/s,这个是因为什么呢

  • 我叫随便
    我叫随便 2023-03-21 15:29

    大神你好,安装到最后一步webui-user.bat的时候报错了,如下所示,想请教下这要如何解决
    [notice] A new release of pip available: 22.3.1 -> 23.0.1
    [notice] To update, run: D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 380, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 287, 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 “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 137, in run_python
    return run(f'”{python}” -c “{code}”‘, desc, errdesc)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 113, in run
    raise RuntimeError(message)
    RuntimeError: Error running command.
    Command: “D:\openai.wiki\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:
    stderr: D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\cuda\__init__.py:88: UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 10020). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver. (Triggered internally at ..\c10\cuda\CUDAFunctions.cpp:109.)
    return torch._C._cuda_getDeviceCount() > 0
    Traceback (most recent call last):
    File “”, line 1, in
    AssertionError: Torch is not able to use GPU; add –skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

    • PhiltreX
      PhiltreX 2023-03-23 22:12

      @我叫随便这个错误信息是Torch无法使用GPU的问题。错误信息中提到CUDA driver版本过旧,需要更新到新版本。你可以尝试从NVIDIA官网下载并安装新的GPU驱动程序。如果仍然无法解决问题,请考虑安装已经编译了适用于您的CUDA驱动程序版本的PyTorch版本。

  • Ringooo
    Ringooo 2023-03-21 17:26

    卡在安装open_clip依赖这里了,求大佬帮忙看下,报错信息:

    venv “E:\openAI.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.9 | packaged by Anaconda, Inc. | (main, Mar 8 2023, 10:42:25) [MSC v.1916 64 bit (AMD64)]
    Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
    Installing requirements for Web UI
    Launching Web UI with arguments:
    No module ‘xformers’. Proceeding without it.
    Loading weights [a7529df023] from E:\openAI.wiki\stable-diffusion-webui\models\Stable-diffusion\final-pruned.ckpt
    Creating model from config: E:\openAI.wiki\stable-diffusion-webui\configs\v1-inference.yaml
    LatentDiffusion: Running in eps-prediction mode
    DiffusionWrapper has 859.52 M params.
    Failed to create model quickly; will retry using slow method.
    LatentDiffusion: Running in eps-prediction mode
    DiffusionWrapper has 859.52 M params.
    loading stable diffusion model: SSLError
    Traceback (most recent call last):
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\urllib3\connectionpool.py”, line 700, in urlopen
    self._prepare_proxy(conn)
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\urllib3\connectionpool.py”, line 996, in _prepare_proxy
    conn.connect()
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\urllib3\connection.py”, line 419, in connect
    self.sock = ssl_wrap_socket(
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\urllib3\util\ssl_.py”, line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\urllib3\util\ssl_.py”, line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
    File “E:\openAI.wiki\stable-diffusion-webui\automatic\lib\ssl.py”, line 513, in wrap_socket
    return self.sslsocket_class._create(
    File “E:\openAI.wiki\stable-diffusion-webui\automatic\lib\ssl.py”, line 1071, in _create
    self.do_handshake()
    File “E:\openAI.wiki\stable-diffusion-webui\automatic\lib\ssl.py”, line 1342, in do_handshake
    self._sslobj.do_handshake()
    ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:997)

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\requests\adapters.py”, line 439, in send
    resp = conn.urlopen(
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\urllib3\connectionpool.py”, line 787, in urlopen
    retries = retries.increment(
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\urllib3\util\retry.py”, line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
    urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=’huggingface.co’, port=443): Max retries exceeded with url: /openai/clip-vit-large-patch14/resolve/main/special_tokens_map.json (Caused by SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (_ssl.c:997)’)))

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “E:\openAI.wiki\stable-diffusion-webui\webui.py”, line 136, in initialize
    modules.sd_models.load_model()
    File “E:\openAI.wiki\stable-diffusion-webui\modules\sd_models.py”, line 430, in load_model
    sd_model = instantiate_from_config(sd_config.model)
    File “E:\openAI.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\util.py”, line 79, in instantiate_from_config
    return get_obj_from_str(config[“target”])(**config.get(“params”, dict()))
    File “E:\openAI.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py”, line 563, in __init__
    self.instantiate_cond_stage(cond_stage_config)
    File “E:\openAI.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py”, line 630, in instantiate_cond_stage
    model = instantiate_from_config(config)
    File “E:\openAI.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\util.py”, line 79, in instantiate_from_config
    return get_obj_from_str(config[“target”])(**config.get(“params”, dict()))
    File “E:\openAI.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\modules\encoders\modules.py”, line 99, in __init__
    self.tokenizer = CLIPTokenizer.from_pretrained(version)
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\transformers\tokenization_utils_base.py”, line 1760, in from_pretrained
    resolved_vocab_files[file_id] = cached_file(
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\hub.py”, line 409, in cached_file
    resolved_file = hf_hub_download(
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\utils\_validators.py”, line 120, in _inner_fn
    return fn(*args, **kwargs)
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py”, line 1160, in hf_hub_download
    metadata = get_hf_file_metadata(
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\utils\_validators.py”, line 120, in _inner_fn
    return fn(*args, **kwargs)
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py”, line 1492, in get_hf_file_metadata
    r = _request_wrapper(
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py”, line 407, in _request_wrapper
    response = _request_wrapper(
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py”, line 442, in _request_wrapper
    return http_backoff(
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\utils\_http.py”, line 129, in http_backoff
    response = requests.request(method=method, url=url, **kwargs)
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\requests\api.py”, line 61, in request
    return session.request(method=method, url=url, **kwargs)
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\requests\sessions.py”, line 542, in request
    resp = self.send(prep, **send_kwargs)
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\requests\sessions.py”, line 655, in send
    r = adapter.send(request, **kwargs)
    File “E:\openAI.wiki\stable-diffusion-webui\venv\lib\site-packages\requests\adapters.py”, line 514, in send
    raise SSLError(e, request=request)
    requests.exceptions.SSLError: HTTPSConnectionPool(host=’huggingface.co’, port=443): Max retries exceeded with url: /openai/clip-vit-large-patch14/resolve/main/special_tokens_map.json (Caused by SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (_ssl.c:997)’)))

    Stable diffusion model failed to load, exiting

    • D
      D 2023-03-22 20:48

      @Ringooo根据你提供的错误信息,这个问题是由于网络连接问题引起的。在安装OpenAI依赖时,程序试图从huggingface.co下载一个文件,但是出现了SSL协议错误,最终导致模型加载失败。

      有时这种问题是由于网络不稳定造成的,您可以尝试重新运行程序,或者等待一段时间再次尝试。您还可以尝试使用一个不同的网络连接,例如移动热点或VPN等,看看是否能够解决问题。

      如果这些解决方案都无法解决问题,您可以考虑手动下载所需的文件并将其放置在正确的位置。在您的错误信息中,可以看到下载文件的URL是 https://huggingface.co/openai/clip-vit-large-patch14/resolve/main/special_tokens_map.json 。您可以使用浏览器或其他工具手动下载此文件,并将其放置在正确的位置,这样您就可以跳过下载步骤并继续进行模型加载。

  • nz1996
    nz1996 2023-03-22 00:55

    卡在了installing requirements for web ui这一步 请问站长知道有该如何解决吗?谢谢!

  • 嘟嘟噜
    嘟嘟噜 2023-03-22 11:42

    大佬,我这个是什么原语啊?希望你能帮帮我?感谢大佬。
    D:\openai.wiki\stable-diffusion-webui\automatic) D:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.9 | packaged by Anaconda, Inc. | (main, Mar 8 2023, 10:42:25) [MSC v.1916 64 bit (AMD64)]
    Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
    Installing gfpgan
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 380, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 290, in prepare_environment
    run_pip(f”install {gfpgan_package}”, “gfpgan”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 145, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 113, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install gfpgan.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 –prefer-binary
    Error code: 1
    stdout: Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
    Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
    Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\86131\appdata\local\temp\pip-req-build-2fy92bu8

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\86131\AppData\Local\Temp\pip-req-build-2fy92bu8’
    Running command git rev-parse -q –verify ‘sha^8d2447a2d918f8eba5a4a01463fd48e45126a379’
    Running command git fetch -q https://github.com/TencentARC/GFPGAN.git 8d2447a2d918f8eba5a4a01463fd48e45126a379
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21066 ms: Couldn’t connect to server
    error: subprocess-exited-with-error

    git fetch -q https://github.com/TencentARC/GFPGAN.git 8d2447a2d918f8eba5a4a01463fd48e45126a379 did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git fetch -q https://github.com/TencentARC/GFPGAN.git 8d2447a2d918f8eba5a4a01463fd48e45126a379 did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

    请按任意键继续. . .

  • sr
    sr 2023-03-22 13:05

    你好,手动离线安装gfpgan、clip、open_clip之后,再执行webui.bat,报错说不能clone stable-diffusion,对应launch.py的315行以及后续一部分代码,stable-diffusion离线安装成功执行webui还是不行,请问该怎么解决?

    • hp_zerolan
      hp_zerolan 2023-05-06 16:14

      @sr一样的,你既然知道手动安装gfpgan、clip、open_clip,stable-diffusion难不倒你,上Github上面clone下来,放进“c:\users\86131\appdata\local\temp\pip-req-build-2fy92bu8”,但是你这目录看着不太对,没用虚拟环境或者conda?

  • 在这里
    在这里 2023-03-22 14:35

    可以远程帮忙解决下在哪里找Clash -> General -> Port -> 命令行图标 -> Copy Commands吗

  • QAQ
    QAQ 2023-03-22 17:09

    大佬创建Conda虚拟环境的这步卡住了,应该怎么操作呀

    (base) C:\Users\Administrator>conda env create -p D:\Game\Ai\openai.wiki\stable-diffusion-webui\automatic -f D:\openai.wiki\stable-diffusion-webui\environment-wsl2.yaml

    EnvironmentFileNotFound: ‘D:\openai.wiki\stable-diffusion-webui\environment-wsl2.yaml’ file not found

  • 216512
    216512 2023-03-22 17:18

    请问pip install -r D:/openai.wiki/stable-diffusion-webui/requirements.txt安装这个的时候出现以下是怎么回事
    ERROR: Exception:
    Traceback (most recent call last):
    File “E:\conda\lib\site-packages\pip\_vendor\urllib3\response.py”, line 437, in _error_catcher
    yield
    File “E:\conda\lib\site-packages\pip\_vendor\urllib3\response.py”, line 560, in read
    data = self._fp_read(amt) if not fp_closed else b””
    File “E:\conda\lib\site-packages\pip\_vendor\urllib3\response.py”, line 526, in _fp_read
    return self._fp.read(amt) if amt is not None else self._fp.read()
    File “E:\conda\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py”, line 90, in read
    data = self.__fp.read(amt)
    File “E:\conda\lib\http\client.py”, line 465, in read
    s = self.fp.read(amt)
    File “E:\conda\lib\socket.py”, line 705, in readinto
    return self._sock.recv_into(b)
    File “E:\conda\lib\ssl.py”, line 1274, in recv_into
    return self.read(nbytes, buffer)
    File “E:\conda\lib\ssl.py”, line 1130, in read
    return self._sslobj.read(len, buffer)
    TimeoutError: The read operation timed out

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “E:\conda\lib\site-packages\pip\_internal\cli\base_command.py”, line 160, in exc_logging_wrapper
    status = run_func(*args)
    File “E:\conda\lib\site-packages\pip\_internal\cli\req_command.py”, line 247, in wrapper
    return func(self, options, args)
    File “E:\conda\lib\site-packages\pip\_internal\commands\install.py”, line 400, in run
    requirement_set = resolver.resolve(
    File “E:\conda\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py”, line 92, in resolve
    result = self._result = resolver.resolve(
    File “E:\conda\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 481, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
    File “E:\conda\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 348, in resolve
    self._add_to_criteria(self.state.criteria, r, parent=None)
    File “E:\conda\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 172, in _add_to_criteria
    if not criterion.candidates:
    File “E:\conda\lib\site-packages\pip\_vendor\resolvelib\structs.py”, line 151, in __bool__
    return bool(self._sequence)
    File “E:\conda\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 155, in __bool__
    return any(self)
    File “E:\conda\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 143, in
    return (c for c in iterator if id(c) not in self._incompatible_ids)
    File “E:\conda\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 47, in _iter_built
    candidate = func()
    File “E:\conda\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py”, line 206, in _make_candidate_from_link
    self._link_candidate_cache[link] = LinkCandidate(
    File “E:\conda\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 297, in __init__
    super().__init__(
    File “E:\conda\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 162, in __init__
    self.dist = self._prepare()
    File “E:\conda\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 231, in _prepare
    dist = self._prepare_distribution()
    File “E:\conda\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 308, in _prepare_distribution
    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
    File “E:\conda\lib\site-packages\pip\_internal\operations\prepare.py”, line 491, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
    File “E:\conda\lib\site-packages\pip\_internal\operations\prepare.py”, line 536, in _prepare_linked_requirement
    local_file = unpack_url(
    File “E:\conda\lib\site-packages\pip\_internal\operations\prepare.py”, line 166, in unpack_url
    file = get_http_url(
    File “E:\conda\lib\site-packages\pip\_internal\operations\prepare.py”, line 107, in get_http_url
    from_path, content_type = download(link, temp_dir.path)
    File “E:\conda\lib\site-packages\pip\_internal\network\download.py”, line 147, in __call__
    for chunk in chunks:
    File “E:\conda\lib\site-packages\pip\_internal\cli\progress_bars.py”, line 53, in _rich_progress_bar
    for chunk in iterable:
    File “E:\conda\lib\site-packages\pip\_internal\network\utils.py”, line 63, in response_chunks
    for chunk in response.raw.stream(
    File “E:\conda\lib\site-packages\pip\_vendor\urllib3\response.py”, line 621, in stream
    data = self.read(amt=amt, decode_content=decode_content)
    File “E:\conda\lib\site-packages\pip\_vendor\urllib3\response.py”, line 559, in read
    with self._error_catcher():
    File “E:\conda\lib\contextlib.py”, line 153, in __exit__
    self.gen.throw(typ, value, traceback)
    File “E:\conda\lib\site-packages\pip\_vendor\urllib3\response.py”, line 442, in _error_catcher
    raise ReadTimeoutError(self._pool, None, “Read timed out.”)
    pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=’files.pythonhosted.org’, port=443): Read timed out.

    • areay
      areay 2023-04-19 13:41

      @216512是不是系统代理没关

  • D
    D 2023-03-22 18:58

    PIP 安裝慢可以使用這個阿里節點 pip install -i https://mirrors.aliyun.com/pypi/simple/ -r D:/AI/stable-diffusion-webui/requirements.txt

  • 112233
    112233 2023-03-23 09:13

    请问最后一步运行我打开文件他显示是以下这些怎么办
    Couldn’t launch python

    exit code: 9009

  • 112233
    112233 2023-03-23 09:51

    请问做到最后一步运行的时候打开D:\openai.wiki\stable-diffusion-webui\webui-user.bat这个文件他显示是以下代码
    Couldn’t launch python

    exit code: 9009

  • 救命啊
    救命啊 2023-03-23 11:57

    请问我在运行D:\openai.wiki\stable-diffusion-webui\webui-user.bat这个之后显示以下是怎么回事
    venv “D:\openai.wiki\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: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
    Installing gfpgan
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 380, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 290, in prepare_environment
    run_pip(f”install {gfpgan_package}”, “gfpgan”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 145, in run_pip
    return run(f’”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 113, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install gfpgan.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
    Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\a\appdata\local\temp\pip-req-build-3d17ggcs

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\a\AppData\Local\Temp\pip-req-build-3d17ggcs’
    Running command git rev-parse -q –verify ‘sha^8d2447a2d918f8eba5a4a01463fd48e45126a379’
    Running command git fetch -q https://github.com/TencentARC/GFPGAN.git 8d2447a2d918f8eba5a4a01463fd48e45126a379
    Running command git checkout -q 8d2447a2d918f8eba5a4a01463fd48e45126a379
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Recv failure: Connection was reset
    fatal: could not fetch 51da601598a8692ef0f01b3a6a2c70916c7b104c from promisor remote
    error: subprocess-exited-with-error

    git checkout -q 8d2447a2d918f8eba5a4a01463fd48e45126a379 did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git checkout -q 8d2447a2d918f8eba5a4a01463fd48e45126a379 did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    [notice] A new release of pip available: 22.3.1 -> 23.0.1
    [notice] To update, run: D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip

  • 救命啊
    救命啊 2023-03-23 11:59

    请问以下我在运行D:\openai.wiki\stable-diffusion-webui\webui-user.bat这个之后显示是以下这些是怎么回事
    venv “D:\openai.wiki\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: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
    Installing gfpgan
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 380, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 290, in prepare_environment
    run_pip(f”install {gfpgan_package}”, “gfpgan”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 145, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 113, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install gfpgan.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
    Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\a\appdata\local\temp\pip-req-build-3d17ggcs

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\a\AppData\Local\Temp\pip-req-build-3d17ggcs’
    Running command git rev-parse -q –verify ‘sha^8d2447a2d918f8eba5a4a01463fd48e45126a379’
    Running command git fetch -q https://github.com/TencentARC/GFPGAN.git 8d2447a2d918f8eba5a4a01463fd48e45126a379
    Running command git checkout -q 8d2447a2d918f8eba5a4a01463fd48e45126a379
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Recv failure: Connection was reset
    fatal: could not fetch 51da601598a8692ef0f01b3a6a2c70916c7b104c from promisor remote
    error: subprocess-exited-with-error

    git checkout -q 8d2447a2d918f8eba5a4a01463fd48e45126a379 did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git checkout -q 8d2447a2d918f8eba5a4a01463fd48e45126a379 did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

    [notice] A new release of pip available: 22.3.1 -> 23.0.1
    [notice] To update, run: D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip

  • 帮帮孩子
    帮帮孩子 2023-03-23 12:52

    创建Conda虚拟环境 输入后一直是这样
    EnvironmentFileNotFound: ‘D:\openai.wiki\stable-diffusion-webui\environment-wsl2.yaml’ file not found

  • 大佬救命啊
    大佬救命啊 2023-03-23 14:45

    安装open_clip的时候手贱点没了然后重新打开webui-user.bat出现以下
    venv “D:\openai.wiki\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: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
    Fetching updates for Stable Diffusion…
    Checking out commit for Stable Diffusion with hash: 47b6b607fdd31875c9279cd2f4f16b92e4ea958e…
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 380, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 315, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir(‘stable-diffusion-stability-ai’), “Stable Diffusion”, stable_diffusion_commit_hash)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 164, in git_clone
    run(f'”{git}” -C “{dir}” checkout {commithash}’, f”Checking out commit for {name} with hash: {commithash}…”, f”Couldn’t checkout commit {commithash} for {name}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 113, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t checkout commit 47b6b607fdd31875c9279cd2f4f16b92e4ea958e for Stable Diffusion.
    Command: “git” -C “D:\openai.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai” checkout 47b6b607fdd31875c9279cd2f4f16b92e4ea958e
    Error code: 128
    stdout:
    stderr: fatal: reference is not a tree: 47b6b607fdd31875c9279cd2f4f16b92e4ea958e

    • PhiltreX
      PhiltreX 2023-03-23 22:11

      @大佬救命啊进入 Stable Diffusion 的仓库目录:
      cd D:\openai.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai
      列出所有 commit,找到需要切换的 commit 的 hash:
      git log --oneline
      切换到需要的 commit:
      git checkout 47b6b607fdd31875c9279cd2f4f16b92e4ea958e
      如果切换成功了,可以再尝试重新运行 webui-user.bat。如果切换不成功,可能需要联系重新git。

  • 嘟嘟噜
    嘟嘟噜 2023-03-23 15:03

    大佬,有新的错误,请帮帮我,谢谢大佬
    (base) D:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.9 | packaged by Anaconda, Inc. | (main, Mar 8 2023, 10:42:25) [MSC v.1916 64 bit (AMD64)]
    Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
    Installing requirements for Web UI
    Launching Web UI with arguments:
    No module ‘xformers’. Proceeding without it.
    Loading weights [ad2a33c361] from D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\v2-1_768-ema-pruned.ckptCreating model from config: D:\openai.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\configs\stable-diffusion\v2-inference-v.yaml
    LatentDiffusion: Running in v-prediction mode
    DiffusionWrapper has 865.91 M params.
    loading stable diffusion model: OutOfMemoryError
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\webui.py”, line 136, in initialize
    modules.sd_models.load_model()
    File “D:\openai.wiki\stable-diffusion-webui\modules\sd_models.py”, line 441, in load_model
    sd_model.to(shared.device)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\core\mixins\device_dtype_mixin.py”, line 113, in to
    return super().to(*args, **kwargs)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 989, in to
    return self._apply(convert)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
    module._apply(fn)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
    module._apply(fn)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
    module._apply(fn)
    [Previous line repeated 4 more times]
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 664, in _apply
    param_applied = fn(param)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 987, in convert
    return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
    torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 2.00 GiB total capacity; 1.66 GiB already allocated; 0 bytes free; 1.71 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

    Stable diffusion model failed to load, exiting
    请按任意键继续. . .

    • PhiltreX
      PhiltreX 2023-03-23 22:09

      @嘟嘟噜您的显存不够,应该在Bat启动文件内设置低显存模式试一下。

    • 枫林
      枫林 2023-03-31 22:36

      @PhiltreX请问怎么设置低显存模式呢

  • 帮帮孩子
    帮帮孩子 2023-03-23 16:25

    创建Conda虚拟环境
    EnvironmentFileNotFound: ‘D:\openai.wiki\stable-diffusion-webui\environment-wsl2.yaml’ file not found
    是因为我把git和Miniconda下在F盘了吗

  • Alley
    Alley 2023-03-24 01:41

    venv “C:\Users\Alley\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: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
    Traceback (most recent call last):
    File “C:\Users\Alley\stable-diffusion-webui\launch.py”, line 380, in
    prepare_environment()
    File “C:\Users\Alley\stable-diffusion-webui\launch.py”, line 315, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir(‘stable-diffusion-stability-ai’), “Stable Diffusion”, stable_diffusion_commit_hash)
    File “C:\Users\Alley\stable-diffusion-webui\launch.py”, line 159, in git_clone
    current_hash = run(f'”{git}” -C “{dir}” rev-parse HEAD’, None, f”Couldn’t determine {name}’s hash: {commithash}”).strip()
    File “C:\Users\Alley\stable-diffusion-webui\launch.py”, line 113, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t determine Stable Diffusion’s hash: 47b6b607fdd31875c9279cd2f4f16b92e4ea958e.
    Command: “git” -C “C:\Users\Alley\stable-diffusion-webui\repositories\stable-diffusion-stability-ai” rev-parse HEAD
    Error code: 128
    stdout: HEAD

    stderr: fatal: ambiguous argument ‘HEAD’: unknown revision or path not in the working tree.
    Use ‘–‘ to separate paths from revisions, like this:
    ‘git […] — […]’

    请按任意键继续. . .

    你好,请问这该怎么办呢?

    • PhiltreX
      PhiltreX 2023-03-24 16:13

      @Alley这个错误是在运行 git rev-parse HEAD 命令时出现的,可能是因为在 stable-diffusion-stability-ai 目录中没有一个有效的 Git 存储库。你可以尝试检查一下该目录是否存在,以及其中是否存在有效的 Git 存储库。

      你可以尝试在命令行中手动执行 git rev-parse HEAD 命令,看看是否能够正常运行。如果无法正常运行,那么很可能是因为存在 Git 存储库的问题。

    • Alley
      Alley 2023-03-24 20:12

      @PhiltreX感谢!我把原有的存储库删了重新拉取,果然没问题了

    • PhiltreX
      PhiltreX 2023-03-26 12:07

      @Alley不客气

  • 西红柿好吃
    西红柿好吃 2023-03-25 19:14

    Couldn’t launch python

    exit code: 9009

    双击webui-user显示以上内容,无法正常运行

    • PhiltreX
      PhiltreX 2023-03-26 12:09

      @西红柿好吃Python环境变量被破坏了,建议百度一下Python环境变量修复。
      或者通过miniconda命令行内激活conda的SD虚拟环境,然后CD到SD目录,执行webui-user.bat

  • 西红柿好吃
    西红柿好吃 2023-03-26 12:03

    您好,最后一步运行webui-user.bat时显示

    Couldn’t launch python

    exit code: 9009

    • PhiltreX
      PhiltreX 2023-03-26 12:13

      @西红柿好吃Python环境变量被破坏了,建议百度一下Python环境变量修复。
      或者通过miniconda命令行内激活conda的SD虚拟环境,然后CD到SD目录,执行webui-user.bat。

  • 救命啊
    救命啊 2023-03-26 14:02

    在执行webui-user.bat显示

    (base) D:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash:
    Installing requirements for Web UI
    Launching Web UI with arguments:
    No module ‘xformers’. Proceeding without it.
    Loading weights [a7529df023] from D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\final-pruned.ckpt
    Creating model from config: D:\openai.wiki\stable-diffusion-webui\configs\v1-inference.yaml
    LatentDiffusion: Running in eps-prediction mode
    DiffusionWrapper has 859.52 M params.
    Loading VAE weights found near the checkpoint: D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\final-pruned.vae.pt
    loading stable diffusion model: OutOfMemoryError
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\webui.py”, line 136, in initialize
    modules.sd_models.load_model()
    File “D:\openai.wiki\stable-diffusion-webui\modules\sd_models.py”, line 441, in load_model
    sd_model.to(shared.device)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\core\mixins\device_dtype_mixin.py”, line 113, in to
    return super().to(*args, **kwargs)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 989, in to
    return self._apply(convert)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
    module._apply(fn)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
    module._apply(fn)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
    module._apply(fn)
    [Previous line repeated 4 more times]
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 664, in _apply
    param_applied = fn(param)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 987, in convert
    return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
    torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 16.00 MiB (GPU 0; 2.00 GiB total capacity; 1.49 GiB already allocated; 14.65 MiB free; 1.55 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

  • 六脉
    六脉 2023-03-26 22:33

    出现这个怎么办啊 让后提醒下载 很慢很慢 不过我复制链接用别的浏览器下载好了 下载的文件又怎么弄呢?大佬!!!This program is tested with 3.10.6 Python, but you have 3.9.12.
    If you encounter an error with “RuntimeError: Couldn’t install torch.” message,
    or any other error regarding unsuccessful package (library) installation,
    please downgrade (or upgrade) to the latest version of 3.10 Python
    and delete current Python and “venv” folder in WebUI’s directory.

    You can download 3.10 Python from here: https://www.python.org/downloads/release/python-3109/

    Alternatively, use a binary release of WebUI: https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases

    Use –skip-python-version-check to suppress this warning.

    • PhiltreX
      PhiltreX 2023-03-26 22:52

      @六脉你这Python版本不太对啊 建议把venv文件夹删除了重新部署,要使用Conda,而不是直接部署,别偷懒。

  • 六脉
    六脉 2023-03-26 23:08

    大佬我删除了 然后按教程 安装好了 3.10 之后
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]
    Commit hash: 4c1ad743e3baf1246db0711aa0107debf036a12b
    Installing torch and torchvision
    D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe: No module named pip
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 351, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 253, in prepare_environment
    run(f'”{python}” -m {torch_command}’, “Installing torch and torchvision”, “Couldn’t install torch”, live=True)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 81, in run
    raise RuntimeError(f”””{errdesc or ‘Error running command’}.
    RuntimeError: Couldn’t install torch.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 –extra-index-url https://download.pytorch.org/whl/cu117
    Error code: 1

  • Cus_0
    Cus_0 2023-03-28 08:23

    最后一步一直报错。。。

    venv “C:\OpenAI.Wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 64da5c46ef0d68b9048747c2e0d46ce3495f9f29
    Fetching updates for Stable Diffusion…
    Checking out commit for Stable Diffusion with hash: 47b6b607fdd31875c9279cd2f4f16b92e4ea958e…
    Traceback (most recent call last):
    File “C:\OpenAI.Wiki\stable-diffusion-webui\launch.py”, line 351, in
    prepare_environment()
    File “C:\OpenAI.Wiki\stable-diffusion-webui\launch.py”, line 284, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir(‘stable-diffusion-stability-ai’), “Stable Diffusion”, stable_diffusion_com
    mit_hash)
    File “C:\OpenAI.Wiki\stable-diffusion-webui\launch.py”, line 148, in git_clone
    run(f'”{git}” -C “{dir}” checkout {commithash}’, f”Checking out commit for {name} with hash: {commithash}…”, f”Cou
    ldn’t checkout commit {commithash} for {name}”)
    File “C:\OpenAI.Wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t checkout commit 47b6b607fdd31875c9279cd2f4f16b92e4ea958e for Stable Diffusion.
    Command: “git” -C “C:\OpenAI.Wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai” checkout 47b6b607fd
    d31875c9279cd2f4f16b92e4ea958e
    Error code: 128
    stdout:
    stderr: fatal: reference is not a tree: 47b6b607fdd31875c9279cd2f4f16b92e4ea958e

    • PhiltreX
      PhiltreX 2023-03-28 12:55

      @Cus_0这个错误可能是因为指定的 commit hash 不存在,或者你当前的 Git 仓库不包含该 commit hash。
      建议重新拉取仓库

  • 刘毅
    刘毅 2023-03-28 11:21

    Installing collected packages: pip
    Attempting uninstall: pip
    Found existing installation: pip 22.3.1
    Uninstalling pip-22.3.1:
    Successfully uninstalled pip-22.3.1
    Successfully installed pip-23.0.1

    (D:\openai.wiki\stable-diffusion-webui\automatic) D:\openai.wiki\stable-diffusion-webui>D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip
    Requirement already satisfied: pip in d:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages (23.0.1)

    (D:\openai.wiki\stable-diffusion-webui\automatic) D:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 955df7751eef11bb7697e2d77f6b8a6226b21e13
    Installing clip
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 351, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 262, in prepare_environment
    run_pip(f”install {clip_package}”, “clip”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 129, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install clip.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1 –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1
    Cloning https://github.com/openai/CLIP.git (to revision d50d76daa670286dd6cacf3bcd80b5e4823fc8e1) to c:\users\administrator\appdata\local\temp\pip-req-build-06z4zeai
    Resolved https://github.com/openai/CLIP.git to commit d50d76daa670286dd6cacf3bcd80b5e4823fc8e1
    Preparing metadata (setup.py): started
    Preparing metadata (setup.py): finished with status ‘done’
    Collecting ftfy
    Using cached ftfy-6.1.1-py3-none-any.whl (53 kB)
    Collecting regex
    Using cached regex-2023.3.23-cp310-cp310-win_amd64.whl (267 kB)
    Requirement already satisfied: tqdm in d:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages (from clip==1.0) (4.65.0)
    Requirement already satisfied: torch in d:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages (from clip==1.0) (1.13.1+cu117)
    Requirement already satisfied: torchvision in d:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages (from clip==1.0) (0.14.1+cu117)
    Collecting wcwidth>=0.2.5
    Using cached wcwidth-0.2.6-py2.py3-none-any.whl (29 kB)
    Requirement already satisfied: typing-extensions in d:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages (from torch->clip==1.0) (4.5.0)
    Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in d:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages (from torchvision->clip==1.0) (9.4.0)
    Requirement already satisfied: numpy in d:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages (from torchvision->clip==1.0) (1.23.5)
    Requirement already satisfied: requests in d:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages (from torchvision->clip==1.0) (2.28.2)
    Requirement already satisfied: colorama in d:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages (from tqdm->clip==1.0) (0.4.6)
    Requirement already satisfied: urllib3=1.21.1 in d:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision->clip==1.0) (1.26.15)
    Requirement already satisfied: charset-normalizer=2 in d:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision->clip==1.0) (3.1.0)
    Requirement already satisfied: certifi>=2017.4.17 in d:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision->clip==1.0) (2022.12.7)
    Requirement already satisfied: idna=2.5 in d:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision->clip==1.0) (3.4)
    Building wheels for collected packages: clip
    Building wheel for clip (setup.py): started
    Building wheel for clip (setup.py): finished with status ‘done’
    Created wheel for clip: filename=clip-1.0-py3-none-any.whl size=1369454 sha256=014fb2b945e15956c32b42513aca3831c185671429e37dd45051176df8903776
    Stored in directory: c:\users\administrator\appdata\local\pip\cache\wheels\56\93\51\4bad85c7f917afc40abc2efdf783bfc4944cbb3f535c54da76
    Successfully built clip
    Installing collected packages: wcwidth, regex, ftfy, clip
    Successfully installed clip-1.0 ftfy-6.1.1 regex-2023.3.23 wcwidth-0.2.6

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/openai/CLIP.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-06z4zeai’
    Running command git rev-parse -q –verify ‘sha^d50d76daa670286dd6cacf3bcd80b5e4823fc8e1’
    Running command git fetch -q https://github.com/openai/CLIP.git d50d76daa670286dd6cacf3bcd80b5e4823fc8e1
    Running command git checkout -q d50d76daa670286dd6cacf3bcd80b5e4823fc8e1
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\runpy.py”, line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\runpy.py”, line 86, in _run_code
    exec(code, run_globals)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\pip\__main__.py”, line 31, in
    sys.exit(_main())
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\main.py”, line 70, in main
    return command.main(cmd_args)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\base_command.py”, line 100, in main
    with self.main_context():
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\contextlib.py”, line 142, in __exit__
    next(self.gen)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\command_context.py”, line 19, in main_context
    with self._main_context:
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\contextlib.py”, line 576, in __exit__
    raise exc_details[1]
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\contextlib.py”, line 153, in __exit__
    self.gen.throw(typ, value, traceback)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\utils\temp_dir.py”, line 70, in tempdir_registry
    yield _tempdir_registry
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\contextlib.py”, line 561, in __exit__
    if cb(*exc_details):
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\contextlib.py”, line 142, in __exit__
    next(self.gen)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\utils\temp_dir.py”, line 31, in global_tempdir_manager
    with ExitStack() as stack:
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\contextlib.py”, line 576, in __exit__
    raise exc_details[1]
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\contextlib.py”, line 561, in __exit__
    if cb(*exc_details):
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\utils\temp_dir.py”, line 156, in __exit__
    self.cleanup()
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\utils\temp_dir.py”, line 173, in cleanup
    rmtree(self._path)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\tenacity\__init__.py”, line 328, in wrapped_f
    return self(f, *args, **kw)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\tenacity\__init__.py”, line 408, in __call__
    do = self.iter(retry_state=retry_state)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\tenacity\__init__.py”, line 364, in iter
    raise retry_exc.reraise()
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\tenacity\__init__.py”, line 197, in reraise
    raise self.last_attempt.result()
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\concurrent\futures\_base.py”, line 451, in result
    return self.__get_result()
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\concurrent\futures\_base.py”, line 403, in __get_result
    raise self._exception
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\tenacity\__init__.py”, line 411, in __call__
    result = fn(*args, **kwargs)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\utils\misc.py”, line 129, in rmtree
    shutil.rmtree(dir, ignore_errors=ignore_errors, onerror=rmtree_errorhandler)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\shutil.py”, line 750, in rmtree
    return _rmtree_unsafe(path, onerror)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\shutil.py”, line 624, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\shutil.py”, line 622, in _rmtree_unsafe
    os.rmdir(path)
    PermissionError: [WinError 32] һʹôļ޷ʡ: ‘C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-req-build-06z4zeai’
    为什么安装到最后会报错“PermissionError: [Winerror32]”啊~试了一晚上都是这样(泪目)

  • corey
    corey 2023-03-28 19:37

    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.9 | packaged by Anaconda, Inc. | (main, Mar 1 2023, 18:18:15) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 955df7751eef11bb7697e2d77f6b8a6226b21e13
    Installing gfpgan
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 351, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 259, in prepare_environment
    run_pip(f”install {gfpgan_package}”, “gfpgan”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 129, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install gfpgan.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
    Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\corey.liu\appdata\local\temp\pip-req-build-u41lx424

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\Corey.Liu\AppData\Local\Temp\pip-req-build-u41lx424’
    error: RPC failed; curl 28 Recv failure: Connection was reset
    fatal: expected flush after ref listing
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\Corey.Liu\AppData\Local\Temp\pip-req-build-u41lx424’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\Corey.Liu\AppData\Local\Temp\pip-req-build-u41lx424’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

    [notice] A new release of pip available: 22.3.1 -> 23.0.1
    [notice] To update, run: D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip

    请按任意键继续. . .

    麻烦大神帮我看看我的问题,我已经试了好多评论的方式。。。

    • PhiltreX
      PhiltreX 2023-03-29 00:53

      @coreyInstalling gfpgan这一步出错了,其实这是非常常见的,在国内就是不太好下载这此依赖库,建议多次尝试,如果不会魔法上网,可以尝试手用手机热点。

  • Cus_0
    Cus_0 2023-03-28 20:05

    早晨提问最后一步出错。收到的回复是建议重新拉仓库。所以是要我从重新拉仓库那一步开始重做么?!我是小白。。。

    venv “C:\OpenAI.Wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 64da5c46ef0d68b9048747c2e0d46ce3495f9f29
    Fetching updates for Stable Diffusion…
    Traceback (most recent call last):
    File “C:\OpenAI.Wiki\stable-diffusion-webui\launch.py”, line 351, in
    prepare_environment()
    File “C:\OpenAI.Wiki\stable-diffusion-webui\launch.py”, line 284, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir(‘stable-diffusion-stability-ai’), “Stable Diffusion”, stable_diffusion_com
    mit_hash)
    File “C:\OpenAI.Wiki\stable-diffusion-webui\launch.py”, line 147, in git_clone
    run(f'”{git}” -C “{dir}” fetch’, f”Fetching updates for {name}…”, f”Couldn’t fetch {name}”)
    File “C:\OpenAI.Wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t fetch Stable Diffusion.
    Command: “git” -C “C:\OpenAI.Wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai” fetch
    Error code: 128
    stdout:
    stderr: fatal: unable to access ‘https://github.com/AUTOMATIC1111/stable-diffusion-webui.git/’: OpenSSL SSL_read: Connec
    tion was reset, errno 10054

    • PhiltreX
      PhiltreX 2023-03-29 00:51

      @Cus_0网络问题,无法连接到 https://github.com/AUTOMATIC1111/stable-diffusion-webui.git/ 仓库。你可以尝试检查你的网络连接,或者尝试使用以下命令手动拉取仓库:git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git然后将 stable-diffusion-webui 文件夹中的所有文件复制到你的工作目录中,以覆盖原有的文件。
      如果你还是遇到了问题,你可以尝试重新克隆整个仓库,并从头开始安装和配置。这可能会比手动修复问题更容易,并且能够确保你的环境是正确的。

  • 123
    123 2023-03-28 20:15

    (base) D:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.9 | packaged by Anaconda, Inc. | (main, Mar 1 2023, 18:18:15) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 955df7751eef11bb7697e2d77f6b8a6226b21e13
    Installing requirements for Web UI

    Launching Web UI with arguments:
    No module ‘xformers’. Proceeding without it.
    Calculating sha256 for D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\final-pruned.ckpt: a7529df02340e5b4c3870c894c1ae84f22ea7b37fd0633e5bacfad9618228032
    Loading weights [a7529df023] from D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\final-pruned.ckpt
    Creating model from config: D:\openai.wiki\stable-diffusion-webui\configs\v1-inference.yaml
    LatentDiffusion: Running in eps-prediction mode
    DiffusionWrapper has 859.52 M params.
    Applying cross attention optimization (Doggettx).
    Textual inversion embeddings loaded(0):
    Model loaded in 16.0s (calculate hash: 5.9s, load weights from disk: 3.8s, create model: 0.5s, apply weights to model: 2.0s, apply half(): 0.9s, move model to device: 1.0s, load textual inversion embeddings: 1.8s).
    到这就一直不动了什么原因呢

    • PhiltreX
      PhiltreX 2023-03-29 00:48

      @123这段信息中并没有什么报错,经测试最近的确容易产生这样的问题,建议多等待一段时间,在可以打开浏览器界面之后,点击重新载入UI,下次再运行SD,问题就可以解决了。

  • 暮色
    暮色 2023-03-28 21:43

    拉取远程仓库失败怎么办?

  • aiden
    aiden 2023-03-28 22:45

    请问在完成下载后出现以下报错该如何调整:
    (E:\ai\stable-diffusion-webui\automatic) E:\ai\stable-diffusion-webui>webui-user.bat
    fatal: not a git repository (or any of the parent directories): .git
    venv “E:\ai\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash:
    Installing requirements for Web UI
    Launching Web UI with arguments: –xformers
    Loading weights [fe4efff1e1] from E:\ai\stable-diffusion-webui\models\Stable-diffusion\Model.ckpt
    Creating model from config: E:\ai\stable-diffusion-webui\configs\v1-inference.yaml
    LatentDiffusion: Running in eps-prediction mode
    DiffusionWrapper has 859.52 M params.
    Applying xformers cross attention optimization.
    Textual inversion embeddings loaded(0):
    Model loaded in 4.9s (load weights from disk: 1.7s, create model: 0.4s, apply weights to model: 0.5s, apply half(): 0.7s, move model to device: 0.7s, load textual inversion embeddings: 0.9s).
    Traceback (most recent call last):
    File “E:\ai\stable-diffusion-webui\venv\lib\site-packages\requests\adapters.py”, line 412, in send
    conn = self.get_connection(request.url, proxies)
    File “E:\ai\stable-diffusion-webui\venv\lib\site-packages\requests\adapters.py”, line 305, in get_connection
    proxy_url = parse_url(proxy)
    File “E:\ai\stable-diffusion-webui\venv\lib\site-packages\urllib3\util\url.py”, line 397, in parse_url
    return six.raise_from(LocationParseError(source_url), None)
    File “”, line 3, in raise_from
    urllib3.exceptions.LocationParseError: Failed to parse: http://127.0.0.1:7890

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “E:\ai\stable-diffusion-webui\launch.py”, line 352, in
    start()
    File “E:\ai\stable-diffusion-webui\launch.py”, line 347, in start
    webui.webui()
    File “E:\ai\stable-diffusion-webui\webui.py”, line 257, in webui
    app, local_url, share_url = shared.demo.launch(
    File “E:\ai\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py”, line 1483, in launch
    requests.get(f”{self.local_url}startup-events”)
    File “E:\ai\stable-diffusion-webui\venv\lib\site-packages\requests\api.py”, line 76, in get
    return request(‘get’, url, params=params, **kwargs)
    File “E:\ai\stable-diffusion-webui\venv\lib\site-packages\requests\api.py”, line 61, in request
    return session.request(method=method, url=url, **kwargs)
    File “E:\ai\stable-diffusion-webui\venv\lib\site-packages\requests\sessions.py”, line 542, in request
    resp = self.send(prep, **send_kwargs)
    File “E:\ai\stable-diffusion-webui\venv\lib\site-packages\requests\sessions.py”, line 655, in send
    r = adapter.send(request, **kwargs)
    File “E:\ai\stable-diffusion-webui\venv\lib\site-packages\requests\adapters.py”, line 414, in send
    raise InvalidURL(e, request=request)
    requests.exceptions.InvalidURL: Failed to parse: http://127.0.0.1:7890
    请按任意键继续. . .

    • PhiltreX
      PhiltreX 2023-03-29 00:44

      @aiden根据错误消息,你的命令行工作目录可能不在 Git 仓库中,所以 Git 执行 git rev-parse HEAD 命令时出现了 fatal: not a git repository (or any of the parent directories): .git 错误。你可以在命令行中切换到仓库目录,或者在启动脚本中指定 Git 仓库的路径。

  • 暮色
    暮色 2023-03-29 00:40

    最后运行中出现这个是什么原因?
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 955df7751eef11bb7697e2d77f6b8a6226b21e13
    Fetching updates for Taming Transformers…
    Checking out commit for Taming Transformers with hash: 24268930bf1dce879235a7fddd0b2355b84d7ea6…
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 351, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 285, in prepare_environment
    git_clone(taming_transformers_repo, repo_dir(‘taming-transformers’), “Taming Transformers”, taming_transformers_commit_hash)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 148, in git_clone
    run(f'”{git}” -C “{dir}” checkout {commithash}’, f”Checking out commit for {name} with hash: {commithash}…”, f”Couldn’t checkout commit {commithash} for {name}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t checkout commit 24268930bf1dce879235a7fddd0b2355b84d7ea6 for Taming Transformers.
    Command: “git” -C “D:\openai.wiki\stable-diffusion-webui\repositories\taming-transformers” checkout 24268930bf1dce879235a7fddd0b2355b84d7ea6
    Error code: 128
    stdout:
    stderr: fatal: reference is not a tree: 24268930bf1dce879235a7fddd0b2355b84d7ea6

    • PhiltreX
      PhiltreX 2023-03-29 00:43

      @暮色Git仓库的哈希值验证错误,可以尝试使用git fetch修复一下,如果还是不行的话重新拉取。

  • 暮色
    暮色 2023-03-29 00:48

    我在切换目录后输入了后续指令这样是否正确
    (D:\openai.wiki\stable-diffusion-webui\automatic) D:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 955df7751eef11bb7697e2d77f6b8a6226b21e13
    Fetching updates for Taming Transformers…
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 351, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 285, in prepare_environment
    git_clone(taming_transformers_repo, repo_dir(‘taming-transformers’), “Taming Transformers”, taming_transformers_commit_hash)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 147, in git_clone
    run(f'”{git}” -C “{dir}” fetch’, f”Fetching updates for {name}…”, f”Couldn’t fetch {name}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t fetch Taming Transformers.
    Command: “git” -C “D:\openai.wiki\stable-diffusion-webui\repositories\taming-transformers” fetch
    Error code: 128
    stdout:
    stderr: fatal: unable to access ‘https://github.com/AUTOMATIC1111/stable-diffusion-webui.git/’: OpenSSL SSL_read: Connection was reset, errno 10054

    • PhiltreX
      PhiltreX 2023-03-29 00:54

      @暮色不是很正确,因为报错提示是无法访问https://github.com/AUTOMATIC1111/stable-diffusion-webui.git/,而您切换的是D:\openai.wiki\stable-diffusion-webui目录。建议您先切换到D:\openai.wiki目录下,然后再重新运行stable-diffusion-webui安装的步骤。这样做有可能解决这个错误。

  • 暮色
    暮色 2023-03-29 00:54

    全局魔法指的是通过魔法再跑一边吗?

  • 暮色
    暮色 2023-03-29 01:00

    还有一个问题就是ai模组没有移入是否会影响依赖问题?

    • PhiltreX
      PhiltreX 2023-03-29 01:02

      @暮色关于AI模组的定义太模糊了,你是指AI的依赖库?还是AI模型?AI插件?最好可以告诉我全称

  • 暮色
    暮色 2023-03-29 01:03

    现在是通过魔法上网最后的结果
    (D:\openai.wiki\stable-diffusion-webui\automatic) C:\Users\86173>cd /d D:\openai.wiki\stable-diffusion-webui

    (D:\openai.wiki\stable-diffusion-webui\automatic) D:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 955df7751eef11bb7697e2d77f6b8a6226b21e13
    Fetching updates for Taming Transformers…
    Checking out commit for Taming Transformers with hash: 24268930bf1dce879235a7fddd0b2355b84d7ea6…
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 351, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 285, in prepare_environment
    git_clone(taming_transformers_repo, repo_dir(‘taming-transformers’), “Taming Transformers”, taming_transformers_commit_hash)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 148, in git_clone
    run(f'”{git}” -C “{dir}” checkout {commithash}’, f”Checking out commit for {name} with hash: {commithash}…”, f”Couldn’t checkout commit {commithash} for {name}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t checkout commit 24268930bf1dce879235a7fddd0b2355b84d7ea6 for Taming Transformers.
    Command: “git” -C “D:\openai.wiki\stable-diffusion-webui\repositories\taming-transformers” checkout 24268930bf1dce879235a7fddd0b2355b84d7ea6
    Error code: 128
    stdout:
    stderr: fatal: reference is not a tree: 24268930bf1dce879235a7fddd0b2355b84d7ea6是否正确?

    • PhiltreX
      PhiltreX 2023-03-29 01:07

      @暮色从您提供的信息来看,出现了 fatal: reference is not a tree 的错误,这通常是由于 Git 中存储的引用(commit hash)已经过期或不存在导致的。在这种情况下,您需要检查仓库的提交历史记录,并找到确切的提交哈希,以确保它仍然存在于仓库中。

      可以尝试在命令行中手动执行 git checkout 命令,并查看是否会出现同样的错误。如果是,则表明提交哈希无效或不存在。如果不是,则可能是代码仓库克隆的问题。

  • 暮色
    暮色 2023-03-29 01:06

    是模型并未安装上去

    • PhiltreX
      PhiltreX 2023-03-29 01:08

      @暮色未安装任何基础模型时,将会自动拉取SDv1.5的官方模型。

  • 暮色
    暮色 2023-03-29 01:14

    C:\Users\86173>git checkout
    此时不应有 <
    这个表明因该是不存在吧?如果是的话,需要重新跑一边git,还是需要先卸载再跑一边?

  • Cus_0
    Cus_0 2023-03-29 08:23

    第三次重新安装,有点不明白cmd输入weiui-use.bat安装到底什么时候算结束?
    之前都是到installing open_clip
    这次显示继续clone … (所以之前我的C:\OpenAI.Wiki\stable-diffusion-webui\repositories都是空的,所以最后一步没反应)但是,请问weiui-use.bat安装到底什么时候算结束?
    请问weiui-use.bat安装到底什么时候算结束?
    请问weiui-use.bat安装到底什么时候算结束?!!!!

    (base) C:\OpenAI.Wiki\stable-diffusion-webui>webui-user.bat
    venv “C:\OpenAI.Wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 955df7751eef11bb7697e2d77f6b8a6226b21e13
    Installing clip
    Installing open_clip
    Cloning Stable Diffusion into C:\OpenAI.Wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai…
    Cloning Taming Transformers into C:\OpenAI.Wiki\stable-diffusion-webui\repositories\taming-transformers…
    Cloning K-diffusion into C:\OpenAI.Wiki\stable-diffusion-webui\repositories\k-diffusion…
    Cloning CodeFormer into C:\OpenAI.Wiki\stable-diffusion-webui\repositories\CodeFormer…
    Traceback (most recent call last):
    File “C:\OpenAI.Wiki\stable-diffusion-webui\launch.py”, line 351, in
    prepare_environment()
    File “C:\OpenAI.Wiki\stable-diffusion-webui\launch.py”, line 287, in prepare_environment
    git_clone(codeformer_repo, repo_dir(‘CodeFormer’), “CodeFormer”, codeformer_commit_hash)
    File “C:\OpenAI.Wiki\stable-diffusion-webui\launch.py”, line 151, in git_clone
    run(f'”{git}” clone “{url}” “{dir}”‘, f”Cloning {name} into {dir}…”, f”Couldn’t clone {name}”)
    File “C:\OpenAI.Wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t clone CodeFormer.
    Command: “git” clone “https://github.com/sczhou/CodeFormer.git” “C:\OpenAI.Wiki\stable-diffusion-webui\repositories\Code
    Former”
    Error code: 128
    stdout:
    stderr: Cloning into ‘C:\OpenAI.Wiki\stable-diffusion-webui\repositories\CodeFormer’…

  • Cus_0
    Cus_0 2023-03-29 08:43

    请忽略前面的内容,已安装成功!!!问题就是出现在cmd输入weiui-use.bat这步,还没结束就关了。。多谢分享!!!

  • 暮色
    暮色 2023-03-29 13:17

    全局魔法还是这样

    (D:\openai.wiki\stable-diffusion-webui\automatic) D:\openai.wiki\stable-diffusion-webui>webui-user.bat
    Creating venv in directory D:\openai.wiki\stable-diffusion-webui\venv using python “D:\openai.wiki\stable-diffusion-webui\automatic\python.exe”
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 3856ada5cc9ac4124e20ff311ce7aa77330845d9
    Installing torch and torchvision
    Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117
    Collecting torch==1.13.1+cu117
    Using cached https://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp310-cp310-win_amd64.whl (2255.4 MB)
    Collecting torchvision==0.14.1+cu117
    Using cached https://download.pytorch.org/whl/cu117/torchvision-0.14.1%2Bcu117-cp310-cp310-win_amd64.whl (4.8 MB)
    Collecting typing-extensions
    Using cached typing_extensions-4.5.0-py3-none-any.whl (27 kB)
    Collecting pillow!=8.3.*,>=5.3.0
    Using cached Pillow-9.4.0-cp310-cp310-win_amd64.whl (2.5 MB)
    Collecting requests
    Using cached requests-2.28.2-py3-none-any.whl (62 kB)
    Collecting numpy
    Using cached numpy-1.24.2-cp310-cp310-win_amd64.whl (14.8 MB)
    Collecting certifi>=2017.4.17
    Using cached https://download.pytorch.org/whl/certifi-2022.12.7-py3-none-any.whl (155 kB)
    Collecting idna=2.5
    Using cached https://download.pytorch.org/whl/idna-3.4-py3-none-any.whl (61 kB)
    Collecting charset-normalizer=2
    Using cached charset_normalizer-3.1.0-cp310-cp310-win_amd64.whl (97 kB)
    Collecting urllib3=1.21.1
    Using cached urllib3-1.26.15-py2.py3-none-any.whl (140 kB)
    Installing collected packages: urllib3, typing-extensions, pillow, numpy, idna, charset-normalizer, certifi, torch, requests, torchvision
    Successfully installed certifi-2022.12.7 charset-normalizer-3.1.0 idna-3.4 numpy-1.24.2 pillow-9.4.0 requests-2.28.2 torch-1.13.1+cu117 torchvision-0.14.1+cu117 typing-extensions-4.5.0 urllib3-1.26.15

    [notice] A new release of pip available: 22.3.1 -> 23.0.1
    [notice] To update, run: D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip
    Installing gfpgan
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 263, in prepare_environment
    run_pip(f”install {gfpgan_package}”, “gfpgan”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 129, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install gfpgan.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
    Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\86173\appdata\local\temp\pip-req-build-cit2s4rn

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\86173\AppData\Local\Temp\pip-req-build-cit2s4rn’
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Recv failure: Connection was reset
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\86173\AppData\Local\Temp\pip-req-build-cit2s4rn’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\86173\AppData\Local\Temp\pip-req-build-cit2s4rn’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

    [notice] A new release of pip available: 22.3.1 -> 23.0.1
    [notice] To update, run: D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip

    • PhiltreX
      PhiltreX 2023-03-29 15:23

      @暮色仍然是网络问题,推荐查看Clash部分的内容,本站不传授魔法上网的相关教程。

  • 暮色
    暮色 2023-03-29 13:44

    将版本更新导23.0.1之后说不是pip的问题需要怎么解决?
    (D:\openai.wiki\stable-diffusion-webui\automatic) D:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 3856ada5cc9ac4124e20ff311ce7aa77330845d9
    Installing gfpgan
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 263, in prepare_environment
    run_pip(f”install {gfpgan_package}”, “gfpgan”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 129, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install gfpgan.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
    Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\86173\appdata\local\temp\pip-req-build-we2fsewx

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\86173\AppData\Local\Temp\pip-req-build-we2fsewx’
    Running command git rev-parse -q –verify ‘sha^8d2447a2d918f8eba5a4a01463fd48e45126a379’
    Running command git fetch -q https://github.com/TencentARC/GFPGAN.git 8d2447a2d918f8eba5a4a01463fd48e45126a379
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Recv failure: Connection was reset
    error: subprocess-exited-with-error

    git fetch -q https://github.com/TencentARC/GFPGAN.git 8d2447a2d918f8eba5a4a01463fd48e45126a379 did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git fetch -q https://github.com/TencentARC/GFPGAN.git 8d2447a2d918f8eba5a4a01463fd48e45126a379 did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

    [notice] A new release of pip available: 22.3.1 -> 23.0.1
    [notice] To update, run: D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip

    请按任意键继续. . .

    (D:\openai.wiki\stable-diffusion-webui\automatic) D:\openai.wiki\stable-diffusion-webui>
    (D:\openai.wiki\stable-diffusion-webui\automatic) D:\openai.wiki\stable-diffusion-webui>D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip
    Requirement already satisfied: pip in d:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages (22.3.1)
    Collecting pip
    Using cached pip-23.0.1-py3-none-any.whl (2.1 MB)
    Installing collected packages: pip
    Attempting uninstall: pip
    Found existing installation: pip 22.3.1
    Uninstalling pip-22.3.1:
    Successfully uninstalled pip-22.3.1
    Successfully installed pip-23.0.1

    (D:\openai.wiki\stable-diffusion-webui\automatic) D:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 3856ada5cc9ac4124e20ff311ce7aa77330845d9
    Installing gfpgan
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 263, in prepare_environment
    run_pip(f”install {gfpgan_package}”, “gfpgan”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 129, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install gfpgan.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
    Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\86173\appdata\local\temp\pip-req-build-k4p65wv5

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\86173\AppData\Local\Temp\pip-req-build-k4p65wv5’
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Recv failure: Connection was reset
    fatal: could not fetch fa702eeacff13fe8475b0e102a8b8c37602f3963 from promisor remote
    warning: Clone succeeded, but checkout failed.
    You can inspect what was checked out with ‘git status’
    and retry with ‘git restore –source=HEAD :/’

    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\86173\AppData\Local\Temp\pip-req-build-k4p65wv5’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\86173\AppData\Local\Temp\pip-req-build-k4p65wv5’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

  • 暮色
    暮色 2023-03-29 15:46

    其他依赖安装一直不对,需要怎么解决

  • 暮色
    暮色 2023-03-29 16:04

    这个还是魔法的问题吗?(D:\openai.wiki\stable-diffusion-webui\automatic) D:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash:
    Installing requirements for Web UI
    Launching Web UI with arguments:
    No module ‘xformers’. Proceeding without it.
    Loading weights [6ce0161689] from D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
    Creating model from config: D:\openai.wiki\stable-diffusion-webui\configs\v1-inference.yaml
    LatentDiffusion: Running in eps-prediction mode
    DiffusionWrapper has 859.52 M params.
    loading stable diffusion model: OutOfMemoryError
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\webui.py”, line 139, in initialize
    modules.sd_models.load_model()
    File “D:\openai.wiki\stable-diffusion-webui\modules\sd_models.py”, line 449, in load_model
    sd_model.to(shared.device)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\lightning_fabric\utilities\device_dtype_mixin.py”, line 54, in to
    return super().to(*args, **kwargs)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 989, in to
    return self._apply(convert)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
    module._apply(fn)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
    module._apply(fn)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
    module._apply(fn)
    [Previous line repeated 4 more times]
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 664, in _apply
    param_applied = fn(param)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 987, in convert
    return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
    torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 2.00 GiB total capacity; 1.54 GiB already allocated; 6.10 MiB free; 1.60 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

    Stable diffusion model failed to load, exiting

    • PhiltreX
      PhiltreX 2023-03-29 20:21

      @暮色CUDA out of memory 错误,这通常是因为尝试分配的内存超过了 GPU 可用内存的限制,这次好像是显存爆了。

  • 飞仔
    飞仔 2023-03-29 20:28

    (D:\openai.wiki\stable-diffusion-webui\automatic) D:\openai.wiki\stable-diffusion-webui>webui-user.bat
    Creating venv in directory D:\openai.wiki\stable-diffusion-webui\venv using python “D:\openai.wiki\stable-diffusion-webui\automatic\python.exe”
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash:
    Installing torch and torchvision
    Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117
    Collecting torch==1.13.1+cu117
    Downloading https://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp310-cp310-win_amd64.whl (2255.4 MB)
    —————————————- 2.3/2.3 GB 1.0 MB/s eta 0:00:00
    Collecting torchvision==0.14.1+cu117
    Downloading https://download.pytorch.org/whl/cu117/torchvision-0.14.1%2Bcu117-cp310-cp310-win_amd64.whl (4.8 MB)
    —————————————- 4.8/4.8 MB 8.1 MB/s eta 0:00:00
    Collecting typing-extensions
    Downloading typing_extensions-4.5.0-py3-none-any.whl (27 kB)
    Collecting numpy
    Downloading numpy-1.24.2-cp310-cp310-win_amd64.whl (14.8 MB)
    —————————————- 14.8/14.8 MB 13.6 MB/s eta 0:00:00
    Collecting requests
    Downloading requests-2.28.2-py3-none-any.whl (62 kB)
    —————————————- 62.8/62.8 kB 1.7 MB/s eta 0:00:00
    Collecting pillow!=8.3.*,>=5.3.0
    Downloading Pillow-9.4.0-cp310-cp310-win_amd64.whl (2.5 MB)
    —————————————- 2.5/2.5 MB 19.7 MB/s eta 0:00:00
    Collecting charset-normalizer=2
    Downloading charset_normalizer-3.1.0-cp310-cp310-win_amd64.whl (97 kB)
    —————————————- 97.1/97.1 kB 5.8 MB/s eta 0:00:00
    Collecting idna=2.5
    Downloading https://download.pytorch.org/whl/idna-3.4-py3-none-any.whl (61 kB)
    —————————————- 61.5/61.5 kB 3.2 MB/s eta 0:00:00
    Collecting urllib3=1.21.1
    Downloading urllib3-1.26.15-py2.py3-none-any.whl (140 kB)
    —————————————- 140.9/140.9 kB 8.7 MB/s eta 0:00:00
    Collecting certifi>=2017.4.17
    Downloading https://download.pytorch.org/whl/certifi-2022.12.7-py3-none-any.whl (155 kB)
    —————————————- 155.3/155.3 kB 9.1 MB/s eta 0:00:00
    Installing collected packages: urllib3, typing-extensions, pillow, numpy, idna, charset-normalizer, certifi, torch, requests, torchvision
    Successfully installed certifi-2022.12.7 charset-normalizer-3.1.0 idna-3.4 numpy-1.24.2 pillow-9.4.0 requests-2.28.2 torch-1.13.1+cu117 torchvision-0.14.1+cu117 typing-extensions-4.5.0 urllib3-1.26.15

    [notice] A new release of pip available: 22.3.1 -> 23.0.1
    [notice] To update, run: D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip
    Installing gfpgan
    Installing clip
    Installing open_clip
    Cloning Stable Diffusion into D:\openai.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai…
    Cloning Taming Transformers into D:\openai.wiki\stable-diffusion-webui\repositories\taming-transformers…
    Cloning K-diffusion into D:\openai.wiki\stable-diffusion-webui\repositories\k-diffusion…
    Cloning CodeFormer into D:\openai.wiki\stable-diffusion-webui\repositories\CodeFormer…
    Cloning BLIP into D:\openai.wiki\stable-diffusion-webui\repositories\BLIP…
    Installing requirements for CodeFormer
    Installing requirements for Web UI
    Launching Web UI with arguments:
    No module ‘xformers’. Proceeding without it.
    Downloading: “https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors” to D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors

    100%|█████████████████████████████████████████████████████████████████████████████| 3.97G/3.97G [05:34<00:00, 12.7MB/s]
    Calculating sha256 for D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors: 6ce0161689b3853acaa03779ec93eafe75a02f4ced659bee03f50797806fa2fa
    Loading weights [6ce0161689] from D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
    Creating model from config: D:\openai.wiki\stable-diffusion-webui\configs\v1-inference.yaml
    LatentDiffusion: Running in eps-prediction mode
    DiffusionWrapper has 859.52 M params.
    Downloading (…)olve/main/vocab.json: 100%|███████████████████████████████████████████| 961k/961k [00:01<00:00, 862kB/s]
    Downloading (…)olve/main/merges.txt: 100%|███████████████████████████████████████████| 525k/525k [00:00<00:00, 548kB/s]
    Downloading (…)cial_tokens_map.json: 100%|█████████████████████████████████████████████| 389/389 [00:00<00:00, 282kB/s]
    Downloading (…)okenizer_config.json: 100%|█████████████████████████████████████████████| 905/905 [00:00<00:00, 900kB/s]
    Downloading (…)lve/main/config.json: 100%|████████████████████████████████████████| 4.52k/4.52k [00:00> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

    Stable diffusion model failed to load, exiting

    大佬,空了请帮忙看看是什么问题,这是下载模型前的步骤。我现在文件里只有webui.user,没有-bat

    • PhiltreX
      PhiltreX 2023-03-29 20:35

      @飞仔看起来你的代码有以下问题:
      1.安装了不匹配的PyTorch版本:您正在使用Python 3.10.10,但安装的PyTorch版本是1.13.1+cu117,它似乎不匹配。建议使用支持Python 3.10的PyTorch版本。
      2.CUDA内存不足:在加载模型时出现了CUDA out of memory错误,是不是显卡不太好啊,建议增加低显存模式参数。

  • 潘
    2023-03-29 22:35

    这个报错怎么解决,安装依赖的
    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: metadata-generation-failed

    × Encountered error while generating package metadata.
    ╰─> See above for output.

    note: This is an issue with the package mentioned above, not pip.
    hint: See above for details.

    • PhiltreX
      PhiltreX 2023-03-30 01:24

      @潘可能是因为pip没更新,可以尝试pip install --upgrade pip

  • 潘
    2023-03-30 02:24

    到了运行这一步,没有这个选项webui-user.bat,只有不带bat后缀的怎么办

    • PhiltreX
      PhiltreX 2023-03-30 13:22

      @潘不带后缀也没有关系,那只是你的系统没有打开显示后缀的功能而已,直接双击运行即可。

  • 好人咚咚
    好人咚咚 2023-03-30 09:05

    (G:\openai.wiki\stable-diffusion-webui\automatic) G:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “G:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    ==============================================================================================================
    INCOMPATIBLE PYTHON VERSION

    This program is tested with 3.10.6 Python, but you have 3.9.12.
    If you encounter an error with “RuntimeError: Couldn’t install torch.” message,
    or any other error regarding unsuccessful package (library) installation,
    please downgrade (or upgrade) to the latest version of 3.10 Python
    and delete current Python and “venv” folder in WebUI’s directory.

    You can download 3.10 Python from here: https://www.python.org/downloads/release/python-3109/

    Alternatively, use a binary release of WebUI: https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases

    Use –skip-python-version-check to suppress this warning.
    ==============================================================================================================
    Python 3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Installing open_clip
    Traceback (most recent call last):
    File “G:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “G:\openai.wiki\stable-diffusion-webui\launch.py”, line 269, in prepare_environment
    run_pip(f”install {openclip_package}”, “open_clip”)
    File “G:\openai.wiki\stable-diffusion-webui\launch.py”, line 129, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “G:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install open_clip.
    Command: “G:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/mlfoundations/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/mlfoundations/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b
    Cloning https://github.com/mlfoundations/open_clip.git (to revision bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b) to c:\users\75718\appdata\local\temp\pip-req-build-ag1obkhg

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/mlfoundations/open_clip.git ‘C:\Users\75718\AppData\Local\Temp\pip-req-build-ag1obkhg’
    fatal: unable to access ‘https://github.com/mlfoundations/open_clip.git/’: Recv failure: Connection was reset
    fatal: could not fetch c7314f628364953cf84836c57d192ba6108bf224 from promisor remote
    warning: Clone succeeded, but checkout failed.
    You can inspect what was checked out with ‘git status’
    and retry with ‘git restore –source=HEAD :/’

    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/mlfoundations/open_clip.git ‘C:\Users\75718\AppData\Local\Temp\pip-req-build-ag1obkhg’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/mlfoundations/open_clip.git ‘C:\Users\75718\AppData\Local\Temp\pip-req-build-ag1obkhg’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    WARNING: You are using pip version 22.0.4; however, version 23.0.1 is available.
    You should consider upgrading via the ‘G:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip’ command.

    请按任意键继续. . .

    出现这个这个问题怎么解?

    • PhiltreX
      PhiltreX 2023-03-30 13:22

      @好人咚咚Installing open_clip
      这一步没有安装成功,这是网络问题,建议百度一下CMD内使用代理

  • 深蓝
    深蓝 2023-03-30 11:44

    运行中出现黑色的CMD窗口,里面为Couldn’t launch python

    exit code: 9009
    这个该怎么修复

  • 深蓝
    深蓝 2023-03-30 11:45

    运行中后出现黑色的CMD窗口,里面为Couldn’t launch python

    exit code: 9009
    这个该怎么修复

    • PhiltreX
      PhiltreX 2023-03-30 13:18

      @深蓝系统没有找到Python环境变量,建议修复一下环境变量的问题,如果懒的修复,也可以使用miniconda的prompt窗口先来激活conda的虚拟环境,然后再CD到SD目录,然后运行webui-user.bat

  • 多云时阴
    多云时阴 2023-03-30 12:15

    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash:
    Installing requirements for Web UI
    Launching Web UI with arguments:
    No module ‘xformers’. Proceeding without it.
    Loading weights [cc6cb27103] from D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.ckpt
    Creating model from config: D:\openai.wiki\stable-diffusion-webui\configs\v1-inference.yaml
    LatentDiffusion: Running in eps-prediction mode
    DiffusionWrapper has 859.52 M params.
    Applying cross attention optimization (Doggettx).
    Textual inversion embeddings loaded(0):
    Model loaded in 4.5s (load weights from disk: 1.3s, create model: 0.4s, apply weights to model: 0.5s, apply half(): 0.7s, move model to device: 0.7s, load textual inversion embeddings: 0.9s).
    Running on local URL: http://127.0.0.1:7861

    大佬好,在安装以后运行webui-user.bat的时候出现一下,安装过程中弹过error但是自己重试安装成功了,之后运行网址都没有反应,就是空白的,请您帮忙看看什么原因呢?
    To create a public link, set `share=True` in `launch()`.
    Startup time: 10.4s (import torch: 1.4s, import gradio: 1.0s, import ldm: 0.5s, other imports: 1.0s, setup codeformer: 0.2s, load scripts: 1.0s, load SD checkpoint: 4.8s, create ui: 0.4s, gradio launch: 0.1s).

    • PhiltreX
      PhiltreX 2023-03-30 13:14

      @多云时阴正常来说 给出的应该是7860,而你的是http://127.0.0.1:7861,那代表你可能在CMD中开启了代理,或者其它应用占用了7860端口号,建议排查一下端口号的问题。

  • 多云时阴
    多云时阴 2023-03-30 12:47

    UP主你好。请教一下安装过程的问题,看似是顺利结束的,中间报错但是未停止,请问这个报错需要处理吗?后续运行网页是空白,我暂时还没能找到是哪里的原因
    (D:\openai.wiki\stable-diffusion-webui\automatic) C:\Users\bb.shang>cd /d D:\openai.wiki\stable-diffusion-webui

    (D:\openai.wiki\stable-diffusion-webui\automatic) D:\openai.wiki\stable-diffusion-webui>webui-user.bat
    Creating venv in directory D:\openai.wiki\stable-diffusion-webui\venv using python “D:\openai.wiki\stable-diffusion-webui\automatic\python.exe”
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash:
    Installing torch and torchvision
    Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117
    WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, TimeoutError(‘_ssl.c:980: The handshake operation timed out’))’: /whl/cu117/torch/
    WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, TimeoutError(‘_ssl.c:980: The handshake operation timed out’))’: /whl/cu117/torch/
    Collecting torch==1.13.1+cu117
    Downloading https://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp310-cp310-win_amd64.whl (2255.4 MB)
    —————————————- 2.3/2.3 GB 655.8 kB/s eta 0:00:00
    Collecting torchvision==0.14.1+cu117
    Downloading https://download.pytorch.org/whl/cu117/torchvision-0.14.1%2Bcu117-cp310-cp310-win_amd64.whl (4.8 MB)
    —————————————- 4.8/4.8 MB 8.1 MB/s eta 0:00:00
    Collecting typing-extensions
    Downloading typing_extensions-4.5.0-py3-none-any.whl (27 kB)
    Collecting pillow!=8.3.*,>=5.3.0
    Downloading Pillow-9.4.0-cp310-cp310-win_amd64.whl (2.5 MB)
    —————————————- 2.5/2.5 MB 7.9 MB/s eta 0:00:00
    Collecting numpy
    Downloading numpy-1.24.2-cp310-cp310-win_amd64.whl (14.8 MB)
    —————————————- 14.8/14.8 MB 13.4 MB/s eta 0:00:00
    Collecting requests
    Downloading requests-2.28.2-py3-none-any.whl (62 kB)
    —————————————- 62.8/62.8 kB ? eta 0:00:00
    Collecting idna=2.5
    Downloading https://download.pytorch.org/whl/idna-3.4-py3-none-any.whl (61 kB)
    —————————————- 61.5/61.5 kB ? eta 0:00:00
    Collecting certifi>=2017.4.17
    Downloading https://download.pytorch.org/whl/certifi-2022.12.7-py3-none-any.whl (155 kB)
    —————————————- 155.3/155.3 kB ? eta 0:00:00
    Collecting urllib3=1.21.1
    Downloading urllib3-1.26.15-py2.py3-none-any.whl (140 kB)
    —————————————- 140.9/140.9 kB 8.2 MB/s eta 0:00:00
    Collecting charset-normalizer=2
    Downloading charset_normalizer-3.1.0-cp310-cp310-win_amd64.whl (97 kB)
    —————————————- 97.1/97.1 kB 5.4 MB/s eta 0:00:00
    Installing collected packages: urllib3, typing-extensions, pillow, numpy, idna, charset-normalizer, certifi, torch, requests, torchvision
    Successfully installed certifi-2022.12.7 charset-normalizer-3.1.0 idna-3.4 numpy-1.24.2 pillow-9.4.0 requests-2.28.2 torch-1.13.1+cu117 torchvision-0.14.1+cu117 typing-extensions-4.5.0 urllib3-1.26.15
    WARNING: There was an error checking the latest version of pip.
    Installing gfpgan
    Installing clip
    Installing open_clip
    Cloning Stable Diffusion into D:\openai.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai…
    Cloning Taming Transformers into D:\openai.wiki\stable-diffusion-webui\repositories\taming-transformers…
    Cloning K-diffusion into D:\openai.wiki\stable-diffusion-webui\repositories\k-diffusion…
    Cloning CodeFormer into D:\openai.wiki\stable-diffusion-webui\repositories\CodeFormer…
    Cloning BLIP into D:\openai.wiki\stable-diffusion-webui\repositories\BLIP…
    Installing requirements for CodeFormer
    Installing requirements for Web UI
    Launching Web UI with arguments:
    No module ‘xformers’. Proceeding without it.
    Downloading: “https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors” to D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors

    100%|██████████████████████████████████████████████████████████████████████████████████████████████████████| 3.97G/3.97G [07:58<00:00, 8.91MB/s]
    Calculating sha256 for D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors: 6ce0161689b3853acaa03779ec93eafe75a02f4ced659bee03f50797806fa2fa
    Loading weights [6ce0161689] from D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
    Creating model from config: D:\openai.wiki\stable-diffusion-webui\configs\v1-inference.yaml
    LatentDiffusion: Running in eps-prediction mode
    DiffusionWrapper has 859.52 M params.
    Downloading (…)olve/main/vocab.json: 100%|█████████████████████████████████████████████████████████████████████████████████████████████| 961k/961k [00:01<00:00, 578kB/s]Downloading (…)olve/main/merges.txt: 100%|█████████████████████████████████████████████████████████████████████████████████████████████| 525k/525k [00:01<00:00, 423kB/s]Downloading (…)cial_tokens_map.json: 100%|███████████████████████████████████████████████████████████████████████████████████████████████| 389/389 [00:00<00:00, 397kB/s]Downloading (…)okenizer_config.json: 100%|███████████████████████████████████████████████████████████████████████████████████████████████| 905/905 [00:00<00:00, 893kB/s]Downloading (…)lve/main/config.json: 100%|██████████████████████████████████████████████████████████████████████████████████████████| 4.52k/4.52k [00:00<00:00, 1.25MB/s]Applying cross attention optimization (Doggettx).
    Textual inversion embeddings loaded(0):
    Model loaded in 38.0s (calculate hash: 9.1s, load weights from disk: 0.2s, create model: 25.5s, apply weights to model: 0.8s, apply half(): 0.7s, move model to device: 0.7s, load textual inversion embeddings: 1.0s).
    Running on local URL: http://127.0.0.1:7860

    To create a public link, set `share=True` in `launch()`.
    Startup time: 534.6s (import torch: 1.5s, import gradio: 4.7s, import ldm: 0.5s, other imports: 1.9s, list SD models: 485.4s, setup codeformer: 0.3s, list builtin upscalers: 0.1s, load scripts: 1.4s, load SD checkpoint: 38.2s, create ui: 0.4s, gradio launch: 0.1s).

    • PhiltreX
      PhiltreX 2023-03-30 13:12

      @多云时阴根据输出的信息看起来,安装过程中出现了一些警告,但似乎并没有导致安装终止。
      打开的网页正确吗?完整的网页需要加端口号http://127.0.0.1:7860

    • 多云时阴
      多云时阴 2023-03-31 12:20

      @PhiltreX更换浏览器以后,打开的网页就正确了,GOOGLE 浏览器无法打开

    • 多云时阴
      多云时阴 2023-03-31 12:21

      @PhiltreX已经正常使用了,感谢大佬回复

  • 多云时阴
    多云时阴 2023-03-30 13:20

    大佬,没有问题了!我换了个浏览器就好了!谢谢大佬!

  • 六脉
    六脉 2023-03-30 20:49

    (D:\openai.wiki\stable-diffusion-webui\automatic) D:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Installing gfpgan
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 263, in prepare_environment
    run_pip(f”install {gfpgan_package}”, “gfpgan”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 129, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install gfpgan.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
    Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\administrator\appdata\local\temp\pip-req-build-l9jjg2hs

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-l9jjg2hs’
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: OpenSSL SSL_connect: Connection was reset in connection to github.com:443
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-l9jjg2hs’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-l9jjg2hs’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

    [notice] A new release of pip available: 22.3.1 -> 23.0.1
    [notice] To update, run: D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip
    这个什么问题啊大佬

    • PhiltreX
      PhiltreX 2023-03-30 22:25

      @六脉帮你把无关的部分删除了,你的主要是pip试图从GitHub上克隆GFPGAN的代码时遇到了连接问题,导致安装失败。这是由于国内的网络连接问题。

      建议百度一下CMD魔法上网

  • 初学
    初学 2023-03-30 21:52

    您好,我第一次接触这类东西,我的错误日志,我也翻看了评论区,我的问题好像是pip更新,但是你说直接复制,我也不知道怎么复制,错误日志发在这里了,能帮我看看嘛,感谢!
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Installing clip
    Installing open_clip
    Traceback (most recent call last):
    File “E:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “E:\openai.wiki\stable-diffusion-webui\launch.py”, line 269, in prepare_environment
    run_pip(f”install {openclip_package}”, “open_clip”)
    File “E:\openai.wiki\stable-diffusion-webui\launch.py”, line 129, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “E:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install open_clip.
    Command: “E:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/mlfoundations/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/mlfoundations/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b
    Cloning https://github.com/mlfoundations/open_clip.git (to revision bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b) to c:\users\administrator\appdata\local\temp\pip-req-build-g5r23sf9

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/mlfoundations/open_clip.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-g5r23sf9’
    fatal: unable to access ‘https://github.com/mlfoundations/open_clip.git/’: Recv failure: Connection was reset
    fatal: could not fetch c7314f628364953cf84836c57d192ba6108bf224 from promisor remote
    warning: Clone succeeded, but checkout failed.
    You can inspect what was checked out with ‘git status’
    and retry with ‘git restore –source=HEAD :/’

    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/mlfoundations/open_clip.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-g5r23sf9’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/mlfoundations/open_clip.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-g5r23sf9’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

    [notice] A new release of pip available: 22.3.1 -> 23.0.1
    [notice] To update, run: E:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip

    请按任意键继续. . .

    (E:\openai.wiki\stable-diffusion-webui\automatic) E:\openai.wiki\stable-diffusion-webui>upgrade pip
    ‘upgrade’ 不是内部或外部命令,也不是可运行的程序
    或批处理文件。

    (E:\openai.wiki\stable-diffusion-webui\automatic) E:\openai.wiki\stable-diffusion-webui>

    • PhiltreX
      PhiltreX 2023-03-30 22:20

      @初学Installing open_clip
      是这一步安装open_clip的时候报错啦,前面的都没有问题了,建议多尝试运行几次webui-user.bat,有概率安装成功。
      如果还是不行,建议参考一下全局魔法上网哈。

    • 初学
      初学 2023-04-04 14:12

      @PhiltreX谢谢大佬,我重复试了好几次,全局也不行,我怀疑我我的tz不太行,今天起床一看,GPT也被拒了,进不去了,人麻了,但是其他的wai网都能正常使用

    • PhiltreX
      PhiltreX 2023-04-04 15:59

      @初学也未必是TZ不行,你也可以百度一下CMD全局魔法。
      关于GPT的问题是整个亚洲都这样,如果是从我们这里买的话,可以退款。

    • 初学
      初学 2023-04-08 17:38

      @PhiltreX站长,我换了一台电脑重新下载,结果安装依赖说pip有问题,然后我就把pip换成了pip3 install,能够继续运行一段,然后又报错了,日志是这样的
      Collecting onnxruntime
      Downloading onnxruntime-1.14.1-cp310-cp310-win_amd64.whl (6.5 MB)
      —————– ———————- 2.8/6.5 MB 7.5 kB/s eta 0:08:16
      ERROR: Exception:
      Traceback (most recent call last):
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\urllib3\response.py”, line 435, in _error_catcher
      yield
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\urllib3\response.py”, line 516, in read
      data = self._fp.read(amt) if not fp_closed else b””
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py”, line 90, in read
      data = self.__fp.read(amt)
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\http\client.py”, line 465, in read
      s = self.fp.read(amt)
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\socket.py”, line 705, in readinto
      return self._sock.recv_into(b)
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\ssl.py”, line 1274, in recv_into
      return self.read(nbytes, buffer)
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\ssl.py”, line 1130, in read
      return self._sslobj.read(len, buffer)
      TimeoutError: The read operation timed out

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\cli\base_command.py”, line 167, in exc_logging_wrapper
      status = run_func(*args)
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\cli\req_command.py”, line 247, in wrapper
      return func(self, options, args)
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\commands\install.py”, line 369, in run
      requirement_set = resolver.resolve(
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py”, line 92, in resolve
      result = self._result = resolver.resolve(
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 481, in resolve
      state = resolution.resolve(requirements, max_rounds=max_rounds)
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 373, in resolve
      failure_causes = self._attempt_to_pin_criterion(name)
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 213, in _attempt_to_pin_criterion
      criteria = self._get_updated_criteria(candidate)
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 204, in _get_updated_criteria
      self._add_to_criteria(criteria, requirement, parent=candidate)
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 172, in _add_to_criteria
      if not criterion.candidates:
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\resolvelib\structs.py”, line 151, in __bool__
      return bool(self._sequence)
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 155, in __bool__
      return any(self)
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 143, in
      return (c for c in iterator if id(c) not in self._incompatible_ids)
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 47, in _iter_built
      candidate = func()
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py”, line 206, in _make_candidate_from_link
      self._link_candidate_cache[link] = LinkCandidate(
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 297, in __init__
      super().__init__(
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 162, in __init__
      self.dist = self._prepare()
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 231, in _prepare
      dist = self._prepare_distribution()
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 308, in _prepare_distribution
      return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\operations\prepare.py”, line 438, in prepare_linked_requirement
      return self._prepare_linked_requirement(req, parallel_builds)
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\operations\prepare.py”, line 483, in _prepare_linked_requirement
      local_file = unpack_url(
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\operations\prepare.py”, line 165, in unpack_url
      file = get_http_url(
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\operations\prepare.py”, line 106, in get_http_url
      from_path, content_type = download(link, temp_dir.path)
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\network\download.py”, line 147, in __call__
      for chunk in chunks:
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\cli\progress_bars.py”, line 53, in _rich_progress_bar
      for chunk in iterable:
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\network\utils.py”, line 63, in response_chunks
      for chunk in response.raw.stream(
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\urllib3\response.py”, line 573, in stream
      data = self.read(amt=amt, decode_content=decode_content)
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\urllib3\response.py”, line 509, in read
      with self._error_catcher():
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\contextlib.py”, line 153, in __exit__
      self.gen.throw(typ, value, traceback)
      File “E:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\urllib3\response.py”, line 440, in _error_catcher
      raise ReadTimeoutError(self._pool, None, “Read timed out.”)
      pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=’files.pythonhosted.org’, port=443): Read timed out.

    • PhiltreX
      PhiltreX 2023-04-08 17:47

      @初学这就是网络错误造成的,多试几次可能就成了。也可以手动尝试下载onnxruntime-1.14.1-cp310-cp310-win_amd64.whl,然后在已激活的conda环境内通过pip instal onnxruntime-1.14.1-cp310-cp310-win_amd64.whl,可能会解决。

  • 寒
    2023-03-31 16:13

    您好,按照您的步骤进行到安装额外的依赖支持,出现了错误代码。
    我人在国外,可以直连下载,我重新试过两次从头开始,最后都是这样,特地向您请教该如何处理,十分感谢您的慷慨。
    (D:\openai.wiki\stable-diffusion-webui\automatic) D:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Cloning Taming Transformers into D:\openai.wiki\stable-diffusion-webui\repositories\taming-transformers…
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 289, in prepare_environment
    git_clone(taming_transformers_repo, repo_dir(‘taming-transformers’), “Taming Transformers”, taming_transformers_commit_hash)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 151, in git_clone
    run(f'”{git}” clone “{url}” “{dir}”‘, f”Cloning {name} into {dir}…”, f”Couldn’t clone {name}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t clone Taming Transformers.
    Command: “git” clone “https://github.com/CompVis/taming-transformers.git” “D:\openai.wiki\stable-diffusion-webui\repositories\taming-transformers”
    Error code: 128
    stdout:
    stderr: Cloning into ‘D:\openai.wiki\stable-diffusion-webui\repositories\taming-transformers’…
    error: RPC failed; curl 56 Recv failure: Connection was reset
    error: 1652 bytes of body are still expected
    fetch-pack: unexpected disconnect while reading sideband packet
    fatal: early EOF
    fatal: fetch-pack: invalid index-pack output
    请按任意键继续

  • 寒
    2023-03-31 16:18

    您好,按照您的步骤进行到额外的依赖安装,出现了错误代码,希望能得到您的解答,十分感谢。(D:\openai.wiki\stable-diffusion-webui\automatic) D:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Cloning Taming Transformers into D:\openai.wiki\stable-diffusion-webui\repositories\taming-transformers…
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 289, in prepare_environment
    git_clone(taming_transformers_repo, repo_dir(‘taming-transformers’), “Taming Transformers”, taming_transformers_commit_hash)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 151, in git_clone
    run(f'”{git}” clone “{url}” “{dir}”‘, f”Cloning {name} into {dir}…”, f”Couldn’t clone {name}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t clone Taming Transformers.
    Command: “git” clone “https://github.com/CompVis/taming-transformers.git” “D:\openai.wiki\stable-diffusion-webui\repositories\taming-transformers”
    Error code: 128
    stdout:
    stderr: Cloning into ‘D:\openai.wiki\stable-diffusion-webui\repositories\taming-transformers’…
    error: RPC failed; curl 56 Recv failure: Connection was reset
    error: 1652 bytes of body are still expected
    fetch-pack: unexpected disconnect while reading sideband packet
    fatal: early EOF
    fatal: fetch-pack: invalid index-pack output

    • PhiltreX
      PhiltreX 2023-03-31 22:38

      @寒Taming Transformers 代码库没克隆成功,多运行几次webui-user.bat 脚本试试

  • 小小白
    小小白 2023-03-31 21:20

    Intel显卡玩儿这个没戏了吗?哭

  • 枫林
    枫林 2023-03-31 23:15

    大佬,请问怎么在Bat启动文件内设置低显存模式呢

    • PhiltreX
      PhiltreX 2023-04-01 12:07

      @枫林在stable-diffusion-webui文件夹下找到webui-user.bat,其内容如下:

      @echo off
      set PYTHON=
      set GIT=
      set VENV_DIR=
      set COMMANDLINE_ARGS=
      call webui.bat

      在上述文件中的“set COMMANDLINE_ARGS=”后根据自己显卡的显存选择下面的参数填入

      4G显存:–precision full –no-half –lowvram –always-batch-cond-uncond

      6G显存:–precision full –no-half –medvram

      低于5G显存:–medvram

      低于3G显存:–lowvram –always-batch-cond-uncond

      例如:我想使用4G显存,那么我修改后的内容如下。
      @echo off
      set PYTHON=
      set GIT=
      set VENV_DIR=
      set COMMANDLINE_ARGS=--precision full --no-half --lowvram --always-batch-cond-uncond
      call webui.bat

    • 枫林
      枫林 2023-04-01 20:05

      @PhiltreX谢谢大佬

  • leng
    leng 2023-04-01 19:09

    ERROR: Could not find a version that satisfies the requirement opencv-contrib-python (from versions: none)
    ERROR: No matching distribution found for opencv-contrib-python
    请问一直有这个报错是什么问题呢,谢谢

  • yi
    yi 2023-04-01 23:49

    错误信息CondaHTTPError: HTTP 000 CONNECTION FAILED for url
    Elapsed: –

    An HTTP error occurred when trying to retrieve this URL.
    HTTP errors are often intermittent, and a simple retry will get you on your way. 配置文件夹的时候,因为网络问题,无法下载这个文件,通过其他办法下载后,应该怎么放置解压这个文件呢

  • zhou
    zhou 2023-04-02 18:20

    我已经把pip版本升级为了23,但还是报错,也开启了魔法

    Python 3.10.10 (main, Mar 21 2023, 18:45:11) [GCC 11.2.0]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Installing clip
    Traceback (most recent call last):
    File “/home/teslav/openai.wiki/stable-diffusion-webui/launch.py”, line 355, in
    prepare_environment()
    File “/home/teslav/openai.wiki/stable-diffusion-webui/launch.py”, line 266, in prepare_environment
    run_pip(f”install {clip_package}”, “clip”)
    File “/home/teslav/openai.wiki/stable-diffusion-webui/launch.py”, line 129, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “/home/teslav/openai.wiki/stable-diffusion-webui/launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install clip.
    Command: “/home/teslav/openai.wiki/stable-diffusion-webui/venv/bin/python3” -m pip install git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1 –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1
    Cloning https://github.com/openai/CLIP.git (to revision d50d76daa670286dd6cacf3bcd80b5e4823fc8e1) to /tmp/pip-req-build-ju1v_zfq

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/openai/CLIP.git /tmp/pip-req-build-ju1v_zfq
    fatal: 无法访问 ‘https://github.com/openai/CLIP.git/’:GnuTLS recv error (-110): The TLS connection was non-properly terminated.
    warning: 克隆成功,但是检出失败。
    您可以通过 ‘git status’ 检查哪些已被检出,然后使用命令
    ‘git restore –source=HEAD :/’ 重试

    error: subprocess-exited-with-error

    × git clone –filter=blob:none –quiet https://github.com/openai/CLIP.git /tmp/pip-req-build-ju1v_zfq did not run successfully.
    │ exit code: 128
    ╰─> See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    × git clone –filter=blob:none –quiet https://github.com/openai/CLIP.git /tmp/pip-req-build-ju1v_zfq did not run successfully.
    │ exit code: 128
    ╰─> See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

    [notice] A new release of pip available: 22.3.1 -> 23.0.1
    [notice] To update, run: pip install –upgrade pip

    • zhou
      zhou 2023-04-02 18:23

      @zhou感觉是网络的问题,我可以上个git,但不能上谷歌……

    • PhiltreX
      PhiltreX 2023-04-02 22:21

      @zhou不用怀疑,这就是网络问题。

  • 元朗
    元朗 2023-04-03 04:35

    大哥救助
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Installing clip
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 266, in prepare_environment
    run_pip(f”install {clip_package}”, “clip”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 129, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install clip.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1 –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1
    Cloning https://github.com/openai/CLIP.git (to revision d50d76daa670286dd6cacf3bcd80b5e4823fc8e1) to c:\users\zhenhong\appdata\local\temp\pip-req-build-dtcnxdco

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/openai/CLIP.git ‘C:\Users\ZhenHong\AppData\Local\Temp\pip-req-build-dtcnxdco’
    fatal: unable to access ‘https://github.com/openai/CLIP.git/’: Failed to connect to github.com port 443 after 21093 ms: Couldn’t connect to server
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/openai/CLIP.git ‘C:\Users\ZhenHong\AppData\Local\Temp\pip-req-build-dtcnxdco’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/openai/CLIP.git ‘C:\Users\ZhenHong\AppData\Local\Temp\pip-req-build-dtcnxdco’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

    [notice] A new release of pip available: 22.3.1 -> 23.0.1
    [notice] To update, run: D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip

    • PhiltreX
      PhiltreX 2023-04-03 11:54

      @元朗也是网络的问题,用手机流量热点试一下吧。

  • 阿月
    阿月 2023-04-03 17:20

    你的电脑必须是英伟达(NVIDIA)显卡。打开驱动程序一看是:Intel Corporation。就是说我的电脑不满足下载条件是吗?

    • PhiltreX
      PhiltreX 2023-04-03 19:33

      @阿月驱动程序并不一定能证明什么,最好是打开电脑的设备管理器,看一下显示设备是不是RTX或者Nv开头的,如果是的话,那就应该是英伟达。

  • 好好好
    好好好 2023-04-03 22:07

    最后这步“至此,本地化部署stable-diffusion-webui安装完成,可以打开浏览器输入地址http://127.0.0.1:7860,尽情拥抱Stable-Diffusion的魅力吧。”的网络地址打不开怎么办

    • PhiltreX
      PhiltreX 2023-04-04 01:50

      @好好好那你在CMD窗口内能够正常看到http://127.0.0.1:7860这一行被成功显示出来吗?

  • 怎么解决呀大佬
    怎么解决呀大佬 2023-04-03 23:39

    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Installing gfpgan
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 263, in prepare_environment
    run_pip(f”install {gfpgan_package}”, “gfpgan”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 129, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install gfpgan.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
    Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\xianm\appdata\local\temp\pip-req-build-dn4e4ff1

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\Xianm\AppData\Local\Temp\pip-req-build-dn4e4ff1’
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Recv failure: Connection was reset
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\Xianm\AppData\Local\Temp\pip-req-build-dn4e4ff1’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\Xianm\AppData\Local\Temp\pip-req-build-dn4e4ff1’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

    [notice] A new release of pip available: 22.3.1 -> 23.0.1
    [notice] To update, run: D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip

    请按任意键继续. . .

    • PhiltreX
      PhiltreX 2023-04-04 01:51

      @怎么解决呀大佬Installing gfpgan
      这是gfpgan没安装成功,可以手动尝试在Conda环境内pip install gfpgan安装能否成功。

  • 昵称必须填
    昵称必须填 2023-04-04 09:27

    请问大佬,这是什么情况呀,正常网络和魔法上网都显示这个
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Installing clip
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 266, in prepare_environment
    run_pip(f”install {clip_package}”, “clip”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 129, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install clip.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1 –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1
    Cloning https://github.com/openai/CLIP.git (to revision d50d76daa670286dd6cacf3bcd80b5e4823fc8e1) to c:\users\admin\appdata\local\temp\pip-req-build-qzyntnre

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/openai/CLIP.git ‘C:\Users\admin\AppData\Local\Temp\pip-req-build-qzyntnre’
    fatal: unable to access ‘https://github.com/openai/CLIP.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
    fatal: could not fetch 570a54198bb0d012a585c3999d5281c07cd339e9 from promisor remote
    warning: Clone succeeded, but checkout failed.
    You can inspect what was checked out with ‘git status’
    and retry with ‘git restore –source=HEAD :/’

    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/openai/CLIP.git ‘C:\Users\admin\AppData\Local\Temp\pip-req-build-qzyntnre’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/openai/CLIP.git ‘C:\Users\admin\AppData\Local\Temp\pip-req-build-qzyntnre’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

    [notice] A new release of pip available: 22.3.1 -> 23.0.1
    [notice] To update, run: D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip

  • Roy G
    Roy G 2023-04-05 06:40

    按照一步一步来,花了10个小时安装成功了。
    系统:Windows10。主要时间就是花在魔术上网下载各种程序、模型上面了。比较耗时间。
    说明材料系统完整,适合AI小白入手去干事情。

    • Roy G
      Roy G 2023-04-05 06:41

      @Roy G我个人的情况是有20年的网络经验,信息安全经验,以及10年的区块链经验。

    • PhiltreX
      PhiltreX 2023-04-05 11:50

      @Roy G谢谢认可,但是关于魔法上网这方面的事,我也实在不太好描述,毕竟想做一个正规站,害怕被办。

  • ChinaAlanZhan
    ChinaAlanZhan 2023-04-06 13:08

    我出现的时这个问题(D:\openai.wiki\stable-diffusion-webui\automatic) D:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    D:\openai.wiki\stable-diffusion-webui\automatic\python.exe: can’t open file ‘D:\\openai.wiki\\stable-diffusion-webui\\launch.py’: [Errno 2] No such file or directory
    请按任意键继续. . .
    翻了好久没看到同类问题,是环境出问题了吗?………救命。。。

    • PhiltreX
      PhiltreX 2023-04-07 00:14

      @ChinaAlanZhan你好像已经成功的进入到了Conda已激活的环境,但是在D:\openai.wiki\stable-diffusion-webui目录内没有launch.py这个文件,应该是SD没Git完整?或者你更改了目录吗?

  • 477
    477 2023-04-06 18:10

    站长您好,我下载到最后一步,遇到了一个报错,想请您帮忙看一下。
    Installing requirements for Web UI
    Launching Web UI with arguments:
    No module ‘xformers’. Proceeding without it.
    Loading weights [7234b76e42] from D:\openai.wiki\stable-diffusion-webui-master\models\Stable-diffusion\chilloutmix_Ni.safetensors

    • PhiltreX
      PhiltreX 2023-04-07 00:08

      @477这不是报错,新版SD就是不支持Xformers的,不影响使用。

  • 昵称必须填
    昵称必须填 2023-04-08 17:35

    老大,这是怎么回事呀?venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Installing clip
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 266, in prepare_environment
    run_pip(f”install {clip_package}”, “clip”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 129, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install clip.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1 –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1
    Cloning https://github.com/openai/CLIP.git (to revision d50d76daa670286dd6cacf3bcd80b5e4823fc8e1) to c:\users\admin\appdata\local\temp\pip-req-build-u99nnaoo

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/openai/CLIP.git ‘C:\Users\admin\AppData\Local\Temp\pip-req-build-u99nnaoo’
    fatal: unable to access ‘https://github.com/openai/CLIP.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
    fatal: could not fetch 570a54198bb0d012a585c3999d5281c07cd339e9 from promisor remote
    warning: Clone succeeded, but checkout failed.
    You can inspect what was checked out with ‘git status’
    and retry with ‘git restore –source=HEAD :/’

    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/openai/CLIP.git ‘C:\Users\admin\AppData\Local\Temp\pip-req-build-u99nnaoo’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/openai/CLIP.git ‘C:\Users\admin\AppData\Local\Temp\pip-req-build-u99nnaoo’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

    • PhiltreX
      PhiltreX 2023-04-08 17:48

      @昵称必须填clip库没安装上,重新多试几次可能就成功了。
      其实就是网络问题,可以尝试网上搜一下关于CMD魔法上网的问题。

    • 昵称必须填
      昵称必须填 2023-04-12 17:19

      @PhiltreX魔法上网下也是不行,换了很多节点了,也都是提示这个信息

    • COQAQ
      COQAQ 2023-04-11 20:39

      @昵称必须填兄弟,解决了吗

  • Color
    Color 2023-04-08 20:21

    你好我的这个怎么解决

    (base) tianjihuideMBP:stable-diffusion-webui color$ ./webui.sh

    ################################################################
    Install script for stable-diffusion + Web UI
    Tested on Debian 11 (Bullseye)
    ################################################################

    ################################################################
    Running on color user
    ################################################################

    ################################################################
    Repo already cloned, using it as install directory
    ################################################################

    ################################################################
    Create and activate python venv
    ################################################################

    ################################################################
    Launching launch.py…
    ################################################################
    Python 3.10.10 (v3.10.10:aad5f6a891, Feb 7 2023, 08:47:40) [Clang 13.0.0 (clang-1300.0.29.30)]
    Commit hash:
    Traceback (most recent call last):
    File “/Users/color/stable-diffusion-webui/launch.py”, line 378, in
    prepare_environment()
    File “/Users/color/stable-diffusion-webui/launch.py”, line 315, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir(‘stable-diffusion-stability-ai’), “Stable Diffusion”,
    File “/Users/color/stable-diffusion-webui/launch.py”, line 152, in git_clone
    current_hash = run(f'”{git}” -C “{dir}” rev-parse HEAD’, None,
    File “/Users/color/stable-diffusion-webui/launch.py”, line 105, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t determine Stable Diffusion’s hash: 47b6b607fdd31875c9279cd2f4f16b92e4ea958e.
    Command: “git” -C “repositories/stable-diffusion-stability-ai” rev-parse HEAD
    Error code: 128
    stdout: HEAD

    stderr: fatal: ambiguous argument ‘HEAD’: unknown revision or path not in the working tree.
    Use ‘–‘ to separate paths from revisions, like this:
    ‘git […] — […]’

    (base) tianjihuideMBP:stable-diffusion-webui color$

    • PhiltreX
      PhiltreX 2023-04-09 00:32

      @Color这个错误提示是由于在获取Stable Diffusion的哈希值时出现了问题,可以强制从Git获取覆盖本地已有文件。
      git fetch --all
      git reset --hard origin/master

  • 66
    66 2023-04-08 23:46

    安装好久了还没好哈哈哈一直报错等我解决一下给各位踩个雷

  • 方晓翎
    方晓翎 2023-04-09 15:38

    安装到最后显示这样的错误,麻烦作者可以看看问题在哪里吗?

    Loading VAE weights found near the checkpoint: C:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\final-pruned.vae.pt
    loading stable diffusion model: OutOfMemoryError
    Traceback (most recent call last):
    File “C:\openai.wiki\stable-diffusion-webui\webui.py”, line 139, in initialize
    modules.sd_models.load_model()
    File “C:\openai.wiki\stable-diffusion-webui\modules\sd_models.py”, line 449, in load_model
    sd_model.to(shared.device)
    File “C:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\lightning_fabric\utilities\device_dtype_mixin.py”, line 54, in to
    return super().to(*args, **kwargs)
    File “C:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 989, in to
    return self._apply(convert)
    File “C:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
    module._apply(fn)
    File “C:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
    module._apply(fn)
    File “C:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
    module._apply(fn)
    [Previous line repeated 2 more times]
    File “C:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 664, in _apply
    param_applied = fn(param)
    File “C:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 987, in convert
    return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
    torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 2.00 GiB total capacity; 1.68 GiB already allocated; 0 bytes free; 1.72 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

    • PhiltreX
      PhiltreX 2023-04-09 15:49

      @方晓翎你的VAE模型有问题,可以尝试删除C:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\final-pruned.vae.pt这个文件试一下,能不能能够正常运行。

    • 方晓翎
      方晓翎 2023-04-10 16:27

      @PhiltreX好的,我再试试,谢谢你的回复。

    • 方晓翎
      方晓翎 2023-04-15 10:28

      @PhiltreX作者你好,我删了这个文件再运行后,报这样的错。可以麻烦你再看看吗?
      我的显卡是mx350,能否达到运行软件的最低要求?

      venv “C:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
      Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
      Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
      Installing requirements for Web UI
      Launching Web UI with arguments:
      No module ‘xformers’. Proceeding without it.
      Loading weights [a7529df023] from C:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\final-pruned.ckpt
      Creating model from config: C:\openai.wiki\stable-diffusion-webui\configs\v1-inference.yaml
      LatentDiffusion: Running in eps-prediction mode
      DiffusionWrapper has 859.52 M params.
      loading stable diffusion model: OutOfMemoryError
      Traceback (most recent call last):
      File “C:\openai.wiki\stable-diffusion-webui\webui.py”, line 139, in initialize
      modules.sd_models.load_model()
      File “C:\openai.wiki\stable-diffusion-webui\modules\sd_models.py”, line 449, in load_model
      sd_model.to(shared.device)
      File “C:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\lightning_fabric\utilities\device_dtype_mixin.py”, line 54, in to
      return super().to(*args, **kwargs)
      File “C:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 989, in to
      return self._apply(convert)
      File “C:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
      module._apply(fn)
      File “C:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
      module._apply(fn)
      File “C:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
      module._apply(fn)
      [Previous line repeated 2 more times]
      File “C:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 664, in _apply
      param_applied = fn(param)
      File “C:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 987, in convert
      return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
      torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 2.00 GiB total capacity; 1.68 GiB already allocated; 0 bytes free; 1.72 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

    • PhiltreX
      PhiltreX 2023-04-16 12:03

      @方晓翎这显卡CUDA不足,需要的最小显存也应该在4GB左右才可以哈。

    • 方晓翎
      方晓翎 2023-04-21 11:31

      @PhiltreX好的,谢谢。
      也许你可以将这个限制更新到文档中呢。

    • PhiltreX
      PhiltreX 2023-04-21 11:38

      @方晓翎好的,不客气,之前写的太笼统了,最近在写非常全面化的零基础使用教程,将会在这两天更新。

  • CC dog
    CC dog 2023-04-09 15:44

    您好站长,感谢您的教程与资源,部署成功后使用了一段时间后,WebUI开始报错Expecting value: line 1 column 1 (char 0),任何操作都无法执行,这个是Python环境出问题了吗?请问该如何解决呢?

    • PhiltreX
      PhiltreX 2023-04-09 15:48

      @CC dog可能是Python找不到系统变量了,你可以打开CMD窗口之后输入Python,看看系统能否正常启动Python,如果找不到Python的话,可以搜索一下Python环境变量修复的办法。
      如果不想修复也能够正常使用,可以通过miniconda的终端内执行conda activate 你的环境名称或路径,然后CD到你的SD根目录之后执行webui-user.bat即可。

    • CC dog
      CC dog 2023-04-09 18:46

      @PhiltreX已经通过修复环境变量recover了,非常感谢您的帮助!

    • PhiltreX
      PhiltreX 2023-04-09 22:23

      @CC dog不客气哈

    • CC dog
      CC dog 2023-04-23 00:09

      @PhiltreX打扰了站长,想升级一下torch2.0和xformers结果给干崩了哈哈…恳求您的再次帮助!
      Traceback (most recent call last):
      File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
      prepare_environment()
      File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 260, 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 “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 121, in run_python
      return run(f'”{python}” -c “{code}”‘, desc, errdesc)
      File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
      raise RuntimeError(message)
      RuntimeError: Error running command.
      Command: “D:\openai.wiki\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:
      stderr: Traceback (most recent call last):
      File “”, line 1, in
      File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\__init__.py”, line 122, in
      raise err
      OSError: [WinError 127] Ҳָij Error loading “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\lib\torch_cuda_cpp.dll” or one of its dependencies.

    • CC dog
      CC dog 2023-04-23 00:33

      @CC dog前面我看了看以为是没装好cuda的原因,后来装上之后还是同样的报错,这就整不会了,不知道环境出了什么问题,运行bat显示是3.10.10,但我用CMD去python是3.10.9.不知道是不是这个原因…
      venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
      Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
      Commit hash: 22bcc7be428c94e9408f589966c2040187245d81

    • PhiltreX
      PhiltreX 2023-04-23 01:20

      @CC dog你好的这一部分没有报错内容

    • PhiltreX
      PhiltreX 2023-04-23 01:16

      @CC dog并不是所有的组件越新越好,每个库的版本都是需要与SD官方项目所对应的,除特殊需要之外,非常不建议更新。你现在可以尝试在已激活的conda环境内执行pip uninstall torch命令卸载当前的版本,然后重新安装ymal文件安装,将会自动重新安装之前的版本torch。

  • 十一
    十一 2023-04-12 16:36

    你好,请问提示错误代码1是什么意思

    • 十一
      十一 2023-04-12 16:37

      @十一以下是错误代码
      Installing gfpgan
      Traceback (most recent call last):
      File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
      prepare_environment()
      File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 263, in prepare_environment
      run_pip(f”install {gfpgan_package}”, “gfpgan”)
      File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 129, in run_pip
      return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
      File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
      raise RuntimeError(message)
      RuntimeError: Couldn’t install gfpgan.
      Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 –prefer-binary
      Error code: 1
      stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
      Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\administrator\appdata\local\temp\pip-req-build-eyn2zqr5

      stderr: Running command git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-eyn2zqr5’
      fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Recv failure: Connection was reset
      error: subprocess-exited-with-error

      git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-eyn2zqr5’ did not run successfully.
      exit code: 128

      See above for output.

      note: This error originates from a subprocess, and is likely not a problem with pip.
      error: subprocess-exited-with-error

      git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\Administrator\AppData\Local\Temp\pip-req-build-eyn2zqr5’ did not run successfully.
      exit code: 128

      See above for output.

      note: This error originates from a subprocess, and is likely not a problem with pip.

      [notice] A new release of pip available: 22.3.1 -> 23.0.1
      [notice] To update, run: D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip

    • PhiltreX
      PhiltreX 2023-04-12 16:53

      @十一无法安装gfpgan,可以考虑在环境内使用D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 --prefer-binary -i https://pypi.tuna.tsinghua.edu.cn/simple/
      进行安装,或者搜一下CMD魔法上网。

  • 十一
    十一 2023-04-12 17:11

    你好,能否远程帮助我操作一下,安装gfpgan

  • cc
    cc 2023-04-12 22:19

    大佬问一下,在最后一步运行webui-user.bat后,我也开启了全局代理
    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: metadata-generation-failed

    Encountered error while generating package metadata.

    See above for output.

    note: This is an issue with the package mentioned above, not pip.
    hint: See above for details.

    • PhiltreX
      PhiltreX 2023-04-12 22:38

      @cc元数据包有问题,建议清理一下缓存试试。
      pip cache purge

  • cc
    cc 2023-04-13 09:15

    佬再问问,缓存清了又出现这个问题了,如下:
    venv “D:\software\stdi\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Installing gfpgan
    Traceback (most recent call last):
    File “D:\software\stdi\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “D:\software\stdi\stable-diffusion-webui\launch.py”, line 263, in prepare_environment
    run_pip(f”install {gfpgan_package}”, “gfpgan”)
    File “D:\software\stdi\stable-diffusion-webui\launch.py”, line 129, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “D:\software\stdi\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install gfpgan.
    Command: “D:\software\stdi\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
    Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\luo\appdata\local\temp\pip-req-build-xyes6u47

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\Luo\AppData\Local\Temp\pip-req-build-xyes6u47’
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
    error: unable to read sha1 file of .github/workflows/no-response.yml (fa702eeacff13fe8475b0e102a8b8c37602f3963)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21093 ms: Timed out
    error: unable to read sha1 file of .github/workflows/publish-pip.yml (71190fbe05ad319b35b0fb79632b2866eed8a938)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21111 ms: Timed out
    error: unable to read sha1 file of .github/workflows/release.yml (1b8f35f1f4bd794065c814d463bc5d76d6d94e06)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
    error: unable to read sha1 file of .pre-commit-config.yaml (d221d29fbaac74bef1c0cd910ce8d8b6526181b8)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21107 ms: Timed out
    error: unable to read sha1 file of FAQ.md (e4d5a49cc216ffe987c7ab195a430f463f375425)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21078 ms: Timed out
    error: unable to read sha1 file of PaperModel.md (e9c8bdc4e757a9818f18d1926b7452172486ec92)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
    error: unable to read sha1 file of cog.yaml (f22d2c79b3ddd3ccf16799f66fc06eeb48e05a42)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21041 ms: Timed out
    error: unable to read sha1 file of experiments/pretrained_models/README.md (3401a5ca9b393e0033f58c5af8905961565826d9)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21097 ms: Timed out
    error: unable to read sha1 file of gfpgan/__init__.py (94daaeebce5604d61999f0b1b354b9a9e299b991)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21078 ms: Timed out
    error: unable to read sha1 file of gfpgan/archs/__init__.py (bec5f17bfa38729b55f57cae8e40c27310db2b7b)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21062 ms: Timed out
    error: unable to read sha1 file of gfpgan/archs/gfpganv1_arch.py (eaf316200b386bc6aa7a8829655828f71893473b)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
    error: unable to read sha1 file of gfpgan/archs/restoreformer_arch.py (66cdff3e542061c27d6fdc3d32b8bb28011d95d6)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21111 ms: Timed out
    error: unable to read sha1 file of gfpgan/archs/stylegan2_bilinear_arch.py (1342ee3c9a6b8f742fb76ce7d5b907cd39fbc350)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21078 ms: Timed out
    error: unable to read sha1 file of gfpgan/archs/stylegan2_clean_arch.py (9e2ee94e50401b95e4c9997adef5581d521d725f)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21088 ms: Timed out
    error: unable to read sha1 file of gfpgan/data/__init__.py (69fd9f9026407c4d185f86b122000485b06fd986)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21071 ms: Timed out
    error: unable to read sha1 file of gfpgan/data/ffhq_degradation_dataset.py (64e5755e1211f171cb2a883d47e8d253061f90aa)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21082 ms: Timed out
    error: unable to read sha1 file of gfpgan/models/__init__.py (6afad57a3794b867dabbdb617a16355a24d6a8b3)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21057 ms: Timed out
    error: unable to read sha1 file of gfpgan/models/gfpgan_model.py (b5fb8c953b1ef67b457f56492ad3291d6e5f126d)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21056 ms: Timed out
    error: unable to read sha1 file of gfpgan/train.py (fe5f1f909ae15a8d830ef65dcb43436d4f4ee7ae)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21062 ms: Timed out
    error: unable to read sha1 file of gfpgan/utils.py (74ee5a83ce5319c83dfd7de8ade27093c3f77a02)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
    error: unable to read sha1 file of inputs/whole_imgs/10045.png (72032fb46f0fa222ce4c6cc357b7af6da08c7da6)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
    error: unable to read sha1 file of inputs/whole_imgs/Blake_Lively.jpg (bc986be513a314377c605be98b02080eeb56a2a2)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
    error: unable to read sha1 file of requirements.txt (4f46d2598897361af301cddb381f6dab3526c09f)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
    error: unable to read sha1 file of scripts/convert_gfpganv_to_clean.py (8fdccb6195c29e78cec2ac8dcc6f9ccb604e35ca)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21095 ms: Timed out
    error: unable to read sha1 file of scripts/parse_landmark.py (74e2ff9e130ad4f2395c9666dca3ba78526d7a8a)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
    error: unable to read sha1 file of setup.cfg (3d90d600476f24315855b73c777bd7571f42f954)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21061 ms: Timed out
    error: unable to read sha1 file of setup.py (474e9188aa2dc5c19614921760ce4ad99bd19c13)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21074 ms: Timed out
    error: unable to read sha1 file of tests/data/ffhq_gt.lmdb/data.mdb (823e0a9dae90d0699777770760ff012155974290)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21074 ms: Timed out
    error: unable to read sha1 file of tests/data/ffhq_gt.lmdb/lock.mdb (c53d2e56457060392f18d1dc7ab6574b15f42794)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21091 ms: Timed out
    error: unable to read sha1 file of tests/data/ffhq_gt.lmdb/meta_info.txt (8f18d95c03214990dbfd7e6ab520eb7b337038f2)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21073 ms: Timed out
    error: unable to read sha1 file of tests/data/gt/00000000.png (33425aad207003300a8df43a3fe78dde492c552e)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21072 ms: Timed out
    error: unable to read sha1 file of tests/data/test_eye_mouth_landmarks.pth (35243df5c3727e8fe2e0dc34f0787b6bea7dfed2)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21075 ms: Timed out
    error: unable to read sha1 file of tests/data/test_ffhq_degradation_dataset.yml (df50c4bc5ca7f019cc8c47e1e39cd5709137fbee)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21084 ms: Timed out
    error: unable to read sha1 file of tests/test_ffhq_degradation_dataset.py (fa56c03fb8e23df26aa6ed8442a86b3c676eec78)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
    error: unable to read sha1 file of tests/test_gfpgan_model.py (1408ddd7c909c7257fbcea79f8576231a40f9211)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21063 ms: Timed out
    error: unable to read sha1 file of tests/test_stylegan2_clean_arch.py (78bb920e73ce28cfec9ea89a4339cc5b87981b47)
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: Failed to connect to github.com port 443 after 21102 ms: Timed out
    error: unable to read sha1 file of tests/test_utils.py (a963b3269dea05f9b7ec6c3db016e9a579c92fc8)
    fatal: unable to checkout working tree
    warning: Clone succeeded, but checkout failed.
    You can inspect what was checked out with ‘git status’
    and retry with ‘git restore –source=HEAD :/’

    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\Luo\AppData\Local\Temp\pip-req-build-xyes6u47’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\Luo\AppData\Local\Temp\pip-req-build-xyes6u47’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

    • PhiltreX
      PhiltreX 2023-04-13 12:13

      @cc根据你提供的信息,安装GFPGAN时出现了连接GitHub服务器的问题,具体错误信息为“OpenSSL SSL_read: Connection was reset, errno 10054”和“Failed to connect to github.com port 443 after 21093 ms: Timed out”。建议搜索CMD魔法上网。

  • 仁兄
    仁兄 2023-04-14 20:18

    cd /d D:\openai.wiki\stable-diffusion-webui.

    我第二次安装,我认为合适的命令是: cd -d D:\openai.wiki\stable-diffusion-webui

    • PhiltreX
      PhiltreX 2023-04-16 11:59

      @仁兄/d这个参数是用来强制跳转的,您所发的-d在我这里执行会提示C:\Users\openA>cd -d D:\openai.wiki\stable-diffusion-webui
      文件名、目录名或卷标语法不正确。
      所以这个是不行的哈。

  • 13wu
    13wu 2023-04-15 04:41

    当前设置是能出图的,就是采样器能点开选项但是选择不了其他选项,模型名称也不显示是怎么回事,

    • PhiltreX
      PhiltreX 2023-04-16 12:01

      @13wu是不是没放模型进去啊?

    • 13wu
      13wu 2023-04-17 16:32

      @PhiltreX破案了大佬,Firefox可以正常使用,Chrome不行,不知道为啥

    • PhiltreX
      PhiltreX 2023-04-18 00:24

      @13wu不容易啊,不过我也遇到这种问题,点击里面的重新加载UI,多试几次就可以了,有时候浏览器内的选项菜单无法和本地服务器获取通信,这可能和防火墙规则之内类的有关系吧。

  • openai.wiki的忠实粉丝
    openai.wiki的忠实粉丝 2023-04-15 12:40

    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    ==============================================================================================================
    INCOMPATIBLE PYTHON VERSION

    This program is tested with 3.10.6 Python, but you have 3.9.12.
    If you encounter an error with “RuntimeError: Couldn’t install torch.” message,
    or any other error regarding unsuccessful package (library) installation,
    please downgrade (or upgrade) to the latest version of 3.10 Python
    and delete current Python and “venv” folder in WebUI’s directory.

    You can download 3.10 Python from here: https://www.python.org/downloads/release/python-3109/

    Alternatively, use a binary release of WebUI: https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases

    Use –skip-python-version-check to suppress this warning.
    ==============================================================================================================
    Python 3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Installing requirements for Web UI
    Launching Web UI with arguments:
    No module ‘xformers’. Proceeding without it.
    Loading weights [a7529df023] from D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\final-pruned.ckpt
    Creating model from config: D:\openai.wiki\stable-diffusion-webui\configs\v1-inference.yaml
    LatentDiffusion: Running in eps-prediction mode
    DiffusionWrapper has 859.52 M params.
    Loading VAE weights found near the checkpoint: D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\final-pruned.vae.pt
    loading stable diffusion model: OutOfMemoryError
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\webui.py”, line 139, in initialize
    modules.sd_models.load_model()
    File “D:\openai.wiki\stable-diffusion-webui\modules\sd_models.py”, line 449, in load_model
    sd_model.to(shared.device)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\lightning_fabric\utilities\device_dtype_mixin.py”, line 54, in to
    return super().to(*args, **kwargs)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 989, in to
    return self._apply(convert)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
    module._apply(fn)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
    module._apply(fn)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
    module._apply(fn)
    [Previous line repeated 2 more times]
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 664, in _apply
    param_applied = fn(param)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 987, in convert
    return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
    torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 2.00 GiB total capacity; 1.66 GiB already allocated; 0 bytes free; 1.70 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

    Stable diffusion model failed to load, exiting

    这报错怎么解决?求大佬

  • openai.wiki的忠实粉丝
    openai.wiki的忠实粉丝 2023-04-15 12:46

    ComfyUI|Stable Diffusion GUI 与 本地化部署Stable Diffusion WebUI 有何区别?
    求大佬!

  • openai.wiki的忠实粉丝
    openai.wiki的忠实粉丝 2023-04-15 12:48

    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    ==============================================================================================================
    INCOMPATIBLE PYTHON VERSION

    This program is tested with 3.10.6 Python, but you have 3.9.12.
    If you encounter an error with “RuntimeError: Couldn’t install torch.” message,
    or any other error regarding unsuccessful package (library) installation,
    please downgrade (or upgrade) to the latest version of 3.10 Python
    and delete current Python and “venv” folder in WebUI’s directory.

    You can download 3.10 Python from here: https://www.python.org/downloads/release/python-3109/

    Alternatively, use a binary release of WebUI: https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases

    Use –skip-python-version-check to suppress this warning.
    ==============================================================================================================
    Python 3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Installing requirements for Web UI
    Launching Web UI with arguments:
    No module ‘xformers’. Proceeding without it.
    Loading weights [a7529df023] from D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\final-pruned.ckpt
    Creating model from config: D:\openai.wiki\stable-diffusion-webui\configs\v1-inference.yaml
    LatentDiffusion: Running in eps-prediction mode
    DiffusionWrapper has 859.52 M params.
    Loading VAE weights found near the checkpoint: D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\final-pruned.vae.pt
    loading stable diffusion model: OutOfMemoryError
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\webui.py”, line 139, in initialize
    modules.sd_models.load_model()
    File “D:\openai.wiki\stable-diffusion-webui\modules\sd_models.py”, line 449, in load_model
    sd_model.to(shared.device)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\lightning_fabric\utilities\device_dtype_mixin.py”, line 54, in to
    return super().to(*args, **kwargs)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 989, in to
    return self._apply(convert)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
    module._apply(fn)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
    module._apply(fn)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 641, in _apply
    module._apply(fn)
    [Previous line repeated 2 more times]
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 664, in _apply
    param_applied = fn(param)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py”, line 987, in convert
    return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
    torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 2.00 GiB total capacity; 1.66 GiB already allocated; 0 bytes free; 1.70 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

    Stable diffusion model failed to load, exiting
    求大佬

  • Nyla
    Nyla 2023-04-15 16:45

    安装依赖:
    pip install -r D:/openai.wiki/stable-diffusion-webui/requirements.txt
    这一步似乎是多余的?
    这里将项目的依赖装到conda虚拟环境中了,而项目脚本在venv中又装了一遍,项目实际使用的也是venv中的环境。
    实测省略这一步可以正常运行,而且少下载了几个g的东西

    • PhiltreX
      PhiltreX 2023-04-16 12:12

      @Nyla也不是,这个其实也不全是无用的,对于您的电脑来说可能不需要,但是我给其它人部署的过程中发现,个别电脑如果不重新安装一遍requirements.txt是无法运行的,而且用户也不知道缺少了什么,所以只能把这一步也写上,避免小白用户无法运行。

  • 卸载程序支持
    卸载程序支持 2023-04-16 08:04

    兄弟,麻烦看一下,到最后一步出现这个
    Installing gfpgan
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 263, in prepare_environment
    run_pip(f”install {gfpgan_package}”, “gfpgan”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 129, in run_pip
    return run(f'”{python}” -m pip {args} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install gfpgan.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
    Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\mechrevo\appdata\local\temp\pip-req-build-jl8edjor

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\Mechrevo\AppData\Local\Temp\pip-req-build-jl8edjor’
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
    fatal: could not fetch fa702eeacff13fe8475b0e102a8b8c37602f3963 from promisor remote
    warning: Clone succeeded, but checkout failed.
    You can inspect what was checked out with ‘git status’
    and retry with ‘git restore –source=HEAD :/’

    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\Mechrevo\AppData\Local\Temp\pip-req-build-jl8edjor’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\Mechrevo\AppData\Local\Temp\pip-req-build-jl8edjor’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.

    [notice] A new release of pip available: 22.3.1 -> 23.0.1
    [notice] To update, run: D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip

  • mark
    mark 2023-04-18 09:52

    您好。我出现了以下问题,求助:
    Python 3.10.9 (main, Jan 11 2023, 15:21:40) [GCC 11.2.0]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Traceback (most recent call last):
    File “/home/mark/Desktop/123/stable-diffusion-webui_23-03-10/launch.py”, line 355, in
    prepare_environment()
    File “/home/mark/Desktop/123/stable-diffusion-webui_23-03-10/launch.py”, line 288, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir(‘stable-diffusion-stability-ai’), “Stable Diffusion”, stable_diffusion_commit_hash)
    File “/home/mark/Desktop/123/stable-diffusion-webui_23-03-10/launch.py”, line 143, in git_clone
    current_hash = run(f'”{git}” -C “{dir}” rev-parse HEAD’, None, f”Couldn’t determine {name}’s hash: {commithash}”).strip()
    File “/home/mark/Desktop/123/stable-diffusion-webui_23-03-10/launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t determine Stable Diffusion’s hash: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf.
    Command: “git” -C “/home/mark/Desktop/123/stable-diffusion-webui_23-03-10/repositories/stable-diffusion-stability-ai” rev-parse HEAD
    Error code: 129
    stdout:
    stderr: Unknown option: -C
    usage: git [–version] [–help] [-c name=value]
    [–exec-path[=]] [–html-path] [–man-path] [–info-path]
    [-p|–paginate|–no-pager] [–no-replace-objects] [–bare]
    [–git-dir=] [–work-tree=] [–namespace=]
    []

    在本讨论中的两种方法我都试过了,不行。仔细一看,发现他们的Error code是128,我这个是129。实在是搞不定了。求助大佬,感谢感谢!!!

    • PhiltreX
      PhiltreX 2023-04-18 12:03

      @mark你这是Linux的代码吗?git找不到-C的语法,所以报错。
      git” -C “/home/mark/Desktop/123/stable-diffusion-webui_23-03-10/repositories/stable-diffusion-stability-ai

  • mark
    mark 2023-04-18 10:47

    大佬请帮忙!出现以下问题,按本贴中Error Code为128的两种方法都试了一下,没有解决。十分感谢。

    Python 3.10.9 (main, Jan 11 2023, 15:21:40) [GCC 11.2.0]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Traceback (most recent call last):
    File “/home/mark/Desktop/123/stable-diffusion-webui_23-03-10/launch.py”, line 355, in
    prepare_environment()
    File “/home/mark/Desktop/123/stable-diffusion-webui_23-03-10/launch.py”, line 288, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir(‘stable-diffusion-stability-ai’), “Stable Diffusion”, stable_diffusion_commit_hash)
    File “/home/mark/Desktop/123/stable-diffusion-webui_23-03-10/launch.py”, line 143, in git_clone
    current_hash = run(f'”{git}” -C “{dir}” rev-parse HEAD’, None, f”Couldn’t determine {name}’s hash: {commithash}”).strip()
    File “/home/mark/Desktop/123/stable-diffusion-webui_23-03-10/launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t determine Stable Diffusion’s hash: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf.
    Command: “git” -C “/home/mark/Desktop/123/stable-diffusion-webui_23-03-10/repositories/stable-diffusion-stability-ai” rev-parse HEAD
    Error code: 129
    stdout:
    stderr: Unknown option: -C
    usage: git [–version] [–help] [-c name=value]
    [–exec-path[=]] [–html-path] [–man-path] [–info-path]
    [-p|–paginate|–no-pager] [–no-replace-objects] [–bare]
    [–git-dir=] [–work-tree=] [–namespace=]
    []

  • 昵称必须填
    昵称必须填 2023-04-18 17:23

    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Cloning Stable Diffusion into D:\openai.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai…
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 288, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir(‘stable-diffusion-stability-ai’), “Stable Diffusion”, stable_diffusion_commit_hash)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 151, in git_clone
    run(f'”{git}” clone “{url}” “{dir}”‘, f”Cloning {name} into {dir}…”, f”Couldn’t clone {name}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t clone Stable Diffusion.
    Command: “git” clone “https://github.com/Stability-AI/stablediffusion.git” “D:\openai.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai”
    Error code: 128
    stdout:
    stderr: Cloning into ‘D:\openai.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai’…
    fatal: unable to access ‘https://github.com/Stability-AI/stablediffusion.git/’: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 请问这是什么错误呀

  • niefree
    niefree 2023-04-20 01:45

    请问大佬,我这边使用出现一个问题,正常开始图片生成,进度到完成时,控制台显示 ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接,然后UI里不显示生成的图像,只能在outputs文件夹里找到图。这个该怎么解决呢~····

    • PhiltreX
      PhiltreX 2023-04-21 11:43

      @niefree可能是浏览器没有办法和SD的Python建立链接,换个浏览器试一下。

  • 昵称必须填
    昵称必须填 2023-04-20 17:58

    新的错误显示又出现了,大佬,救救我
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.10 | packaged by Anaconda, Inc. | (main, Mar 21 2023, 18:39:17) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Cloning Stable Diffusion into D:\openai.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai…
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 288, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir(‘stable-diffusion-stability-ai’), “Stable Diffusion”, stable_diffusion_commit_hash)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 151, in git_clone
    run(f'”{git}” clone “{url}” “{dir}”‘, f”Cloning {name} into {dir}…”, f”Couldn’t clone {name}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t clone Stable Diffusion.
    Command: “git” clone “https://github.com/Stability-AI/stablediffusion.git” “D:\openai.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai”
    Error code: 128
    stdout:
    stderr: Cloning into ‘D:\openai.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai’…
    fatal: unable to access ‘https://github.com/Stability-AI/stablediffusion.git/’: OpenSSL SSL_read: Connection was reset, errno 10054

    请按任意键继续. . .

  • aaa
    aaa 2023-04-21 09:51

    safetensors结尾的模型是放哪个文件下啊

  • blueline
    blueline 2023-04-25 03:57

    (F:\openai.wiki\stable-diffusion-webui\automatic) F:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “F:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.11 | packaged by Anaconda, Inc. | (main, Apr 20 2023, 18:56:50) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Traceback (most recent call last):
    File “F:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “F:\openai.wiki\stable-diffusion-webui\launch.py”, line 260, 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 “F:\openai.wiki\stable-diffusion-webui\launch.py”, line 121, in run_python
    return run(f'”{python}” -c “{code}”‘, desc, errdesc)
    File “F:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Error running command.
    Command: “F:\openai.wiki\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:
    stderr: Traceback (most recent call last):
    File “”, line 1, in
    AssertionError: Torch is not able to use GPU; add –skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

    安装不了,求救

  • blueline
    blueline 2023-04-25 03:58

    (F:\openai.wiki\stable-diffusion-webui\automatic) F:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “F:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.11 | packaged by Anaconda, Inc. | (main, Apr 20 2023, 18:56:50) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Traceback (most recent call last):
    File “F:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “F:\openai.wiki\stable-diffusion-webui\launch.py”, line 260, 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 “F:\openai.wiki\stable-diffusion-webui\launch.py”, line 121, in run_python
    return run(f'”{python}” -c “{code}”‘, desc, errdesc)
    File “F:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Error running command.
    Command: “F:\openai.wiki\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:
    stderr: Traceback (most recent call last):
    File “”, line 1, in
    AssertionError: Torch is not able to use GPU; add –skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

    安装不了,求救

  • 海豚Zero
    海豚Zero 2023-04-25 15:53

    我想换一台电脑部署, 请问怎么卸载以上的部署。
    除了Git与Conda可以在控制面板卸载外, 配置环境用git、conda、pip命令执行的安装怎么卸载呀?

    • PhiltreX
      PhiltreX 2023-04-26 00:41

      @海豚Zero如果使用的安装部署方式是与本站的教程一致,直接把SD的整个文件夹删除就可以了。

  • blueline
    blueline 2023-04-25 23:27

    (F:\openai.wiki\stable-diffusion-webui\automatic) F:\openai.wiki\stable-diffusion-webui>webui-user.bat
    venv “F:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.11 | packaged by Anaconda, Inc. | (main, Apr 20 2023, 18:56:50) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Traceback (most recent call last):
    File “F:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “F:\openai.wiki\stable-diffusion-webui\launch.py”, line 260, 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 “F:\openai.wiki\stable-diffusion-webui\launch.py”, line 121, in run_python
    return run(f'”{python}” -c “{code}”‘, desc, errdesc)
    File “F:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Error running command.
    Command: “F:\openai.wiki\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:
    stderr: Traceback (most recent call last):
    File “”, line 1, in
    AssertionError: Torch is not able to use GPU; add –skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

    求救,显示出错,安装不了

  • 海豚Zero
    海豚Zero 2023-04-26 14:46

    如果我插两块英伟达显卡, 对绘图的性能是否更优呢? SD绘图的时候会自动做负载均衡吗?

  • 小北
    小北 2023-04-27 15:03

    请问这个是什么情况啊
    (D:\huatuAI\stable-diffusion-webui\automatic) D:\huatuAI\stable-diffusion-webui>webui-user.bat
    venv “D:\huatuAI\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.11 | packaged by Anaconda, Inc. | (main, Apr 20 2023, 18:56:50) [MSC v.1916 64 bit (AMD64)]
    Commit hash:
    Traceback (most recent call last):
    File “D:\huatuAI\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “D:\huatuAI\stable-diffusion-webui\launch.py”, line 260, 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 “D:\huatuAI\stable-diffusion-webui\launch.py”, line 121, in run_python
    return run(f'”{python}” -c “{code}”‘, desc, errdesc)
    File “D:\huatuAI\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Error running command.
    Command: “D:\huatuAI\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:
    stderr: Traceback (most recent call last):
    File “”, line 1, in
    AssertionError: Torch is not able to use GPU; add –skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

    • PhiltreX
      PhiltreX 2023-04-27 22:03

      @小北Torch没安装上,或者版本有问题,建议从头安装。

  • ccyr119
    ccyr119 2023-04-29 11:13

    您好,请问一下问题我应该如何处理呢?
    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.11 | packaged by Anaconda, Inc. | (main, Apr 20 2023, 18:56:50) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
    Fetching updates for Stable Diffusion…
    Checking out commit for Stable Diffusion with hash: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf…
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 288, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir(‘stable-diffusion-stability-ai’), “Stable Diffusion”, stable_diffusion_commit_hash)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 148, in git_clone
    run(f'”{git}” -C “{dir}” checkout {commithash}’, f”Checking out commit for {name} with hash: {commithash}…”, f”Couldn’t checkout commit {commithash} for {name}”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t checkout commit cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf for Stable Diffusion.
    Command: “git” -C “D:\openai.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai” checkout cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf
    Error code: 128
    stdout:
    stderr: fatal: reference is not a tree: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf
    感谢您的指导

    • PhiltreX
      PhiltreX 2023-04-30 22:15

      @ccyr119哈希值验证错误,把D:\openai.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai这个文件夹删除了试一下。

    • ccyr119
      ccyr119 2023-05-02 08:42

      @PhiltreX感谢您的回复,我按照您的回复内容进行操作,得到了以下反馈:
      venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
      Python 3.10.11 | packaged by Anaconda, Inc. | (main, Apr 20 2023, 18:56:50) [MSC v.1916 64 bit (AMD64)]
      Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
      Cloning Stable Diffusion into D:\openai.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai…
      Cloning Taming Transformers into D:\openai.wiki\stable-diffusion-webui\repositories\taming-transformers…
      Cloning K-diffusion into D:\openai.wiki\stable-diffusion-webui\repositories\k-diffusion…
      Cloning CodeFormer into D:\openai.wiki\stable-diffusion-webui\repositories\CodeFormer…
      Cloning BLIP into D:\openai.wiki\stable-diffusion-webui\repositories\BLIP…
      Traceback (most recent call last):
      File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 355, in
      prepare_environment()
      File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 292, in prepare_environment
      git_clone(blip_repo, repo_dir(‘BLIP’), “BLIP”, blip_commit_hash)
      File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 151, in git_clone
      run(f'”{git}” clone “{url}” “{dir}”‘, f”Cloning {name} into {dir}…”, f”Couldn’t clone {name}”)
      File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 97, in run
      raise RuntimeError(message)
      RuntimeError: Couldn’t clone BLIP.
      Command: “git” clone “https://github.com/salesforce/BLIP.git” “D:\openai.wiki\stable-diffusion-webui\repositories\BLIP”
      Error code: 128
      stdout:
      stderr: Cloning into ‘D:\openai.wiki\stable-diffusion-webui\repositories\BLIP’…
      fatal: unable to access ‘https://github.com/salesforce/BLIP.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
      请问我这是关于BLIP的报错吗?

    • ccyr119
      ccyr119 2023-05-02 10:01

      @ccyr119您好,刚尝试了魔法上网,又崩出以下问题[捂脸]
      venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
      Python 3.10.11 | packaged by Anaconda, Inc. | (main, Apr 20 2023, 18:56:50) [MSC v.1916 64 bit (AMD64)]
      Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
      Installing requirements for Web UI
      Launching Web UI with arguments:
      No module ‘xformers’. Proceeding without it.
      Loading weights [a7529df023] from D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\final-pruned.ckpt
      Creating model from config: D:\openai.wiki\stable-diffusion-webui\configs\v1-inference.yaml
      LatentDiffusion: Running in eps-prediction mode
      DiffusionWrapper has 859.52 M params.
      Loading VAE weights found near the checkpoint: D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\final-pruned.vae.pt
      Applying cross attention optimization (Doggettx).
      Textual inversion embeddings loaded(0):
      Model loaded in 3.8s (load weights from disk: 1.4s, create model: 0.3s, apply weights to model: 0.4s, apply half(): 0.4s, load VAE: 0.3s, move model to device: 0.4s, load textual inversion embeddings: 0.6s).
      Running on local URL: http://127.0.0.1:7860

      To create a public link, set `share=True` in `launch()`.
      Startup time: 8.8s (import torch: 1.4s, import gradio: 0.9s, import ldm: 0.4s, other imports: 0.7s, setup codeformer: 0.2s, load scripts: 1.0s, load SD checkpoint: 3.9s, create ui: 0.2s).

      请问这个是废了吗[捂脸]

    • PhiltreX
      PhiltreX 2023-05-02 16:02

      @ccyr119没有呀,你这已经安装好啦,现在不要关闭这个CMD窗口,在浏览器中打开http://127.0.0.1:7860网址即可正常使用了。

    • ccyr119
      ccyr119 2023-05-02 18:14

      @PhiltreX谢谢您的指正,也很感谢您的教程,现在已经能够正常打开了,对于我的的种种问题您也能够解答,十分感谢您!

  • chengh
    chengh 2023-05-04 09:07

    上面的都装好了,下载扩展的时候出现了这个,救命,花了好久时间一直解决不了,求大佬赐教
    GitCommandError: Cmd(‘git’) failed due to: exit code(128) cmdline: git clone -v — https://github.com/dtlnor/stable-diffusion-webui-localization-zh_CN F:\openai.wiki\stable-diffusion-webui\tmp\stable-diffusion-webui-localization-zh_CN stderr: ‘fatal: destination path ‘F:\openai.wiki\stable-diffusion-webui\tmp\stable-diffusion-webui-localization-zh_CN’ already exists and is not an empty directory. ‘

    • PhiltreX
      PhiltreX 2023-05-04 18:12

      @chenghF:\openai.wiki\stable-diffusion-webui\tmp\stable-diffusion-webui-localization-zh_CN
      把这个删除了再试试

  • 糖潮
    糖潮 2023-05-07 12:11

    (base) C:\Users\11446>conda env create -p C:\Users\11446\Documents\openai.wiki\stable-diffusion-webui\automatic -f C:\Users\11446\Documents\openai.wiki\stable-diffusion-webui\environment-wsl2.yaml
    Collecting package metadata (repodata.json): done
    Solving environment: failed

    ResolvePackageNotFound:
    – cudatoolkit=11.8

    5.6在配置虚拟环境的时候出现以上报错

    • 糖潮
      糖潮 2023-05-07 12:16

      @糖潮按照网传方式进入environment-wsl2.yaml,注释掉后使用pip依然失败

    • PhiltreX
      PhiltreX 2023-05-08 14:38

      @糖潮这个是Conda找不到服务器上这些库,建议检查网络问题,或者配置一下Conda的镜像源。

    • 糖潮
      糖潮 2023-05-09 17:44

      @PhiltreX我觉得不是网络的问题,我不管是科学上网、全局代理、校园网、清华镜像、阿里镜像都试过了,就算能用镜像源也会显示ResolvePackageNotFound:
      – cudatoolkit=11.8。我觉得是这个包本身的问题,请问如何排查,网传方法都试过了,我倾向于这个包的问题的话,应该怎么做

  • ssy最爱
    ssy最爱 2023-05-07 18:34

    (base) C:\Users\crb>conda env create -p E:\openai.wiki\stable-diffusion-webui\automatic -f E:\openai.wiki\stable-diffusion-webui\environment-wsl2.yaml
    Collecting package metadata (repodata.json): done
    Solving environment: failed

    ResolvePackageNotFound:
    – cudatoolkit=11.8
    在创建conda虚拟环境,请问这个算什么问题?

    • PhiltreX
      PhiltreX 2023-05-08 14:39

      @ssy最爱这个是Conda找不到服务器上这些库,建议检查网络问题,或者配置一下Conda的镜像源。

  • ssy
    ssy 2023-05-07 21:55

    顶顶

  • ssy
    ssy 2023-05-07 23:06

    (base) C:\Users\crb>conda env create -p D:\openai.wiki\stable-diffusion-webui\automatic -f D:\openai.wiki\stable-diffusion-webui\environment-wsl2.yaml
    Collecting package metadata (repodata.json): failed

    CondaHTTPError: HTTP 000 CONNECTION FAILED for url
    Elapsed: –

    An HTTP error occurred when trying to retrieve this URL.
    HTTP errors are often intermittent, and a simple retry will get you on your way.

    If your current network has https://www.anaconda.com blocked, please file
    a support request with your network engineering team.

    ‘https://repo.anaconda.com/pkgs/main/win-64’
    在创建conda虚拟环境,请问这是什么问题?

  • 未来可期哦
    未来可期哦 2023-05-08 17:33

    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    ==============================================================================================================
    INCOMPATIBLE PYTHON VERSION

    This program is tested with 3.10.6 Python, but you have 3.9.12.
    If you encounter an error with “RuntimeError: Couldn’t install torch.” message,
    or any other error regarding unsuccessful package (library) installation,
    please downgrade (or upgrade) to the latest version of 3.10 Python
    and delete current Python and “venv” folder in WebUI’s directory.

    You can download 3.10 Python from here: https://www.python.org/downloads/release/python-3106/

    Alternatively, use a binary release of WebUI: https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases

    Use –skip-python-version-check to suppress this warning.
    ==============================================================================================================
    Python 3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]
    Commit hash: 5ab7f213bec2f816f9c5644becb32eb72c8ffb89
    Installing gfpgan
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 352, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 260, in prepare_environment
    run_pip(f”install {gfpgan_package}”, “gfpgan”)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 128, in run_pip
    return run(f'”{python}” -m pip {command} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”, live=live)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 96, in run
    raise RuntimeError(message)
    RuntimeError: Couldn’t install gfpgan.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 –prefer-binary
    Error code: 1
    stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
    Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\crb\appdata\local\temp\pip-req-build-b73mup3q

    stderr: Running command git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\crb\AppData\Local\Temp\pip-req-build-b73mup3q’
    fatal: unable to access ‘https://github.com/TencentARC/GFPGAN.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
    fatal: could not fetch fa702eeacff13fe8475b0e102a8b8c37602f3963 from promisor remote
    warning: Clone succeeded, but checkout failed.
    You can inspect what was checked out with ‘git status’
    and retry with ‘git restore –source=HEAD :/’

    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\crb\AppData\Local\Temp\pip-req-build-b73mup3q’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

    git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\crb\AppData\Local\Temp\pip-req-build-b73mup3q’ did not run successfully.
    exit code: 128

    See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    WARNING: You are using pip version 22.0.4; however, version 23.1.2 is available.
    You should consider upgrading via the ‘D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip’ command.
    在最后一步运行webui-user.bat,这是什么问题啊,大佬?

  • Simon
    Simon 2023-05-12 12:00

    conda env create -p D:\openai.wiki\stable-diffusion-webui\automatic -f D:\openai.wiki\stable-diffusion-webui\environment-wsl2.yaml
    运行后,
    EnvironmentFileNotFound: ‘C:\Users\ssmal\environment-wsl2.yaml’ file not found
    到这一步就下不去了。其实在我文件夹里有。

    请问什么原因?人在海外,不需要科学。

    • Simon
      Simon 2023-05-12 12:01

      @Simon我知道了,他去缺省文件夹去了,怎么改?

    • Simon
      Simon 2023-05-12 12:02

      @SimonEnvironmentFileNotFound: ‘C:\Users\ssmal\environment-wsl2.yaml’ file not found

      呃!还是找不到。

    • Simon
      Simon 2023-05-12 12:03

      @SimonEnvironmentFileNotFound: ‘D:\openai.wiki\stable-diffusion-webui\environment-wsl2.yaml’ file not found 这个是汉字。

    • PhiltreX
      PhiltreX 2023-05-13 20:01

      @Simon你这文件夹名称有问题吧,命令行中的文件夹与环境变量的不一至啊。

  • 吴侬白衣
    吴侬白衣 2023-05-13 14:24

    这个默认使用的cpu,能不能切换使用gpu啊

  • Snowlqy
    Snowlqy 2023-05-21 17:10

    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 369, in
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 271, in prepare_environment
    run(f'”{python}” -m {torch_command}’, “Installing torch and torchvision”, “Couldn’t install torch”, live=True)
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 95, in run
    raise RuntimeError(f”””{errdesc or ‘Error running command’}.
    RuntimeError: Couldn’t install torch.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install torch==2.0.1 torchvision==0.15.2 –extra-index-url https://download.pytorch.org/whl/cu118
    Error code: 2
    最后一步每次下载到一半就跳这个报错

    • PhiltreX
      PhiltreX 2023-05-22 11:35

      @Snowlqy单独执行这一句试一下"D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118

  • 258
    258 2023-05-30 16:11

    Cloning Taming Transformers into D:\openai.wiki\stable-diffusion-webui\repositories\taming-transformers…
    一直卡在这个位置,是网络问题吗,神圣的博主

  • 258
    258 2023-05-30 17:20

    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.11 | packaged by Anaconda, Inc. | (main, Apr 20 2023, 18:56:50) [MSC v.1916 64 bit (AMD64)]
    Version: v1.3.0
    Commit hash: 20ae71faa8ef035c31aa3a410b707d792c8203a3
    Installing requirements
    Launching Web UI with arguments:
    No module ‘xformers’. Proceeding without it.
    Loading weights [75bf72f1f4] from D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
    loading stable diffusion model: SafetensorError
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\modules\sd_models.py”, line 424, in get_sd_model
    load_model()
    File “D:\openai.wiki\stable-diffusion-webui\modules\sd_models.py”, line 457, in load_model
    state_dict = get_checkpoint_state_dict(checkpoint_info, timer)
    File “D:\openai.wiki\stable-diffusion-webui\modules\sd_models.py”, line 271, in get_checkpoint_state_dict
    res = read_state_dict(checkpoint_info.filename)
    File “D:\openai.wiki\stable-diffusion-webui\modules\sd_models.py”, line 250, in read_state_dict
    pl_sd = safetensors.torch.load_file(checkpoint_file, device=device)
    File “D:\openai.wiki\stable-diffusion-webui\venv\lib\site-packages\safetensors\torch.py”, line 259, in load_file
    with safe_open(filename, framework=”pt”, device=device) as f:
    safetensors_rust.SafetensorError: Error while deserializing header: MetadataIncompleteBuffer

    Stable diffusion model failed to load
    Applying optimization: sdp-no-mem… done.
    Running on local URL: http://127.0.0.1:7860

    To create a public link, set `share=True` in `launch()`.
    Startup time: 18.3s (import torch: 5.5s, import gradio: 3.0s, import ldm: 1.2s, other imports: 2.4s, setup codeformer: 0.2s, load scripts: 4.7s, create ui: 0.9s, gradio launch: 0.2s).
    我最后有有一个3个g左右的东西,没下载完断开了魔法网络,然后就这样了,能正常进到 http://127.0.0.1:7860这里会不会少东西啊。万能的楼主

    • PhiltreX
      PhiltreX 2023-06-01 02:41

      @258可能是官方模型没下载成功,你用自己的模型试试,应该没什么事。

  • 这是昵称
    这是昵称 2023-05-30 23:34

    你好,我第二次安装,运行webui-user.bat之后,卡在了Cloning Stable Diffusion into D:\openai.wiki2\stable-diffusion-webui\repositories\stable-diffusion-stability-ai
    这里,想问下这是失败了吗,因为第一次似乎没遇到这个问题

    • PhiltreX
      PhiltreX 2023-06-01 02:43

      @这是昵称这是网络问题,应该是更新了,你前面的都下载好了,那这个问题应该也能解决,多开几次试试就行了。

  • lls
    lls 2023-06-01 00:42

    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.11 | packaged by Anaconda, Inc. | (main, Apr 20 2023, 18:56:50) [MSC v.1916 64 bit (AMD64)]
    Version: v1.3.0
    Commit hash: 20ae71faa8ef035c31aa3a410b707d792c8203a3
    Cloning Taming Transformers into D:\openai.wiki\stable-diffusion-webui\repositories\taming-transformers…
    Cloning K-diffusion into D:\openai.wiki\stable-diffusion-webui\repositories\k-diffusion…
    Cloning CodeFormer into D:\openai.wiki\stable-diffusion-webui\repositories\CodeFormer…
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 38, in
    main()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 29, in main
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\modules\launch_utils.py”, line 291, in prepare_environment
    git_clone(codeformer_repo, repo_dir(‘CodeFormer’), “CodeFormer”, codeformer_commit_hash)
    File “D:\openai.wiki\stable-diffusion-webui\modules\launch_utils.py”, line 147, in git_clone
    run(f'”{git}” clone “{url}” “{dir}”‘, f”Cloning {name} into {dir}…”, f”Couldn’t clone {name}”)
    File “D:\openai.wiki\stable-diffusion-webui\modules\launch_utils.py”, line 101, in run
    raise RuntimeError(“\n”.join(error_bits))
    RuntimeError: Couldn’t clone CodeFormer.
    Command: “git” clone “https://github.com/sczhou/CodeFormer.git” “D:\openai.wiki\stable-diffusion-webui\repositories\CodeFormer”
    Error code: 128
    stderr: Cloning into ‘D:\openai.wiki\stable-diffusion-webui\repositories\CodeFormer’…
    fatal: unable to access ‘https://github.com/sczhou/CodeFormer.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
    在最后一步运行webui-user.bat,请问这是什么问题?

    • PhiltreX
      PhiltreX 2023-06-01 02:46

      @lls网络问题,你都安装到这一步了,证明应该是开了魔法的,所以多试几次就行了。

  • lls
    lls 2023-06-01 08:40

    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    Python 3.10.11 | packaged by Anaconda, Inc. | (main, Apr 20 2023, 18:56:50) [MSC v.1916 64 bit (AMD64)]
    Version: v1.3.0
    Commit hash: 20ae71faa8ef035c31aa3a410b707d792c8203a3
    Cloning BLIP into D:\openai.wiki\stable-diffusion-webui\repositories\BLIP…
    Installing requirements for CodeFormer
    Installing requirements
    Launching Web UI with arguments:
    No module ‘xformers’. Proceeding without it.
    Calculating sha256 for D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\final-pruned.ckpt: Running on local URL: http://127.0.0.1:7860

    To create a public link, set `share=True` in `launch()`.
    Startup time: 12.8s (import torch: 2.8s, import gradio: 4.0s, import ldm: 0.8s, other imports: 2.9s, setup codeformer: 0.2s, load scripts: 1.3s, create ui: 0.4s, gradio launch: 0.1s).
    a7529df02340e5b4c3870c894c1ae84f22ea7b37fd0633e5bacfad9618228032
    Loading weights [a7529df023] from D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\final-pruned.ckpt
    Creating model from config: D:\openai.wiki\stable-diffusion-webui\configs\v1-inference.yaml
    LatentDiffusion: Running in eps-prediction mode
    DiffusionWrapper has 859.52 M params.
    Downloading (…)olve/main/vocab.json: 100%|███████████████████████████████████████████| 961k/961k [00:01<00:00, 790kB/s]
    Downloading (…)olve/main/merges.txt: 100%|██████████████████████████████████████████| 525k/525k [00:00<00:00, 1.74MB/s]
    Downloading (…)cial_tokens_map.json: 100%|████████████████████████████████████████████████████| 389/389 [00:00<?, ?B/s]
    Downloading (…)okenizer_config.json: 100%|█████████████████████████████████████████████| 905/905 [00:00<00:00, 940kB/s]
    Downloading (…)lve/main/config.json: 100%|████████████████████████████████████████████████| 4.52k/4.52k [00:00<?, ?B/s]
    Loading VAE weights found near the checkpoint: D:\openai.wiki\stable-diffusion-webui\models\Stable-diffusion\final-pruned.vae.pt
    Applying optimization: sdp-no-mem… done.
    Textual inversion embeddings loaded(0):
    Model loaded in 41.1s (calculate hash: 19.1s, load weights from disk: 3.9s, create model: 7.3s, apply weights to model: 5.9s, apply half(): 1.1s, load VAE: 0.9s, move model to device: 0.9s, load textual inversion embeddings: 1.7s).
    这算是好了吗?

    • PhiltreX
      PhiltreX 2023-06-01 22:54

      @lls继续等待应该会弹出一个网址,那个时候就好了。

  • 258
    258 2023-06-01 21:27

    GitCommandError: Cmd(‘git’) failed due to: exit code(128) cmdline: git clone -v –filter=blob:none — https://github.com/VinsonLaro/stable-diffusion-webui-chinese D:\openai.wiki\stable-diffusion-webui\tmp\stable-diffusion-webui-chinese stderr: ‘fatal: destination path ‘D:\openai.wiki\stable-diffusion-webui\tmp\stable-diffusion-webui-chinese’ already exists and is not an empty directory. ‘
    感谢博主的回答,今天安装汉化的时候出现了这个报错,您看一下怎么弄🎇🎇🎇🎇

    • PhiltreX
      PhiltreX 2023-06-01 22:56

      @258把D:\openai.wiki\stable-diffusion-webui\tmp\目录下的stable-diffusion-webui-chinese文件夹删除,重新安装。

    • 258
      258 2023-06-02 08:18

      @PhiltreXGitCommandError: Cmd(‘git’) failed due to: exit code(128) cmdline: git clone -v –filter=blob:none — https://github.com/hanamizuki-ai/stable-diffusion-webui-localization-zh_Hans.git D:\openai.wiki\stable-diffusion-webui\tmp\stable-diffusion-webui-localization-zh_Hans stderr: ‘fatal: destination path ‘D:\openai.wiki\stable-diffusion-webui\tmp\stable-diffusion-webui-localization-zh_Hans’ already exists and is not an empty directory. ‘
      删除掉了,还是这个报错

    • 258
      258 2023-06-02 08:24

      @258GitCommandError: Cmd(‘git’) failed due to: exit code(128) cmdline: git clone -v –filter=blob:none — https://github.com/hanamizuki-ai/stable-diffusion-webui-localization-zh_Hans.git D:\openai.wiki\stable-diffusion-webui\tmp\stable-diffusion-webui-localization-zh_Hans stderr: ‘Cloning into ‘D:\openai.wiki\stable-diffusion-webui\tmp\stable-diffusion-webui-localization-zh_Hans’… POST git-upload-pack (185 bytes) POST git-upload-pack (247 bytes) error: RPC failed; curl 28 OpenSSL SSL_read: Connection was reset, errno 10054 fatal: expected ‘packfile’ fatal: could not fetch 211d32e752cb61bd056436e8f7a806f12a626bb7 from promisor remote warning: Clone succeeded, but checkout failed. You can inspect what was checked out with ‘git status’ and retry with ‘git restore –source=HEAD :/’ ‘
      我把temp下的文件都清空了,然后去available里面重新下载出现了这个报错

    • PhiltreX
      PhiltreX 2023-06-02 14:59

      @258那你把tmp也删除了

  • 258
    258 2023-06-08 14:22

    Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument index in method wrapper_CUDA__index_select)
    博主,我出图的时候这个报错是什么意思吖,没有图片生成

  • 小白选手
    小白选手 2023-06-08 14:44

    运行D:\openai.wiki\stable-diffusion-webui\webui-user.bat
    报错
    Couldn’t launch python
    exit code: 9009

    就一直提示这个,打不开,是哪个步骤有问题吗,基本下载的都下载了

  • llgy
    llgy 2023-06-18 21:54

    venv “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\Python.exe”
    fatal: not a git repository (or any of the parent directories): .git
    fatal: not a git repository (or any of the parent directories): .git
    Python 3.10.11 | packaged by Anaconda, Inc. | (main, May 16 2023, 00:55:32) [MSC v.1916 64 bit (AMD64)]
    Version:
    Commit hash:
    哥这是哪出问题了呢

    • gamboo
      gamboo 2023-06-22 11:49

      @llgy你把模型下载下来,把final-pruned.vae.pt和final-pruned.ckpt两文件放到..\openai.wiki\stable-diffusion-webui\models\Stable-diffusion文件夹下,再运行webui-user.bat就好了。

  • ...
    ... 2023-06-28 01:16

    RuntimeError: Couldn’t clone Stable Diffusion.
    Command: “git” clone “https://github.com/Stability-AI/stablediffusion.git” “D:\openai.wiki\stable-diffusion-webui\repositories\stable-diffusion-stability-ai”
    Error code: 128
    大佬,最后一步出现这种问题怎么办

  • ccc
    ccc 2023-06-28 20:46

    麻烦问一下,打开网页之后error,提醒我第一行代码错误,出不了图怎么办

    • PhiltreX
      PhiltreX 2023-06-28 22:48

      @ccc把错误信息贴出来看一下,不然我很难判断是什么错误。

    • ccc
      ccc 2023-06-29 00:47

      @PhiltreX发不了图片,代码是这样的,但是用不了To create a public link, set `share=True` in `launch()`.
      Startup time: 12.5s (import torch: 3.7s, import gradio: 2.4s, import ldm: 0.9s, other imports: 1.6s, setup codeformer: 0.1s, load scripts: 3.1s, create ui: 0.5s, gradio launch: 0.2s).
      preload_extensions_git_metadata for 9 extensions took 0.36s
      Creating model from config: E:\stable-diffusion-webui\configs\v1-inference.yaml
      LatentDiffusion: Running in eps-prediction mode
      DiffusionWrapper has 859.52 M params.
      Loading VAE weights found near the checkpoint: E:\stable-diffusion-webui\models\Stable-diffusion\final-pruned.vae.pt
      Applying attention optimization: xformers… done.
      Textual inversion embeddings loaded(0):
      Model loaded in 7.2s (load weights from disk: 3.2s, create model: 0.5s, apply weights to model: 0.7s, apply half(): 0.8s, load VAE: 0.8s, move model to device: 1.0s).

    • PhiltreX
      PhiltreX 2023-06-29 17:03

      @ccc这段信息并没有任何报错,貌似一切都是正常加载并启动的。
      你换一个浏览器试一下

    • ccc
      ccc 2023-06-29 19:37

      @PhiltreX好的好的,试了一下把魔法上网关掉就可以正常用了

  • 雨陶
    雨陶 2023-08-09 19:23

    切换目录出现以下代码
    (D:\openai.wiki\stable-diffusion-webui\automatic) PS C:\Users\liyut> cd /d D:\openai.wiki\stable-diffusion-webui
    Set-Location : 找不到接受实际参数“D:\openai.wiki\stable-diffusion-webui”的位置形式参数。
    所在位置 行:1 字符: 1
    + cd /d D:\openai.wiki\stable-diffusion-webui
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (:) [Set-Location],ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

  • YuanShan
    YuanShan 2023-08-15 17:10

    大佬,问一下依赖安装 “webui-user.bat”这一步,最后弹出什么算是安装成功了啊

  • zzn
    zzn 2023-08-19 19:13

    我到了最后一步怎么还要下torch

  • Erwin
    Erwin 2023-08-24 19:17

    首先,感谢作者如此详尽的教程,帮我一步一步完成安装,其次请教问题,本地部署后,运行如下:
    Version: 1.5.2
    Commit hash:
    Installing gfpgan
    Installing clip
    Installing open_clip
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 39, in
    main()
    File “D:\openai.wiki\stable-diffusion-webui\launch.py”, line 30, in main
    prepare_environment()
    File “D:\openai.wiki\stable-diffusion-webui\modules\launch_utils.py”, line 326, in prepare_environment
    run_pip(f”install {openclip_package}”, “open_clip”)
    File “D:\openai.wiki\stable-diffusion-webui\modules\launch_utils.py”, line 136, in run_pip
    return run(f'”{python}” -m pip {command} –prefer-binary{index_url_line}’, desc=f”Installing {desc}”, errdesc=f”Couldn’t install {desc}”, live=live)
    File “D:\openai.wiki\stable-diffusion-webui\modules\launch_utils.py”, line 113, in run
    raise RuntimeError(“\n”.join(error_bits))
    RuntimeError: Couldn’t install open_clip.
    Command: “D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install https://github.com/mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip –prefer-binary
    Error code: 1
    stdout: Collecting https://github.com/mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip

    stderr: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(, ‘Connection to github.com timed out. (connect timeout=15)’)’: /mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip
    WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host=’github.com’, port=443): Read timed out. (read timeout=15)”)’: /mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip
    WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(, ‘Connection to github.com timed out. (connect timeout=15)’)’: /mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip
    WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(, ‘Connection to github.com timed out. (connect timeout=15)’)’: /mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip
    WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(, ‘Connection to github.com timed out. (connect timeout=15)’)’: /mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip
    ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host=’github.com’, port=443): Max retries exceeded with url: /mlfoundations/open_clip/archive/bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b.zip (Caused by ConnectTimeoutError(, ‘Connection to github.com timed out. (connect timeout=15)’))

    [notice] A new release of pip is available: 23.0.1 -> 23.2.1
    [notice] To update, run: D:\openai.wiki\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip

  • 大佬救民呀
    大佬救民呀 2023-10-21 18:33

    (base) C:\Users\密码:0000>conda env create -p D:\openai.wiki\stable-diffusion-webui\automatic -f D:\openai.wiki\stable-diffusion-webui-master

    # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
    File "D:\ANACONDA\Lib\site-packages\conda\exception_handler.py", line 17, in __call__
    return func(*args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^
    File "D:\ANACONDA\Lib\site-packages\conda\cli\main.py", line 54, in main_subshell
    parser = generate_parser(add_help=True)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "D:\ANACONDA\Lib\site-packages\conda\cli\conda_argparse.py", line 127, in generate_parser
    configure_parser_plugins(sub_parsers)
    File "D:\ANACONDA\Lib\site-packages\conda\cli\conda_argparse.py", line 354, in configure_parser_plugins
    else set(find_commands()).difference(plugin_subcommands)
    ^^^^^^^^^^^^^^^
    File "D:\ANACONDA\Lib\site-packages\conda\cli\find_commands.py", line 71, in find_commands
    for entry in os.scandir(dir_path):
    ^^^^^^^^^^^^^^^^^^^^
    OSError: [WinError 123] 文件名、目录名或卷标语法不正确。: 'C:\\Users\\瀵嗙爜锛?000\\AppData\\Local\\Microsoft\\WindowsApps'

    `$ D:\ANACONDA\Scripts\conda-script.py env create -p D:\openai.wiki\stable-diffusion-webui\automatic -f D:\openai.wiki\stable-diffusion-webui-master`

    environment variables:
    CIO_TEST=
    CONDA_DEFAULT_ENV=base
    CONDA_EXE=D:\ANACONDA\condabin\..\Scripts\conda.exe
    CONDA_EXES=”D:\ANACONDA\condabin\..\Scripts\conda.exe”
    CONDA_PREFIX=D:\ANACONDA
    CONDA_PROMPT_MODIFIER=(base)
    CONDA_PYTHON_EXE=D:\ANACONDA\python.exe
    CONDA_ROOT=D:\ANACONDA
    CONDA_SHLVL=1
    CURL_CA_BUNDLE=
    HOMEPATH=\Users\密码:0000
    LD_PRELOAD=
    PATH=D:\ANACONDA;D:\ANACONDA\Library\mingw-
    w64\bin;D:\ANACONDA\Library\usr\bin;D:\ANACONDA\Library\bin;D:\ANACOND
    A\Scripts;D:\ANACONDA\bin;D:\ANACONDA\condabin;C:\Windows\system32;C:\
    Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell
    \v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA
    Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA Nv
    DLISR;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windo
    ws\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Prog
    ram Files\dotnet;D:\鐢熶骇鍔涘伐鍏穃Git\cmd;D:\ANACONDA;D:\ANACONDA\Library\mi
    ngw-
    w64\bin;D:\ANACONDA\Library\usr\bin;D:\ANACONDA\Library\bin;D:\ANACOND
    A\Scripts;C:\Users\瀵嗙爜锛?000\AppData\Local\Microsoft\WindowsApps
    PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\Windows
    PowerShell\v1.0\Modules
    REQUESTS_CA_BUNDLE=
    SSL_CERT_FILE=D:\ANACONDA\Library\ssl\cacert.pem

    active environment : base
    active env location : D:\ANACONDA
    shell level : 1
    user config file : C:\Users\密码:0000\.condarc
    populated config files :
    conda version : 23.7.4
    conda-build version : 3.26.1
    python version : 3.11.5.final.0
    virtual packages : __archspec=1=x86_64
    __cuda=12.1=0
    __win=0=0
    base environment : D:\ANACONDA (writable)
    conda av data dir : D:\ANACONDA\etc\conda
    conda av metadata url : None
    channel URLs : https://repo.anaconda.com/pkgs/main/win-64
    https://repo.anaconda.com/pkgs/main/noarch
    https://repo.anaconda.com/pkgs/r/win-64
    https://repo.anaconda.com/pkgs/r/noarch
    https://repo.anaconda.com/pkgs/msys2/win-64
    https://repo.anaconda.com/pkgs/msys2/noarch
    package cache : D:\ANACONDA\pkgs
    C:\Users\密码:0000\.conda\pkgs
    C:\Users\密码:~1\AppData\Local\conda\conda\pkgs
    envs directories : D:\ANACONDA\envs
    C:\Users\密码:0000\.conda\envs
    C:\Users\密码:~1\AppData\Local\conda\conda\envs
    platform : win-64
    user-agent : conda/23.7.4 requests/2.31.0 CPython/3.11.5 Windows/10 Windows/10.0.22621
    administrator : False
    netrc file : None
    offline mode : False

    An unexpected error has occurred. Conda has prepared the above report.
    If you suspect this error is being caused by a malfunctioning plugin,
    consider using the –no-plugins option to turn off plugins.

    Example: conda –no-plugins install

    Alternatively, you can set the CONDA_NO_PLUGINS environment variable on
    the command line to run the command without plugins enabled.

    Example: CONDA_NO_PLUGINS=true conda install

    If submitted, this report will be used by core maintainers to improve
    future releases of conda.
    Would you like conda to send this report to the core maintainers? [y/N]:大佬这是什么意思呀,到了创建虚拟环境,输入了指令后出现了这些代码,但是没有找到教程上说的文件夹在哪里

  • 大佬救民呀
    大佬救民呀 2023-10-21 18:39

    大佬,麻烦你拉,这是怎么啦
    (base) C:\Users\密码:0000>pip install -r D:/openai.wiki/stable-diffusion-webui/requirements.txt
    ERROR: Could not open requirements file: [Errno 2] No such file or directory: ‘D:/openai.wiki/stable-diffusion-webui/requirements.txt’

  • 大佬救民呀
    大佬救民呀 2023-10-21 19:35

    (base) PS C:\Users\密码:0000> conda activate D:\openai.wiki\stable-diffusion-webui\automatic

    EnvironmentLocationNotFound: Not a conda environment: D:\openai.wiki\stable-diffusion-webui\automatic

    Invoke-Expression : 无法将参数绑定到参数“Command”,因为该参数为空字符串。
    所在位置 D:\ANACONDA\shell\condabin\Conda.psm1:76 字符: 36
    + Invoke-Expression -Command $activateCommand;
    + ~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidData: (:) [Invoke-Expression],ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.Invo
    keExpressionCommand

    (base) PS C:\Users\密码:0000>

  • klcoco
    klcoco 2023-12-13 23:58

    Preparing metadata (setup.py) … error
    error: subprocess-exited-with-error

    × python setup.py egg_info did not run successfully.
    │ exit code: 1
    ╰─> [121 lines of output]
    D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\setuptools\__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
    !!

    ********************************************************************************
    Requirements should be satisfied by a PEP 517 installer.
    If you are using pip, you can try `pip install –use-pep517`.
    ********************************************************************************

    !!
    dist.fetch_build_eggs(dist.setup_requires)
    ERROR: Exception:
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\urllib3\response.py”, line 438, in _error_catcher
    yield
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\urllib3\response.py”, line 561, in read
    data = self._fp_read(amt) if not fp_closed else b””
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\urllib3\response.py”, line 527, in _fp_read
    return self._fp.read(amt) if amt is not None else self._fp.read()
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py”, line 90, in read
    data = self.__fp.read(amt)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\http\client.py”, line 466, in read
    s = self.fp.read(amt)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\socket.py”, line 705, in readinto
    return self._sock.recv_into(b)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\ssl.py”, line 1307, in recv_into
    return self.read(nbytes, buffer)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\ssl.py”, line 1163, in read
    return self._sslobj.read(len, buffer)
    TimeoutError: The read operation timed out

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\cli\base_command.py”, line 160, in exc_logging_wrapper
    status = run_func(*args)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\cli\req_command.py”, line 247, in wrapper
    return func(self, options, args)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\commands\wheel.py”, line 170, in run
    requirement_set = resolver.resolve(reqs, check_supported_wheels=True)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py”, line 92, in resolve
    result = self._result = resolver.resolve(
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 481, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 348, in resolve
    self._add_to_criteria(self.state.criteria, r, parent=None)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 172, in _add_to_criteria
    if not criterion.candidates:
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\resolvelib\structs.py”, line 151, in __bool__
    return bool(self._sequence)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 155, in __bool__
    return any(self)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 143, in
    return (c for c in iterator if id(c) not in self._incompatible_ids)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 47, in _iter_built
    candidate = func()
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py”, line 206, in _make_candidate_from_link
    self._link_candidate_cache[link] = LinkCandidate(
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 297, in __init__
    super().__init__(
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 162, in __init__
    self.dist = self._prepare()
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 231, in _prepare
    dist = self._prepare_distribution()
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 308, in _prepare_distribution
    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\operations\prepare.py”, line 491, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\operations\prepare.py”, line 536, in _prepare_linked_requirement
    local_file = unpack_url(
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\operations\prepare.py”, line 166, in unpack_url
    file = get_http_url(
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\operations\prepare.py”, line 107, in get_http_url
    from_path, content_type = download(link, temp_dir.path)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\network\download.py”, line 147, in __call__
    for chunk in chunks:
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\network\utils.py”, line 63, in response_chunks
    for chunk in response.raw.stream(
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\urllib3\response.py”, line 622, in stream
    data = self.read(amt=amt, decode_content=decode_content)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\urllib3\response.py”, line 560, in read
    with self._error_catcher():
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\contextlib.py”, line 153, in __exit__
    self.gen.throw(typ, value, traceback)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\urllib3\response.py”, line 443, in _error_catcher
    raise ReadTimeoutError(self._pool, None, “Read timed out.”)
    pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=’files.pythonhosted.org’, port=443): Read timed out.
    Traceback (most recent call last):
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\setuptools\installer.py”, line 96, in _fetch_build_egg_no_warn
    subprocess.check_call(cmd)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\subprocess.py”, line 369, in check_call
    raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command ‘[‘D:\\openai.wiki\\stable-diffusion-webui\\automatic\\python.exe’, ‘-m’, ‘pip’, ‘–disable-pip-version-check’, ‘wheel’, ‘–no-deps’, ‘-w’, ‘C:\\Users\\薛定谔~1\\AppData\\Local\\Temp\\tmp56loe3fd’, ‘–quiet’, ‘cython’]’ returned non-zero exit status 2.

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
    File “”, line 2, in
    File “”, line 34, in
    File “C:\Users\薛定谔的猪\AppData\Local\Temp\pip-install-qcek6apk\basicsr_afec60c213c340879016d7651e7f5d4e\setup.py”, line 147, in
    setup(
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\setuptools\__init__.py”, line 106, in setup
    _install_setup_requires(attrs)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\setuptools\__init__.py”, line 79, in _install_setup_requires
    _fetch_build_eggs(dist)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\setuptools\__init__.py”, line 84, in _fetch_build_eggs
    dist.fetch_build_eggs(dist.setup_requires)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\setuptools\dist.py”, line 907, in fetch_build_eggs
    return _fetch_build_eggs(self, requires)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\setuptools\installer.py”, line 38, in _fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pkg_resources\__init__.py”, line 829, in resolve
    dist = self._resolve_dist(
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pkg_resources\__init__.py”, line 865, in _resolve_dist
    dist = best[req.key] = env.best_match(
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pkg_resources\__init__.py”, line 1135, in best_match
    return self.obtain(req, installer)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pkg_resources\__init__.py”, line 1147, in obtain
    return installer(requirement)
    File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\setuptools\installer.py”, line 98, in _fetch_build_egg_no_warn
    raise DistutilsError(str(e)) from e
    distutils.errors.DistutilsError: Command ‘[‘D:\\openai.wiki\\stable-diffusion-webui\\automatic\\python.exe’, ‘-m’, ‘pip’, ‘–disable-pip-version-check’, ‘wheel’, ‘–no-deps’, ‘-w’, ‘C:\\Users\\薛定谔~1\\AppData\\Local\\Temp\\tmp56loe3fd’, ‘–quiet’, ‘cython’]’ returned non-zero exit status 2.
    [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: metadata-generation-failed

    × Encountered error while generating package metadata.
    ╰─> See above for output.

    note: This is an issue with the package mentioned above, not pip.
    hint: See above for details.

    • klcoco
      klcoco 2023-12-13 23:59

      @klcoco您好,请问这是什么问题
      Preparing metadata (setup.py) … error
      error: subprocess-exited-with-error

      × python setup.py egg_info did not run successfully.
      │ exit code: 1
      ╰─> [121 lines of output]
      D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\setuptools\__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
      !!

      ********************************************************************************
      Requirements should be satisfied by a PEP 517 installer.
      If you are using pip, you can try `pip install –use-pep517`.
      ********************************************************************************

      !!
      dist.fetch_build_eggs(dist.setup_requires)
      ERROR: Exception:
      Traceback (most recent call last):
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\urllib3\response.py”, line 438, in _error_catcher
      yield
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\urllib3\response.py”, line 561, in read
      data = self._fp_read(amt) if not fp_closed else b””
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\urllib3\response.py”, line 527, in _fp_read
      return self._fp.read(amt) if amt is not None else self._fp.read()
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py”, line 90, in read
      data = self.__fp.read(amt)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\http\client.py”, line 466, in read
      s = self.fp.read(amt)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\socket.py”, line 705, in readinto
      return self._sock.recv_into(b)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\ssl.py”, line 1307, in recv_into
      return self.read(nbytes, buffer)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\ssl.py”, line 1163, in read
      return self._sslobj.read(len, buffer)
      TimeoutError: The read operation timed out

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\cli\base_command.py”, line 160, in exc_logging_wrapper
      status = run_func(*args)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\cli\req_command.py”, line 247, in wrapper
      return func(self, options, args)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\commands\wheel.py”, line 170, in run
      requirement_set = resolver.resolve(reqs, check_supported_wheels=True)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py”, line 92, in resolve
      result = self._result = resolver.resolve(
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 481, in resolve
      state = resolution.resolve(requirements, max_rounds=max_rounds)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 348, in resolve
      self._add_to_criteria(self.state.criteria, r, parent=None)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 172, in _add_to_criteria
      if not criterion.candidates:
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\resolvelib\structs.py”, line 151, in __bool__
      return bool(self._sequence)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 155, in __bool__
      return any(self)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 143, in
      return (c for c in iterator if id(c) not in self._incompatible_ids)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 47, in _iter_built
      candidate = func()
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py”, line 206, in _make_candidate_from_link
      self._link_candidate_cache[link] = LinkCandidate(
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 297, in __init__
      super().__init__(
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 162, in __init__
      self.dist = self._prepare()
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 231, in _prepare
      dist = self._prepare_distribution()
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 308, in _prepare_distribution
      return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\operations\prepare.py”, line 491, in prepare_linked_requirement
      return self._prepare_linked_requirement(req, parallel_builds)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\operations\prepare.py”, line 536, in _prepare_linked_requirement
      local_file = unpack_url(
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\operations\prepare.py”, line 166, in unpack_url
      file = get_http_url(
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\operations\prepare.py”, line 107, in get_http_url
      from_path, content_type = download(link, temp_dir.path)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\network\download.py”, line 147, in __call__
      for chunk in chunks:
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_internal\network\utils.py”, line 63, in response_chunks
      for chunk in response.raw.stream(
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\urllib3\response.py”, line 622, in stream
      data = self.read(amt=amt, decode_content=decode_content)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\urllib3\response.py”, line 560, in read
      with self._error_catcher():
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\contextlib.py”, line 153, in __exit__
      self.gen.throw(typ, value, traceback)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pip\_vendor\urllib3\response.py”, line 443, in _error_catcher
      raise ReadTimeoutError(self._pool, None, “Read timed out.”)
      pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=’files.pythonhosted.org’, port=443): Read timed out.
      Traceback (most recent call last):
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\setuptools\installer.py”, line 96, in _fetch_build_egg_no_warn
      subprocess.check_call(cmd)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\subprocess.py”, line 369, in check_call
      raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command ‘[‘D:\\openai.wiki\\stable-diffusion-webui\\automatic\\python.exe’, ‘-m’, ‘pip’, ‘–disable-pip-version-check’, ‘wheel’, ‘–no-deps’, ‘-w’, ‘C:\\Users\\薛定谔~1\\AppData\\Local\\Temp\\tmp56loe3fd’, ‘–quiet’, ‘cython’]’ returned non-zero exit status 2.

      The above exception was the direct cause of the following exception:

      Traceback (most recent call last):
      File “”, line 2, in
      File “”, line 34, in
      File “C:\Users\薛定谔的猪\AppData\Local\Temp\pip-install-qcek6apk\basicsr_afec60c213c340879016d7651e7f5d4e\setup.py”, line 147, in
      setup(
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\setuptools\__init__.py”, line 106, in setup
      _install_setup_requires(attrs)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\setuptools\__init__.py”, line 79, in _install_setup_requires
      _fetch_build_eggs(dist)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\setuptools\__init__.py”, line 84, in _fetch_build_eggs
      dist.fetch_build_eggs(dist.setup_requires)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\setuptools\dist.py”, line 907, in fetch_build_eggs
      return _fetch_build_eggs(self, requires)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\setuptools\installer.py”, line 38, in _fetch_build_eggs
      resolved_dists = pkg_resources.working_set.resolve(
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pkg_resources\__init__.py”, line 829, in resolve
      dist = self._resolve_dist(
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pkg_resources\__init__.py”, line 865, in _resolve_dist
      dist = best[req.key] = env.best_match(
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pkg_resources\__init__.py”, line 1135, in best_match
      return self.obtain(req, installer)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\pkg_resources\__init__.py”, line 1147, in obtain
      return installer(requirement)
      File “D:\openai.wiki\stable-diffusion-webui\automatic\lib\site-packages\setuptools\installer.py”, line 98, in _fetch_build_egg_no_warn
      raise DistutilsError(str(e)) from e
      distutils.errors.DistutilsError: Command ‘[‘D:\\openai.wiki\\stable-diffusion-webui\\automatic\\python.exe’, ‘-m’, ‘pip’, ‘–disable-pip-version-check’, ‘wheel’, ‘–no-deps’, ‘-w’, ‘C:\\Users\\薛定谔~1\\AppData\\Local\\Temp\\tmp56loe3fd’, ‘–quiet’, ‘cython’]’ returned non-zero exit status 2.
      [end of output]

      note: This error originates from a subprocess, and is likely not a problem with pip.
      error: metadata-generation-failed

      × Encountered error while generating package metadata.
      ╰─> See above for output.

      note: This is an issue with the package mentioned above, not pip.
      hint: See above for details.

  • 大漠新人
    大漠新人 2024-03-09 12:00

    大佬求教下,我的电脑macos,处理器和GPU都是intel的还能部署stable-diffusion-webui不

  • 喵了个孔咪
    喵了个孔咪 2024-10-24 13:16

    拜托大佬解答一下,谢谢大佬
    Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
    Couldn’t determine assets’s hash: 6f7db241d2f8ba7457bac5ca9753331f0c266917, attempting autofix…
    Fetching all contents for assets
    Pruning assets
    Nothing new to pack.
    Traceback (most recent call last):
    File “C:\openai.wiki\stable-diffusion-webui\launch.py”, line 48, in
    main()
    File “C:\openai.wiki\stable-diffusion-webui\launch.py”, line 39, in main
    prepare_environment()
    File “C:\openai.wiki\stable-diffusion-webui\modules\launch_utils.py”, line 411, in prepare_environment
    git_clone(assets_repo, repo_dir(‘stable-diffusion-webui-assets’), “assets”, assets_commit_hash)
    File “C:\openai.wiki\stable-diffusion-webui\modules\launch_utils.py”, line 178, in git_clone
    current_hash = run_git(dir, name, ‘rev-parse HEAD’, None, f”Couldn’t determine {name}’s hash: {commithash}”, live=False).strip()
    File “C:\openai.wiki\stable-diffusion-webui\modules\launch_utils.py”, line 168, in run_git
    return run(f'”{git}” -C “{dir}” {command}’, desc=desc, errdesc=errdesc, custom_env=custom_env, live=live)
    File “C:\openai.wiki\stable-diffusion-webui\modules\launch_utils.py”, line 116, in run
    raise RuntimeError(“\n”.join(error_bits))
    RuntimeError: Couldn’t determine assets’s hash: 6f7db241d2f8ba7457bac5ca9753331f0c266917.
    Command: “git” -C “C:\openai.wiki\stable-diffusion-webui\repositories\stable-diffusion-webui-assets” rev-parse HEAD
    Error code: 128
    stdout: HEAD

    stderr: fatal: ambiguous argument ‘HEAD’: unknown revision or path not in the working tree.
    Use ‘–‘ to separate paths from revisions, like this:
    ‘git […] — […]’

    请按任意键继续. . .

  • Dinah
    Dinah 2024-11-08 21:50

    We absolutely love your blog and find a lot of your post’s to be what precisely I’m looking for.

    can you offer guest writers to write content available for you?
    I wouldn’t mind composing a post or elaborating on a number of the subjects you write related to here.
    Again, awesome weblog!

    my homepage; A片

  • homepage
    homepage 2025-02-24 05:35

    Приветствуем вас на нашем веб-сайте!

    Здесь вы найдёте всё необходимое для успешного управления своими финансами.
    Мы предлагаем широкий спектр финансовых продуктов,
    которые помогут вам достичь ваших целей и обеспечить стабильность
    в будущем.
    В нашем ассортименте представлены различные виды банковских продуктов, инвестиции,
    страхование, кредиты и многое другое.
    Мы постоянно обновляем нашу базу
    данных, чтобы вы всегда
    были в курсе последних тенденций и инноваций на
    финансовом рынке.
    Наши специалисты помогут вам
    выбрать наиболее подходящий продукт, учитывая ваши индивидуальные потребности и предпочтения.
    Мы предоставляем консультации и рекомендации, чтобы вы могли принять обоснованное решение и
    избежать возможных рисков.

    Не упустите возможность воспользоваться нашими услугами и
    откройте для себя мир финансовых возможностей!
    Заходите на наш сайт, ознакомьтесь с каталогом продуктов и начните свой путь к финансовой стабильности
    прямо сейчас!
    Почта Банк – Кредит наличными в Ногинске

  • telegrass2u.com
    telegrass2u.com 2025-02-24 16:04

    With havin so much written content do you ever run into any issues of plagorism or
    copyright infringement? My site has a lot of exclusive content I’ve either created myself
    or outsourced but it seems a lot of it is popping it up all over the web without my permission. Do
    you know any techniques to help prevent content from being stolen? I’d genuinely appreciate it.

  • transgender porn post op
    transgender porn post op 2025-02-25 17:26

    Wow, amazing blog layout! How log have you been blogging for?
    you made blogging look easy. The overall look of your site is
    fantastic, let alone tthe content!

微信