分享

自己本地部署【stable-diffusion-webui 】开源应用,各种报错,如何解决?终于装好了。

 qdongh 2023-08-26 发布于云南
随着SD的扩展越来越多,各位大佬组合包用起来占内存,也不方便调试,自己本地部署开源的【stable-diffusion-webui 】,以后更多的扩展应用更好调试 。

开始安装

一般情况下,你的电脑已经安装过二个软件:

▶安装 [Python 3.10.6]

https://www./downloads/release/python-3106/

提示:(较新版本的Python不支持torch),选中“将Python添加到PATH”。

安装 [git]

https:///download/win

git initgit config --global http.sslverify 'false'

【stable-diffusion-webui 】本地部署

git 下载 文件包

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

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

图片

必须使用git 而不是下载解压,安装时软件需要更新下载;需要确认git可以正常使用。

【stable-diffusion-webui 】

文件夹如下:

图片

编辑 【webui-user.bat】

加入相应的路径后,保存

图片

图片

运行

【webui-user.bat】

将配置安装运行环境

图片

第一次安装时间比较久

然后就是各种报错

A、GFPGAN 无法安装

解决办法:
进入VENV,手动安装:
pip3 install gfpgan

图片

还是报错,下载GFPGAN到本地

克隆仓库GFPGAN
git clone https://github.com/TencentARC/GFPGAN.gitcd GFPGAN

进入文件夹,手动安装 依赖包

安装依赖包
pip install basicsrpip install facexlibpip install -r requirements.txtpython setup.py developpip install realesrgan

依次安装【依赖包】,期间有报错,先不管它,把所有装完,再测试,OK.

图片

继续等待,主打一个耐心,毕竟咋们这是《局域网》,条件有限。

一篇哔哩文章给了启发:参考bilibil.com/read/cv22932989

安装完成

图片

打开页面 :
http://127.0.0.1:7860
提示:somethin went wrong

图片

在一篇文章中,找到解决方法:
add --no-gradio-queue in command

如图:

图片

重新再打开页面,OK

进入【设置】-【用户界面】

图片

测试下连续动作序列

图片

(((white background))),A coherent movement of a girl  , TLC cartoon character 4 coherent, action sequence diagram, facing the camera, rhythm and rhythm of different poses, gestures and gestures of different poses, BLENDER style, 3D cartoon style, precise style, coherent and coherent action poses, Playful action style, minimal lines, minimal color blocks, narrative sequence style, conceptual art, gestures and poses in different poses, detailed lines, precise style, coherent action poses, playful action style, minimal lines, extreme Simple color block, narrative sequence style, (((white background)))

图片

N-PROMPT:

lowres,badanatomy,bad hands,text,error,missing fingers,extra digit,fewer digits,cropped,worst quality,low quality,normal quality,jpeg artifacts,signature,watermark,username,blurry,bad feet,ugly,duplicate,trannsexual,hermaphrodite,out of frame,extra fingers,mutated hands,poorly drawn hands,poorly drawn face,mutation,deformed,blurry,bad anatomy,bad proportions,extra limbs,cloned face,disfigured,more than 2 nipples,out of frame,ugly,extra limbs,bad anatomy,gross,worst quality,low quality,normal quality,signature,watermark,username,blurry,proportions,malformed limbs,missing arms,missing legs,extra arms,extra legs,mutated hands,fused fingers,too many fingers,long neck

图片

再测试 ControlNET
艺术二维码

图片

OK,SD 初步完成,


最后明天测试

【sd-webui-roop】换脸
可以指定人像图片进行人脸更换。

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多