本文为windows的N卡部署stable-diffusion-webui的教程,A卡或者macOS用户可以省流略过
注意
建议根据webui的安装流程进行安装,如果实在不行就使用整合包。
秋葉aaaki整合包介绍:https://www.bilibili.com/video/BV1iM4y1y7oA
整合包下载地址:https://pan.baidu.com/s/1TK7UyX5lgNjdwdfcmYCI5Q 提取码:c132
我已经尽量写了一个详细文字教程和视频教程。
如果无法安装或者使用遇到问题,请根据报错提示自行搜索解决方法,(我也是菜鸡)
文章最下面有常见报错的解决办法。关于报错信息的留言,我已经回答我懂的。继续留言我也不会回复,请根据报错提示自行搜索解决方法……
以下为webui推荐的安装流程
说明:
1. 配置要求:需要使用N卡,Stable Diffusion至少需要4GB显存才能在本地运行。最低配置需要4GB显存,基本配置6GB显存,推荐配置12GB显存或者以上。
2. 网络要求:安装过程中需要开启全局魔法上网
3. 本地化部署步骤相对比较繁琐,对于小白并不友好。如果遇到各种报错自己无法解决,可以使用秋叶的一键包或者去隔壁玩(Midjourney)
4. 也有大佬给小白写了启动器,可以看看(https://github.com/EmpireMediaScience/A1111-Web-UI-Installer)
5. Stable Diffusion开源之后爆发式更新了很多工具,这些工具大部分也是要自己部署的。所以自己克服各种报错的话后面会玩得会比较开心。
目录:
准备:
一步步来,需要下载好Python 3.10.6,Git ,CUDA,还有Stable Diffusion的模型文件
① Python 3.10.6
1. 下载地址:https://www.python.org/downloads/release/python-3106/
2. 说明:使用其他版本可能会报错,如果你有多个Python版本请用Anaconda配置多环境
② Git
1. 下载地址:https://git-scm.com/download/win
2. Git作用是拉取远程Github仓库代码,可以让Stable Diffusion实时更新,第一时间使用全新功能。(webui更新非常快,有时候一个月发布十几次更新)
③ CUDA
1. 下载地址:https://developer.nvidia.com/cuda-toolkit-archive
2. CUDA是NVIDIA显卡用来跑算法的依赖程序,先在“命令提示符”运行命令nvidia-smi查看自己显卡支持的 CUDA版本(升级驱动程序可以支持更高级的CUDA版本)

3. 接下来前往英伟达官网(https://developer.nvidia.com/cuda-toolkit-archive),下载对应版本。 注意请下载你对应的版本号最高的版本,比如我的是11.5的,那就下11.5.2(这里最后的.2意思是,11.5版本的2号升级版)
4. 下载的时候注意下载exe_local(离线安装包),在线可能比较慢

④ 模型
1. 下载Stable Diffusion的模型,HuggingFace和Civitai有各种各样的模型可以下载,可以根据需要下载一个自己喜欢的模型。下载的模型一般是2GB以上(ckpt或safetensors后缀),如果太小可能是其他模型(如Lora)
2. Civitai:https://civitai.com/(图片模糊那种小朋友不要下载)
3. HuggingFace:https://huggingface.co/
Stable Diffusion 常用模型科普
Stable Diffusion有各种模型,这里有你想知道的一切
安装
- 安装Python 3.10.6,安装的时候记得要勾选Add Python to PATH
- 安装完成之后可以在“命令提示符”运行命令
Python -V,如果返回“Python 3.10.6”那就是成功安装了 - 然后输入
python -m pip install --upgrade pip安装升级pip到最新版。 - 安装Git,一路点下一步
- 安装CUDA
- 找一个空间比较大的硬盘(以后可能放很多模型),新建一个文件夹(注意路径最好不要使用中文,文件夹名称最好也是英文)
- 在文件夹的地址栏输入CMD,回车,启动命令提示行窗口,输入以下命令:
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui - 这个时候就会在文件夹中,生成stable-diffusion-webui文件夹
- 将刚刚下载的模型文件(ckpt或safetensors后缀)移动到stable-diffusion-webui\models\Stable-diffusion的文件夹里面(这里是专门放SD的模型文件夹)
- 在stable-diffusion-webui文件夹下找到webui-user.bat,右键编辑,添加Python路径和命令参数。Python路径可以在windows搜索Python找到安装的路径。如
"C:\Users\用户名\AppData\Local\Programs\Python\Python310\python.exe"(命令参数我这里用--xformers可以改善内存消耗和速度,还有其他参数,可以根据自己需要添加)设置完成之后保存关闭。 - 开启全局魔法上网,确保可以正常科学上网
- 双击运行webui-user.bat,运行期间会安装下载各种工具,所用时间15分钟~2小时不等,请耐心等待。
- 直到最后出现http://127.0.0.1:7860的地址,说明已经可以正常运行。(注意不要关闭这个窗口,关闭就退出了)
- 复制http://127.0.0.1:7860到浏览器打开(可以保存为书签,下次打开比较方便),然后就可以输入咒语生成图片了
示例:
@echo off
set PYTHON="C:\Users\用户名\AppData\Local\Programs\Python\Python310\python.exe"
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--xformers
call webui.bat
Stable Diffusion webui常用命令参数
webui-user.bat文件,右键编辑,可以根据需要添加命令参数。这里详细说明了各种常用命令参数
怎么更新?
webui更新非常频繁,有时候一个月发布十几次更新
更新方法:打开stable-diffusion-webui文件夹,在空白处右键选择Git Bash Here,输入git pull
就会自动更新,如果是最新版就会提示Already up to date.
怎么修改模型路径?
随着越来越深入地使用,模型文件可能会非常大,如果同时在使用不同GUI工具,可以使用mklink符号链接修改(共享)模型文件路径
mklink符号链接类似文件夹的快捷方式,使用mklink命令创建符号链接的语法是:mklink /D link target
也就是这样:mklink /D "A:\A路径\A文件夹" "B:\B路径\B源文件夹"
mklink视频教程:https://www.bilibili.com/video/BV1qg4y1x7WT
视频教程
到很多小伙伴留言无法使用,所以做了一个官方推荐的安装流程
希望可以帮到你:
本来发B站的,但是阿B不过审(太难了),暂停有广告的话,可以打开这个播放地址:https://www.ixigua.com/7202116822320022020?logTag=aa7b72de8fe031361fcb
pytorch 安装报错
提示
ERROR: Could not find a version that satisfies the requirement torch==1.13.1+cu117
ERROR: No matching distribution found for torch==1.13.1+cu117
可以尝试:
1.打开命令提示符
2.输入:pip install torch --extra-index-url https://download.pytorch.org/whl/cu117
参考:https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/7166
gfpgan报错
提示
exit code: 128
See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
解决办法:
报错128问题属于网络问题,可以切换别的节点试试
各种报错无法解决
先淡定,不要慌
可以试试秋叶的启动器启动和修复报错:https://www.bilibili.com/video/BV1ne4y1V7QU
相关资源
- stable diffusion webui:https://github.com/AUTOMATIC1111/stable-diffusion-webui
- 关键词检索(laion-aesthetic-6pls):https://laion-aesthetic.datasette.io/laion-aesthetic-6pls/images
- 艺术风格汇总list of artists for SD:https://rentry.org/artists_sd-v1-4
- AI作品参考:
Playground AI:https://playgroundai.com/
Lexica:https://lexica.art/
krea:https://www.krea.ai/ - 提示语辅助生成promptoMANIA:https://promptomania.com/
- 模型下载:
Civitai:https://civitai.com/
Hugging Face:https://huggingface.co/models - Textual Inversion Embeddings:https://cyberes.github.io/stable-diffusion-textual-inversion-models/




评论(67)
请问下,生成的图片全是纯黑的图片,问题出在哪? 没有任何报错
不知道……
楼主,按照教程顺序装的,但是图生图获取关键词就出现这个错误,怎么处理?
Downloading CLIP categories…
downloading default CLIP interrogate categories: FileExistsError
Traceback (most recent call last):
File”E: Stable Diffusionstable-diffusion-webui moduleslinterrogate.py”, line 35,in download default clip_interrogate_categories
os.makedirs(tmpdir)
File “C:\Users\AdminAppData Local ProgramsiPython Python310)1iblos.py”,line 225, in makedirs
mkdir(name mode)
FileExistsError: [WinError 183] 当文件已存在时,无法创建该文件。:interrogate_tmp’
Error interrogating
Traceback (most recent call last):
File”E: Stable Diffusion stable-diffusion-webui modules interrogate.py”,line 211,in interrogatefor name, topn, items in self.categories():
File”E: Stable Diffusion stable-diffusion-webui modules interrogate.py”,line 62,in categoriesdownload default_clip interrogate categories(self.content dir)
File”E; Stable Diffusionistable-diffusion-webui module interrogate.py , line 44,in download default_clip_interrogate_categories
os.remove(tmpdir)
PermissionError: [WinError 5] 拒绝访问。: ‘interrogate_tmp’
我自己按照网上别人遇到过的,说重新安装CLIP,我删掉了整个重新安装一遍,然后CLIP 800多M的自动下载安装完,还是一样的错误提示
搞不懂😂,可以试试重新部署,然后用秋叶的启动器(地址在楼上)
Error
Something went wrong
Expecting value: line 1 column 1 (char 0)
打开http://127.0.0.1:7860/出现这个是咋回事啊大佬
这个不清楚😂
我也是
首先感谢up分享,想请教一下
Error code: 128
stdout:
stderr: Cloning into ‘D:\huihuamoxing\stable-diffusion-webui\repositories\taming-transformers’…
fatal: unable to access ‘https://kgithub.com/CompVis/taming-transformers.git/’: SSL certificate problem: certificate has expired
是哪里出问题
提示kgithub.com这个镜像网站证书过期了,可以换别的镜像网站,或者魔法上网
还有别的镜像网站吗?
可以搜索一下“Github镜像网站”看看
为什么我要下载2.3gb,速度只有15kb
因为webui要下载工具才能用……速度是网络原因,可以切换节点看看
我这也报错了,麻烦看下
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 955df7751eef11bb7697e2d77f6b8a6226b21e13
Traceback (most recent call last):
File “F:\StableDiffusion\stable-diffusion-webui\launch.py”, line 351, in
prepare_environment()
File “F:\StableDiffusion\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 “F:\StableDiffusion\stable-diffusion-webui\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 “F:\StableDiffusion\stable-diffusion-webui\launch.py”, line 97, in run
raise RuntimeError(message)
RuntimeError: Couldn’t determine Taming Transformers’s hash: 24268930bf1dce879235a7fddd0b2355b84d7ea6.
Command: “git” -C “F:\StableDiffusion\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 […] — […]’
同楼上,试试启动器 https://www.bilibili.com/video/BV1ne4y1V7QU
ERROR: No matching distribution found for gradio==3.23 大佬,遇到这个是怎么回事
网络问题,可以尝试修改镜像源。参考(https://blog.csdn.net/qq_41234663/article/details/129783216)
venv “E:\AI\stable-diffusion-webui-master\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:
File “E:\AI\stable-diffusion-webui-master\launch.py”, line 351, in
prepare_environment()
File “E:\AI\stable-diffusion-webui-master\launch.py”, line 285, in prepare_environment
git_clone(taming_transformers_repo, repo_dir(‘taming-transformers’), “Taming Transformers”, taming_transformers_comm
it_hash)
File “E:\AI\stable-diffusion-webui-master\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}”).st
rip()
File “E:\AI\stable-diffusion-webui-master\launch.py”, line 97, in run
raise RuntimeError(message)
RuntimeError: Couldn’t determine Taming Transformers’s hash: 24268930bf1dce879235a7fddd0b2355b84d7ea6.
Command: “git” -C “E:\AI\stable-diffusion-webui-master\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 […] — […]’
总是报错,该怎么办呢
可以试试秋叶的启动器启动和修复报错:https://www.bilibili.com/video/BV1ne4y1V7QU
G:\stable-diffusion>git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
Cloning into ‘stable-diffusion-webui’…
fatal: unable to access ‘https://github.com/AUTOMATIC1111/stable-diffusion-webui/’: Could not resolve host: github.com
G:\stable-diffusion>
想请教一下,遇到这种情况该怎么做呀?
一般是网络问题,可以试试修改host文件(C:\Windows\System32\drivers\etc)参考:https://blog.csdn.net/Gherbirthday0916/article/details/125504214和https://blog.51cto.com/u_15127654/4317961
Commit hash: 955df7751eef11bb7697e2d77f6b8a6226b21e13
Fetching updates for Stable Diffusion…
Checking out commit for Stable Diffusion with hash: 47b6b607fdd31875c9279cd2f4f16b92e4ea958e…
Traceback (most recent call last):
File “G:\stable-diffusion\stable-diffusion-webui\launch.py”, line 351, in
prepare_environment()
File “G:\stable-diffusion\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_commit_hash)
File “G:\stable-diffusion\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 “G:\stable-diffusion\stable-diffusion-webui\launch.py”, line 97, in run
raise RuntimeError(message)
RuntimeError: Couldn’t checkout commit 47b6b607fdd31875c9279cd2f4f16b92e4ea958e for Stable Diffusion.
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。
Command: “git” -C “G:\stable-diffusion\stable-diffusion-webui\repositories\stable-diffusion-stability-ai” checkout 47b6b607fdd31875c9279cd2f4f16b92e4ea958e
Error code: 128
stdout:
stderr: fatal: reference is not a tree: 47b6b607fdd31875c9279cd2f4f16b92e4ea958e
——–
[已退出进程,代码为 1 (0x00000001)]
提示:检测到 SD-WebUI 进程退出状态不正常,建议前往疑难解答页面扫描错误记录或寻求其他帮助。
哥,想问问这个就是单纯的因为网不行吗?
搞不懂,可以试试启动器 https://www.bilibili.com/video/BV1ne4y1V7QU
谢谢哥
说一下几个问题。。
首先是指定python路径的问题,我也遇到了指定了也按照步骤进行了,但是还是显示找不到的问题,后来直接把前缀取消了,直接指定python.exe,他就能识别到了。
但是到了最后一步运行bat,然后安装gfpgan报错的问题一直没解决,换了无数个节点,试过规则模式和全局模式,也试过在windows里添加github的凭据,但是都依然无法解决。
有Error code:1,也有exit code: 128
venv “E:\AIGC\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: 955df7751eef11bb7697e2d77f6b8a6226b21e13
Installing gfpgan
File “E:\AIGC\stable-diffusion-webui\launch.py”, line 351, in
prepare_environment()
File “E:\AIGC\stable-diffusion-webui\launch.py”, line 259, in prepare_environment
run_pip(f”install {gfpgan_package}”, “gfpgan”)
File “E:\AIGC\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:\AIGC\stable-diffusion-webui\launch.py”, line 97, in run
raise RuntimeError(message)
RuntimeError: Couldn’t install gfpgan.
Command: “E:\AIGC\stable-diffusion-webui\venv\Scripts\python.exe” -m pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 –prefer-binary
Error code: 2
stdout: Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\\appdata\local\temp\pip-req-build-rq7_7mf7
Resolved https://github.com/TencentARC/GFPGAN.git to commit 8d2447a2d918f8eba5a4a01463fd48e45126a379
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status ‘done’
Collecting basicsr>=1.4.2
Downloading basicsr-1.4.2.tar.gz (172 kB)
————————————– 172.5/172.5 kB 1.3 MB/s eta 0:00:00
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status ‘done’
Collecting facexlib>=0.2.5
Downloading facexlib-0.2.5-py3-none-any.whl (59 kB)
—————————————- 59.6/59.6 kB 3.1 MB/s eta 0:00:00
Collecting lmdb
Downloading lmdb-1.4.0-cp310-cp310-win_amd64.whl (100 kB)
————————————– 100.1/100.1 kB 6.0 MB/s eta 0:00:00
Requirement already satisfied: numpy in e:\aigc\stable-diffusion-webui\venv\lib\site-packages (from gfpgan==1.3.5) (1.24.2)
Collecting opencv-python
Downloading opencv_python-4.7.0.72-cp37-abi3-win_amd64.whl (38.2 MB)
—– 4.9/38.2 MB 24.3 MB/s eta 0:00:02
stderr: Running command git clone –filter=blob:none –quiet https://github.com/TencentARC/GFPGAN.git ‘C:\Users\\AppData\Local\Temp\pip-req-build-rq7_7mf7’
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
ERROR: Exception:
Traceback (most recent call last):
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\urllib3\response.py”, line 438, in _error_catcher
yield
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\urllib3\response.py”, line 561, in read
data = self._fp_read(amt) if not fp_closed else b””
File “E:\AIGC\stable-diffusion-webui\venv\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 “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py”, line 90, in read
data = self.__fp.read(amt)
File “C:\Users\\AppData\Local\Programs\Python\Python310\lib\http\client.py”, line 465, in read
s = self.fp.read(amt)
File “C:\Users\\AppData\Local\Programs\Python\Python310\lib\socket.py”, line 705, in readinto
return self._sock.recv_into(b)
File “C:\Users\\AppData\Local\Programs\Python\Python310\lib\ssl.py”, line 1274, in recv_into
return self.read(nbytes, buffer)
File “C:\Users\\AppData\Local\Programs\Python\Python310\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:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\base_command.py”, line 160, in exc_logging_wrapper
status = run_func(*args)
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\req_command.py”, line 247, in wrapper
return func(self, options, args)
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\commands\install.py”, line 419, in run
requirement_set = resolver.resolve(
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py”, line 92, in resolve
result = self._result = resolver.resolve(
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 373, in resolve
failure_causes = self._attempt_to_pin_criterion(name)
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 213, in _attempt_to_pin_criterion
criteria = self._get_updated_criteria(candidate)
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 204, in _get_updated_criteria
self._add_to_criteria(criteria, requirement, parent=candidate)
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py”, line 172, in _add_to_criteria
if not criterion.candidates:
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\structs.py”, line 151, in __bool__
return bool(self._sequence)
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 155, in __bool__
return any(self)
File “E:\AIGC\stable-diffusion-webui\venv\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:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py”, line 47, in _iter_built
candidate = func()
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py”, line 206, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 297, in __init__
super().__init__(
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 162, in __init__
self.dist = self._prepare()
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py”, line 231, in _prepare
dist = self._prepare_distribution()
File “E:\AIGC\stable-diffusion-webui\venv\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:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py”, line 491, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py”, line 536, in _prepare_linked_requirement
local_file = unpack_url(
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py”, line 166, in unpack_url
file = get_http_url(
File “E:\AIGC\stable-diffusion-webui\venv\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:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\network\download.py”, line 147, in __call__
for chunk in chunks:
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\progress_bars.py”, line 53, in _rich_progress_bar
for chunk in iterable:
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\network\utils.py”, line 63, in response_chunks
for chunk in response.raw.stream(
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\urllib3\response.py”, line 622, in stream
data = self.read(amt=amt, decode_content=decode_content)
File “E:\AIGC\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\urllib3\response.py”, line 560, in read
with self._error_catcher():
File “C:\Users\\AppData\Local\Programs\Python\Python310\lib\contextlib.py”, line 153, in __exit__
self.gen.throw(typ, value, traceback)
File “E:\AIGC\stable-diffusion-webui\venv\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.333
安装gfpgan报错一般是网络问题,可以试试手动安装。参考:https://blog.csdn.net/weixin_40735291/article/details/129153398
你好,请问网站打开以后出现Expecting value: line 1 column 1 (char 0)这个报错要怎么解决呢?
我也不清楚。。。
请问UP,安装显示这个怎么解决?是网络问题?
Error code: 128
stdout:
stderr: Cloning into ‘D:\Stable Diffuision\stable-diffusion-webui\repositories\taming-transformers’…
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
fatal: expected ‘packfile’
128报错一般为网络问题,你这个提示可以试试增加缓冲区域:
git config --global http.postBuffer 524288000卡在打开webui-user.bat 提示系统找不到指定路径 我按步骤做了啊
请添加你自己电脑的Python路径,而不是直接复制我示例的路径,因为我的“用户名”不是你的“用户名”。
对的啊 我是复制文件路径
用户名可以是中文吗
可能是因为路径有中文的原因,可以试试卸载Python后重装,选择第二项自定义英文路径(
Customize installation),记得勾选Add Python to PATH请教一下up主,运行了两次webui users.bat都在下载到一半的时候爆了这个Wheel ‘torch’ located at 地址torch-1.13.1+cu117-cp310-cp310-win_amd64.whl is invalid.这是怎么回事啊
可以尝试离线安装pytorch,步骤:
1.到这里(https://download.pytorch.org/whl/torch/)下载对应的离线包如:
torch-1.13.1+cu117-cp310-cp310-win_amd64.whl2.复制下载好的whl文件到stable-diffusion-webui文件夹,在窗口地址栏栏输入“CMD”回车,然后输入命令:
venv\scripts\activate && pip install torch-1.13.1+cu117-cp310-cp310-win_amd64.whl3.注意命令需要和下载的文件夹名一样
谢谢up主,但是我做到最后一步的时候,生产图片后给我报错NansException: A tensor with all NaNs was produced in Unet. This could be either because there’s not enough precision to represent the picture, or because your video card does not support half type. Try setting the “Upcast cross attention layer to float32” option in Settings > Stable Diffusion or using the –no-half commandline argument to fix this. Use –disable-nan-check commandline argument to disable this check.这怎么办
在stable-diffusion-webui文件夹下的webui-user.bat文件,右键编辑,添加命令参数:
--no-half --no-half-vae --disable-nan-check即可。可以看看这个常用命令参数说明 (https://cgexe.com/39667/)
谢谢up主,我昨天弄好了,不过抽象的是我一气之下关机后吃泡面,然后开机后再运行一次就好了,感谢up的帮助,终于能自己玩了。(o゚v゚)ノ
&&显示这部是有效的语句分割符
请教一下,我遇到一个问题,已经可以打开“http://127.0.0.1:7860/”了,但是输入prompt之后点击“生成”,进度条一动不动,点“中止”或者“跳过”也没有反应。
第一次生成会比较慢,耐心等待一会。如果一直没有出图,就看看报错信息。
非常感谢!!
操。搞定了~百度搜了一下~
老哥,我想请教一下,我按照教程走,在复制python地址后,点击webui-user.bat,没有出现填写python地址和输入xformers的地方,他自己运行了,之后步骤又和你一样,在替换了kgithub后依然提示有问题,他说可能不是pip的问题,是哪里出了问题
请根据报错的提示去搜索相关信息。很多报错我也不知道怎么回事,也是用搜索引擎解决问题的。
emmmm,这个报错信息要如何理解,编程小白啊…..我是通过百度翻译 来看哪里有问题的…但是吧感觉不是很准确。后续xformers我是用编辑方式进去输入了,然后看了其他人用了开发者边车这个软件,但是貌似也没有什么效果…他这个速度超级慢,是真的迷….然后现在卡住了installing open
哈,老哥,我解决了,按照你前面的步骤一直到替换kgithub.com都没有问题,我没有替换,就像你说的,这网络限制可以使用他们自己git网站的东西,虽然慢了点儿,我想起你说的要10min,确实10min后他运行好了,出现了神奇的地址,哈哈。
根据教程安装,如果不行就用一键包。(或者氪金玩midjourney)
链接没了
已更新