Stable Diffusion第一步

tomosak1年前杂记654

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.


相关文章

headscale常用命令

namespaceheadscale namespace list # 查看所有的namespace headscale namespace create default # 创建namespace hea...

苹果MacOS系统启动U盘制作

1、下载macOS 11.6.5https://pan.baidu.com/s/1uuL99sFR9BjRNaDm2xRfQQ?pwd=ykip2、在macOS系统加载镜像,拷贝安装macOS Big Sur.app到桌面3、打开 “应用程序 → 实用工具 → 磁盘工具”,将U盘「抹掉」(格式化)...

群晖引导成功之后群晖助手Synology Assistant搜索不到机器ip

电脑防火墙限制有可能搜索不到DSM机器 解决方法:这个好解决关掉电脑防火墙即可,注意有些时候你给防火墙放行也不可以,建议安装的时候直接关掉防火墙后面有需求再重新打开。 多个路由器/光猫串接 案例一:光猫拔号,路由器WAN口连接光猫 NAS连接在接在路由器LAN口上,电脑接在光猫上或连...

zerotier私有planet服务器搭建

1、申请公网vps,安装Ubuntu或者debian2、root账户ssh登录vps3、apt update && apt upgrade && reboot4、再次root账户ssh登录vps5、安装nlohmann-json-devwget h...

苹果电脑各型号对应的macOS版本列表

苹果电脑各型号对应的macOS版本列表电脑型号发布日期最低OS版本最高OS版本MacBook Pro 13寸 2020年 M12020年11月11.0.1目前最新版本MacBook Air 13寸 2020年 M12020年11月11.0.1目前最新版本MacBook Pro 13寸 2020年初...

Mac OS系统不能使用su命令问题

sudo su是当前用户暂时申请root权限,所以输入的不是root用户密码,而是当前用户的密码。sudo是用户申请管理员权限执行一个操作,而此处的操作就是变成管理员。一.sudo和su的区别在哪里?1.su 是一个具体的指令,而 sudo 则是用来修饰一个指令的“前缀”。2.su :切换到root...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。