1.安装 Miniconda3
https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe
选项有一个可以不将Miniconda3注册为默认python
可以放在任意地方
2.git下拉以下链接
https://github.com/sd-webui/stable-diffusion-webui
2.安装git
软件初始化需要git
3.下载模型 50G
magnet:?xt=urn:btih:LPPEILNIMJS3M4FD4XVDCY5PVUWG7DWM
整个大小有50G,建议只下载novelaileak\stableckpt\animefull-final-pruned部分
4.如果安装 Miniconda3 的时候没有自定义路径则跳过
在以下文件,写入你的Miniconda3安装目录,需要手动新建
stable-diffusion-webui/custom-conda-path.txt
5.移动模型
这个文件夹下有很多种模型,据说只有animefull-final-pruned可以跑起来
novelaileak\stableckpt
复制或者移动到
stable-diffusion-webui\models\ldm\stable-diffusion-v1
完整路径如下所示,如果不正确,请手动改名
stable-diffusion-webui\models\ldm\stable-diffusion-v1\model.ckpt
7.预准备,可以跳过,如果你从github下载有问题可以执行此步骤
https://github.com/CompVis/taming-transformers
https://github.com/hlky/k-diffusion-sd
https://github.com/devilismyfriend/latent-diffusion
https://github.com/openai/CLIP
以上文件,放置于stable-diffusion-webui\src
6.运行,有两种界面可选,streamlit比较新,还在开发
stable-diffusion-webui\webui.cmd
stable-diffusion-webui\webui-streamlit.cmd
推荐使用streamlit,虽然问题比较多,但是自定义范围更大
8.成功运行后才可以执行本步骤,可选的脸部修复组件和放大组件
这个人脸修复似乎是针对3次元脸修复的,不太用的上
https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.2.pth
https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth
https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.4.pth
https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/RestoreFormer.pth
https://github.com/TencentARC/GFPGAN/blob/master/Comparisons.md
以上文件,放置于stable-diffusion-webui\models\gfpgan
另外,如果是stable-diffusion-webui\webui-streamlit.cmd启动
还需要在左边菜单栏models什么什么的界面点击下载gfpgan,它需要额外下载2个文件才能用
9.成功运行后才可以执行本步骤,可选的图片放大
https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth
https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.2.4/RealESRGAN_x4plus_anime_6B.pth
https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-x4v3.pth
https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-wdn-x4v3.pth
以上文件放置于stable-diffusion-webui\models\realesrgan
推荐使用RealESRGAN_x4plus_anime_6B.pth
评论已关闭