Stable Diffusion第一步
Stable Diffusion
一、版本
https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases
稳定扩散的web界面,使用Gradio库实现。
https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.0.0-pre
webui.zip是一个二进制发行版,适用于无法安装python和git的用户。
所有内容都包含在内-只需双击run.bat即可启动。
除了Windows 10之外没有其他要求。仅限NVIDIA。
运行一次后,应该可以将安装复制到另一台计算机并在那里离线启动。
二、Windows安装
1、安装git最新版:https://git-scm.com/
2、安装python最新版:https://www.python.org/
3、配置pip国内镜像源
Win+R唤出控制台
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
4、stable diffusion环境搭建
Win+R唤出控制台
在盘根目录下运行
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
5、stable diffusion运行
进入stable-diffusion-webui目录,运行webui-user.bat
6、模型 Lora下载:https://www.liblib.art/ https://civitai.com/
Lora下载放到这个目录,盘符:\stable-diffusion-webui\models\Lora
7、stable diffusion中的【扩展】–>【从网址安装】安装不同的扩展
让SD支持中文:
github: https://github.com/journey-ad/sd-webui-bilingual-localization
方便浏览作品,进行多种查询和管理
github:https://github.com/AlUlkesh/stable-diffusion-webui-images-browser
Tag Autocompletion:实现提示词的补全、翻译
像智能输入法,可以帮你智能补全提示词,并为你推荐更适合AI明白的提示词
它还包含热门IP,比较方便
输入尖括号<>,输入e、l、h就可以自动加载embeddings,lora,hypeenetwork模型
链接:http://www.123114514.xyz/WebUI/Tag
下载那个zip,将解压后的安装包放到extension文件夹里面
SD upscale
可以看成SD脚本放大功能的高级版,提供更多的绘制选项和更好的放大效果
在安装包的这个包里面下载,同样放置在extension文件夹
二、Linux安装
Install the dependencies:
# Debian-based:
sudo apt install wget git python3 python3-venv libgl1 libglib2.0-0
# Red Hat-based:
sudo dnf install wget git python3 gperftools-libs libglvnd-glx
# openSUSE-based:
sudo zypper install wget git python3 libtcmalloc4 libglvnd
# Arch-based:
sudo pacman -S wget git python3
Navigate to the directory you would like the webui to be installed and execute the following command:
wget -q https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh
Run webui.sh.
Check webui-user.sh for options.