记得先看站点说明,能帮助您解决很多问题!最新汉化资讯在Facebook专页发布,敬请关注。

[教程]本地部署 AI作画工具 stable-diffusion-webui 多种模型 可生成NSFW

电脑软件 tianshi 1年前 (2022-11-11) 11114次浏览 17个评论 扫描二维码
文章目录[隐藏]

AI作画最近非常火热啊,本文是在使用N卡的电脑上,本地部署stable-diffusion-webui前端+替换默认的模型,实现生成高质量的二次元图像,并且可以不受限制的生成图片(在线版一般会阻止NSFW内容生成)。
所需资源下载位置:

Git:https://git-scm.com/download
CUDA:https://developer.nvidia.com/cuda-toolkit-archive
Python3.10.6:https://www.python.org/downloads/release/python-3106/
waifu-diffusion:https://huggingface.co/hakurei/waifu-diffusion
waifu-diffusion-v1-3:https://huggingface.co/hakurei/waifu-diffusion-v1-3
stable-diffusion-v-1-4-original: https://huggingface.co/CompVis/stable-diffusion-v-1-4-original
stable-diffusion-v-1-5: https://huggingface.co/runwayml/stable-diffusion-v1-5
stable-diffusion-webui:https://github.com/AUTOMATIC1111/stable-diffusion-webui
NovelAILeaks 4chan:https://pub-2fdef7a2969f43289c42ac5ae3412fd4.r2.dev/naifu.tar
NovelAILeaks animefull-latest:https://pub-2fdef7a2969f43289c42ac5ae3412fd4.r2.dev/animefull-latest.tar

介绍

我们一起看下现在 AI 的作画水平。

输入文字关键词描述,AI 直接生成图像作品:

输入真实场景图片,图片二次元化:

甚至可以把自己二次元化:

这种算法,不是检索,检索网络上已有的作品,而完全地重新创作。

开始

首先请确定你有基本的理解能力和动手能力,基本的网络搜索检索信息的能力。过于基础的东西比如“什么是命令行”,“如何下载文件”,“magnet是什么东西”,“满屏英语看不懂”,“怎么给Python,Git加上魔法上网”等等这些过于基础的问题,我这里无法做出说明,也不会解答。

要顺利运行 stable-diffusion-webui与模型,
需要足够大的显存,最低配置4GB显存,基本配置6GB显存,推荐配置12GB显存。
当然内存也不能太小,最好大于16GB。

显存大小决定了你能生成的图片尺寸,一般而言图片尺寸越大,AI能发挥的地方越多,画面里填充的细节就越多。
GPU主频和显存位宽,则决定了你能生成的多快。
当显存不足时,只能用时间换性能,将生成时间延长4倍,甚至8~10倍来生成同样的图片。

教程部署环境为
CPU:Intel® Core™ i7-10750H
GPU:NVIDIA Quadro T2000 with Max-Q Design (显存4GB)
内存:16GB * 4
磁盘:1TB * 2 SSD
OS:win11 21H1

准备运行环境

需要准备3个或4个东西
Python 3.10.6,Git ,CUDA,这三个的下载地址在文章的最前边。
视情况,你可能还需要一个魔法上网工具(假设你的魔法上网工具代理在127.0.0.1:6808)

安装 Python 3.10.6 与 pip

我这里采用直接系统内安装Python 3.10.6的方式
如果你会用Miniconda,也可以用Miniconda实现Python多版本切换,具体我这里不教需要的自己琢磨。

访问 Python3.10.6 下载页面
把页面拉到底,找到【Windows installer (64-bit)】点击下载

安装是注意,到这一步,需要如下图这样勾选 Add Python to PATH

然后再点上边的 Install Now
python

安装完成后,命令行里输入Python -V,如果返回Python 3.10.6那就是成功安装了。

命令行里输入 python -m pip install --upgrade pip安装升级pip到最新版。

安装 Git

访问 Git 下载页面

点击【Download for Windows】,【64-bit Git for Windows Setup】点击下载

一路下一步安装

命令行运行git --version,返回git version 2.XX.0.windows.1就是安装成功了。

安装 CUDA

命令行运行nvidia-smi,看下自己显卡支持的 CUDA版本
(升级显卡驱动有可能会让你支持更高版本的 CUDA)

接下来前往英伟达 CUDA 官网,下载对应版本。
注意请下载,你对应的版本号最高的版本,比如我的是11.7的,那就下11.7.1(这里最后的.1意思是,11.7版本的1号升级版)

选你自己的操作系统版本,注意下个离线安装包【exe [local]】,在线安装的话,速度还是比较堪忧的。

下载stable-diffusion-webui

找一个你喜欢的目录,在资源管理器,地址栏里敲CMD,敲回车,启动命令提示行窗口,输入以下命令

# 下载项目源代码
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
# 切换到项目根目录
cd stable-diffusion-webui

他会在你选择的目录下生成stable-diffusion-webui文件夹,放项目
这东西本体+虚拟环境+集中模型+增强脚本最后会很大的,目前我已经占用了快20GB了,请放到磁盘空间富裕的盘符
整个路径中,不要有中文(比如“C:\AI作画工具\”),也不要有空格(比如“C:\Program Files”)可以避免很多奇怪的问题。

下载模型文件

stable-diffusion-webui只是个工具,他需要后端的训练模型来让AI参考建模。
目前比较主流的模型有

stable-diffusion:偏真人(一般简称为 SD 模型, SDwebui 模型)
waifu-diffusion:偏向二次元(一般简称 Waifu 模型,WD模型)
Novel-AI-Leaks:更加偏向二次元(一般简称 Naifu 模型)
模型文件一般都比较大,请找个空间富裕的磁盘下载。

模型的大致区别

名称 需求 效果 备注
stable-diffusion (4GB emaonly模型) 2GB 显存起步 出图速度 10s,单次最大出 920×920 适合出图用
stable-diffusion (7GB full ema模型) 4GB 显存起步 带最后一次训练的权重,所以费显存 适合训练用
waifu (Float 16 EMA 模型) 2GB显存起步 与stable性能接近 ,显存占用略高 适合出图用
waifu (Float 32 EMA 模型) 2GB显存起步 与stable性能接近,显存占用略高 适合出图用,出图质量其实和16差别不大
waifu (Float 32 Full 模型) 4GB显存起步 与stable性能接近,显存占用略高 适合出图或训练用
waifu (Float 32 Full + Optimizer 模型) 8GB显存起步 与stable性能接近,显存占用略高 适合训练用
Naifu (4GB pruned 模型) 最低8GB显存&8GB显存 和官方比较接近 适合出图用
Naifu (7GB latest模型) 最低8GB显存(向上浮动10GB) 和官方比较接近 适合出图或训练用

注意这里显存指的是512X512尺寸,默认配置下,出图时软件所需要占用的显存。2GB显存起步,意味浙你电脑显卡实际显存最少也要3GB(因为系统桌面,浏览器的显示也需要占用一部分显存)
通过增加各种“优化”参数,可以通过性能的部分下降换取显存占用减少。
Nafu模型名称说明1:animefull-final-pruned = full-latest = NAI 全量模型(包含NSFW)
Nafu模型名称说明2:animesfw-latest = NAI 基线模型

下载stable-diffusion

下载的方式有 3 个

官网下载:https://huggingface.co/CompVis/stable-diffusion-v-1-4-original
File storage:https://drive.yerf.org/wl/?id=EBfTrmcCCUAGaQBXVIj5lJmEhjoP1tgl

磁力链接 magnet:?xt=urn:btih:3a4a612d75ed088ea542acac52f9f45987488d1c&dn=sd-v1-4.ckpt&tr=udp%3a%2f%2ftracker.openbittorrent.com%3a6969%2fannounce&tr=udp%3a%2f%2ftracker.opentrackr.org%3a1337

将解压出.ckpt文件放在\stable-diffusion-webui\models\Stable-diffusion\ 下
文件名可以是任何你喜欢的英文名。比如stable-diffusion .ckpt

下载 waifu-diffusion

官网下载:https://huggingface.co/hakurei/waifu-diffusion-v1-3/tree/main

下那个 wd-v1-3-float16.ckpt 就行

将解压出.ckpt文件放在\stable-diffusion-webui\models\Stable-diffusion\ 下
文件名可以是任何你喜欢的英文名.比如waifu-diffusion-16.ckpt

下载 NovelAILeaks(推荐)

Naifu Leaks 4chan:https://pub-2fdef7a2969f43289c42ac5ae3412fd4.r2.dev/naifu.tar

Naifu Leaks animefull-latest:https://pub-2fdef7a2969f43289c42ac5ae3412fd4.r2.dev/animefull-latest.tar

找到naifu\models\animefull-final-pruned\model.ckpt放在\stable-diffusion-webui\models\Stable-diffusion\ 下文件名可以是任何你喜欢的英文名,比如Naifu-Leaks- 4chan.ckpt

找到naifu\models\animefull-final-pruned\config.yaml放在\stable-diffusion-webui\models\Stable-diffusion\ 下文件名改成上边和你上边的文件同名,比如Naifu-Leaks- 4chan.yaml

找到naifu\modules\,把里面所有的.pt文件复制到\stable-diffusion-webui\models\hypernetworks\文件夹下,没有这个文件夹就自己新建一个。

运行

双击运行\stable-diffusion-webui\webui-user.bat

耐心等待,脚本会自己检查依赖,会下载大约几个G的东西,解压安装到文件夹内(视网速不同,可能需要20分钟~2小时不等)无论看起来是不是半天没变化,感觉像卡住了,或者你发现电脑也没下载东西,窗口也没变化。千万不要关闭这个黑乎乎的CMD窗口,只要窗口最下方没显示类似“按任意键关闭窗口”的话,那脚本就是依然在正常运行的。

当你看到下图这行字的时候,就是安装成功了

复制到浏览器访问即可(默认是 http://127.0.0.1:7860 )(注意不要关闭这个窗口,关闭就退出了)

生成第一张AI作图


Prompt 里填写想要的特征点
(((masterpiece))),((best quality)), flat chest,((loli)),((one girl)),very long light white hair, beautiful detailed red eyes,aqua eyes,white robe, cat ears,(flower hairpin),sunlight, light smile,blue necklace,see-through,
以上大概意思就是
杰作,最佳品质,贫乳,萝莉,1个女孩,很长的头发,淡白色头发,红色眼睛,浅绿色眼睛,白色长裙,猫耳,发夹,阳光下,淡淡的微笑,蓝色项链,透明

Negative prompt 里填不想要的特征点
((part of the head)), ((((mutated hands and fingers)))), deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, Octane renderer,lowres, bad anatomy, bad hands, text, missing fingers, worst quality, low quality, normal quality, signature, watermark, blurry,ugly, fat, obese, chubby, (((deformed))), [blurry], bad anatomy, disfigured, poorly drawn face, mutation, mutated, (extra_limb), (ugly), (poorly drawn hands), messy drawing,(2girls), morbid, mutilated, tranny, trans, trannsexual, [out of frame], (bad proportions), octane render, unity, unreal, maya, photorealistic
大概意思就是排除一些负面标签,比如奇怪的手,奇怪的肢体,减少生成奇怪图片的几率
Sampling Steps 你可以理解让AI推演多少步,一般来说超过17基本就能看了,步数越多,画面中的细节就越多,但需要的时间也就越久,一般20~30是一个比较稳妥的设定。这个数不会改变画面内容,只会让内容更加精细,比如20的项链就是一个心形钻石,而50的项链还是同样的心形钻石,只是钻石上会有更加复杂的线条

Sampling method 你可以理解成AI推演的算法,一般Euler a,Euler ,DDIM,都是不错的,任选一个就行。

图片分辨率 这个就是拼显卡显存的,自己调吧,低于512X512可能画面就不会有太多细节了,越大的分辨率AI能发挥的地方就越多。

如果想放大图片,可以去这个网站,可以实现AI放大功能
https://replicate.com/nightmareai/real-esrgan

下边是3个扩展选项,一般不需要勾选。
Restore faces:勾选后可以生成更真实的脸,第一次勾选使用时,需要先下载几个G的运行库。
Tiling:让图片可以平铺(类似瓷砖,生成的图案左右上下都可以无缝衔接上自己)
Highres. fix:超分辨率,让AI用更高的分辨率填充内容,但生成的最终尺寸还是你上边设定的尺寸。

生成几次,每次多少张
Batch count:是一次运行几次
Batch size: 是同时生成多少张

比如:Batch count设置为4,用时N分钟*4,生成4张图;Batch count设置为4,用时N分钟,生成4张图,但是同时需要的显存也是4倍。512X512大概需要3.75GB显存,4倍就是15GB显存了。

CFG Scale AI有多参考你的Prompt与Negative prompt
开得越高,AI越严格按照你的设定走,但也会有越少的创意
开的越低,AI就越放飞自我,随心所欲的画。
一般7左右就行。
Seed 随机数种子,AI作画从原理上其实就是用一个随机的噪声图,反推回图像。但因为计算机里也没有真随机嘛,所以实际上,AI作画的起始噪声,是可以量化为一个种子数的。

Generate 开始干活按钮,这个就不用说了吧,点了AI就开始干活了。

Stable Diffusion checkpoint 在最左上角,是选择模型的,前边让你下载了三个,请根据自己需求和体验自行选择使用。

后话

使用NovelAILeaks模型,有一个额外的设置,请在页面中选择【settings选项卡】,把页面往下拉到底,找到Stop At last layers of CLIP model,把他设置为2

AI作图不是释放魔法,不是魔咒越长施法前摇越长的魔咒威力就越大。请简洁、准确、详细的描述你需要的Prompt即可。像我上边的要求就是,1个萝莉,穿白色连衣裙,瞳孔红色,长发,白色,带发卡,猫耳,微笑,阳光下。半透明材质衣服,已经WebUI是有75个词限制的。

如果你想生成更大尺寸的图,但是显卡显存不足

用文本编辑器打开\stable-diffusion-webui\webui-user.bat。
在COMMANDLINE_ARGS=后添加–medvram
如果还不行,改成–medvram –xformers
如果还不行,改成–medvram –opt-split-attention –xformers
如果还不行,改成–lowvram
如果还不行,改成–lowvram –xformers
如果还不行,改成–lowvram –opt-split-attention
注意这是个用生成时间换图片尺寸的事情,最极端的参数可能导致你图片生成时间是之前的好几倍。
最极端参数是个什么概念呢,比如默认配置512X512一张图是10秒内,但显存需要4G,改成最极端配置,显存仅需0.5~0.7G(和Sampling method有关),但代价是时长变成3分钟。

16XX系显卡,需要用文本编辑器打开\stable-diffusion-webui\webui-user.bat。
在COMMANDLINE_ARGS=后添加–precision full –no-half
类似下边这样,不然生成图会是黑块或者绿块,这是个16XX系显卡的bug

@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=---precision full --no-half

call webui.bat

示意图中tag如下,理论上只要参数完全一致,就可以复现出一样的画(仅些微细节不同)

Stable Diffusion checkpoint:NovelAILeaks 4chan[925997e9]
prompt:
(((masterpiece))),((best quality)), flat chest,((loli)),((one girl)),very long hair,light white hair, red eyes,aqua eyes,white robe, cat ears,(flower hairpin),sunlight, light smile,beautiful detailed blue necklace,see-through,
Negative prompt: ((part of the head)), ((((mutated hands and fingers)))), deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, Octane renderer,lowres, bad anatomy, bad hands, text, missing fingers, worst quality, low quality, normal quality, signature, watermark, blurry,ugly, fat, obese, chubby, (((deformed))), [blurry], bad anatomy, disfigured, poorly drawn face, mutation, mutated, (extra_limb), (ugly), (poorly drawn hands), messy drawing,(2girls), morbid, mutilated, tranny, trans, trannsexual, [out of frame], (bad proportions), octane render, unity, unreal, maya, photorealistic
Steps: 27, S
ampler: Euler a, 
CFG scale: 7, 
Seed: 2413789891, 
Size: 1024x768, 
Model hash: 925997e9, 
Clip skip: 2
5/5 - (3 票)
喜欢并追踪 (42)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(3)条热门评论
  1. 求助,在文中《运行》这个环节报错了,以下是报错代码。 venv "F:\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: 828438b4a190759807f9054932cae3a8b880ddf1 Installing gfpgan Traceback (most recent call last): File "F:\stable-diffusion-webui\launch.py", line 250, in prepare_enviroment() File "F:\stable-diffusion-webui\launch.py", line 177, in prepare_enviroment run_pip(f"install {gfpgan_package}", "gfpgan") File "F:\stable-diffusion-webui\launch.py", line 63, 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:\stable-diffusion-webui\launch.py", line 34, in run raise RuntimeError(message) RuntimeError: Couldn't install gfpgan. Command: "F:\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-d3083ut7 stderr: Running command git clone --filter=blob:none --quiet https://github.com/TencentARC/GFPGAN.git 'C:\Users\Administrator\AppData\Local\Temp\pip-req-build-d3083ut7' fatal: unable to access 'https://github.com/TencentARC/GFPGAN.git/': OpenSSL SSL_read: Connection was reset, errno 10054 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-d3083ut7' 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-d3083ut7' 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.2.1 -> 22.3.1 [notice] To update, run: F:\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
    命运石之门云端 🇨🇳Windows 10Google Chrome 2022-11-21 12:59 检举回覆
  2. intel的8086K核显/win11系统运行成功,编辑“webui-user.bat”这个文件在“set COMMANDLINE_ARGS=”后输入“--skip-torch-cuda-test --precision full --no-half”参考www.runoob.com/w3cnote/pip-cn-mirror.html和www.bilibili.com/read/cv20466834以及github.com/AUTOMATIC1111/stable-diffusion-webui/issues/5232
    IllIIl 🇨🇳Windows 11Microsoft Edge Chromium2023-02-14 04:20 检举回覆
  3. 一运行代码就显示让我按任意键继续咋整
    feng9223 🇨🇳Windows 11Microsoft Edge Chromium2022-11-13 16:46 检举回覆
(17)个小伙伴在吐槽
  1. intel的8086K核显/win11系统运行成功,编辑“webui-user.bat”这个文件在“set COMMANDLINE_ARGS=”后输入“--skip-torch-cuda-test --precision full --no-half”参考www.runoob.com/w3cnote/pip-cn-mirror.html和www.bilibili.com/read/cv20466834以及github.com/AUTOMATIC1111/stable-diffusion-webui/issues/5232
    IllIIl 🇨🇳Windows 11Microsoft Edge Chromium2023-02-14 04:20 检举回覆
    • 看了一些帖子后更正:是在CPU上运行成功
      IllIIl 🇨🇳Windows 11Microsoft Edge Chromium2023-02-14 09:32 检举回覆
    • 还有,我的操作是打开launch.py文件将“torch_command = os.environ.get('TORCH_COMMAND',”后的内容修改为“"pip install torch==1.13.1+cpu torchvision==0.14.1+cpu --extra-index-url https://download.pytorch.org/whl/cu117”,当时只是想试一下可能有效的改动,直到我看了“https://rentry.org/voldy#-tips-”这个文章的内容,之前还在想pytorch官网的cpu的那行应该如何才能在这里使用,简单的看这代码我恰巧改动了有效的地方但又没有完全意识到这点
      IllIIl 🇨🇳Windows 11Microsoft Edge Chromium2023-02-14 15:46 检举回覆
  2. 不行呢
    shifan 🇨🇳Windows 10Google Chrome 2023-02-05 15:31 检举回覆
  3. 求助,在文中《运行》这个环节报错了,以下是报错代码。 venv "F:\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: 828438b4a190759807f9054932cae3a8b880ddf1 Installing gfpgan Traceback (most recent call last): File "F:\stable-diffusion-webui\launch.py", line 250, in prepare_enviroment() File "F:\stable-diffusion-webui\launch.py", line 177, in prepare_enviroment run_pip(f"install {gfpgan_package}", "gfpgan") File "F:\stable-diffusion-webui\launch.py", line 63, 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:\stable-diffusion-webui\launch.py", line 34, in run raise RuntimeError(message) RuntimeError: Couldn't install gfpgan. Command: "F:\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-d3083ut7 stderr: Running command git clone --filter=blob:none --quiet https://github.com/TencentARC/GFPGAN.git 'C:\Users\Administrator\AppData\Local\Temp\pip-req-build-d3083ut7' fatal: unable to access 'https://github.com/TencentARC/GFPGAN.git/': OpenSSL SSL_read: Connection was reset, errno 10054 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-d3083ut7' 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-d3083ut7' 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.2.1 -> 22.3.1 [notice] To update, run: F:\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
    命运石之门云端 🇨🇳Windows 10Google Chrome 2022-11-21 12:59 检举回覆
    • 沐汐的梦
      看最后一句话,是需要升级,然后它彩色字体标识的是升级代码,照着彩色代码输入升级,然后重新运行试试
      沐汐的梦 🇨🇳Windows 10Microsoft Edge Chromium2023-01-12 17:14 检举回覆
  4. xinyue
    好好好,跟老婆从小到结婚度假瑟瑟都不是梦
    xinyue 🇨🇳Windows 11Microsoft Edge Chromium2022-11-13 20:53 检举回覆
  5. 一运行代码就显示让我按任意键继续咋整
    feng9223 🇨🇳Windows 11Microsoft Edge Chromium2022-11-13 16:46 检举回覆
  6. 不行啊,那个4GB的pruned模型好像不能生成NSFW,怎么回事啊
    hailang 🇯🇵Windows 10Google Chrome 2022-11-13 12:38 检举回覆
  7. venv "E:\AIPanting\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: 526f0aa5569241aabf276a83af1a7216e825c6cc Installing requirements for Web UI Launching Web UI with arguments: Loading config from: E:\AIPanting\stable-diffusion-webui\models\Stable-diffusion\Naifu-Leaks-4chan.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Keeping EMAs of 688. making attention of type 'vanilla' with 512 in_channels Working with z of shape (1, 4, 64, 64) = 16384 dimensions. making attention of type 'vanilla' with 512 in_channels Error verifying pickled file from C:\Users\bbba/.cache\huggingface\transformers\c506559a5367a918bab46c39c79af91ab88846b49c8abd9d09e699ae067505c6.6365d436cc844f2f2b4885629b559d8ff0938ac484c01a6796538b2665de96c7: Traceback (most recent call last): File "E:\AIPanting\stable-diffusion-webui\modules\safe.py", line 83, in check_pt with zipfile.ZipFile(filename) as z: File "C:\Users\bbba\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1267, in __init__ self._RealGetContents() File "C:\Users\bbba\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1334, in _RealGetContents raise BadZipFile("File is not a zip file") zipfile.BadZipFile: File is not a zip file During handling of the above exception, another exception occurred: Traceback (most recent call last): File "E:\AIPanting\stable-diffusion-webui\modules\safe.py", line 131, in load_with_extra check_pt(filename, extra_handler) File "E:\AIPanting\stable-diffusion-webui\modules\safe.py", line 98, in check_pt unpickler.load() _pickle.UnpicklingError: persistent IDs in protocol 0 must be ASCII strings -----> !!!! The file is most likely corrupted !!!! <----- You can skip this check with --disable-safe-unpickle commandline argument, but that is not going to help you. Traceback (most recent call last): File "E:\AIPanting\stable-diffusion-webui\launch.py", line 252, in start() File "E:\AIPanting\stable-diffusion-webui\launch.py", line 247, in start webui.webui() File "E:\AIPanting\stable-diffusion-webui\webui.py", line 146, in webui initialize() File "E:\AIPanting\stable-diffusion-webui\webui.py", line 82, in initialize modules.sd_models.load_model() File "E:\AIPanting\stable-diffusion-webui\modules\sd_models.py", line 253, in load_model sd_model = instantiate_from_config(sd_config.model) File "E:\AIPanting\stable-diffusion-webui\repositories\stable-diffusion\ldm\util.py", line 85, in instantiate_from_config return get_obj_from_str(config["target"])(**config.get("params", dict())) File "E:\AIPanting\stable-diffusion-webui\repositories\stable-diffusion\ldm\models\diffusion\ddpm.py", line 461, in __init__ self.instantiate_cond_stage(cond_stage_config) File "E:\AIPanting\stable-diffusion-webui\repositories\stable-diffusion\ldm\models\diffusion\ddpm.py", line 519, in instantiate_cond_stage model = instantiate_from_config(config) File "E:\AIPanting\stable-diffusion-webui\repositories\stable-diffusion\ldm\util.py", line 85, in instantiate_from_config return get_obj_from_str(config["target"])(**config.get("params", dict())) File "E:\AIPanting\stable-diffusion-webui\repositories\stable-diffusion\ldm\modules\encoders\modules.py", line 142, in __init__ self.transformer = CLIPTextModel.from_pretrained(version) File "E:\AIPanting\stable-diffusion-webui\venv\lib\site-packages\transformers\modeling_utils.py", line 2006, in from_pretrained loaded_state_dict_keys = [k for k in state_dict.keys()] AttributeError: 'NoneType' object has no attribute 'keys' 请按任意键继续. . .
    hailang 🇯🇵Windows 10Google Chrome 2022-11-12 15:26 检举回覆
  8. 響Con
    想知道特征点代码有哪些
    吴晟霄 🇯🇵Windows 10Microsoft Edge Chromium2022-11-12 12:58 检举回覆
  9. A卡落泪 哭哭哭~
    举爪挠背 🇭🇰Windows 10Microsoft Edge Chromium2022-11-12 08:41 检举回覆
  10. 花天使之恋歌
    A卡能用以上内容吗?
    花天使之恋歌 🇨🇦Windows 11Google Chrome 2022-11-12 04:36 检举回覆
  11. DIY老婆!开搞!
    nbjs 🇺🇸Windows 10Google Chrome 2022-11-12 02:15 检举回覆
  12. 感觉挺有意思,明天盘它
    zcygggt 🇨🇳Windows 10Google Chrome 2022-11-11 22:38 检举回覆