当前位置:首页 > 杂记 > 正文内容

Stable Diffusion第一步

tomosak1年前 (2024-04-19)杂记727

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.


扫描二维码推送至手机访问。

版权声明:本文由Androidnews发布,如需转载请注明出处。

本文链接:https://www.androidnews.top/?id=52

分享给朋友:

“Stable Diffusion第一步” 的相关文章

Windows跳过oobe创建用户并直接用Administrator身份登录

Windows跳过oobe创建用户并直接用Administrator身份登录系统进入区域设置起,就可以按下 Ctrl+Shift+F3 进入审计模式。进入系统之后会弹出一个系统准备工具3.14弹窗,不要点击确定,直接×掉。CD /D %windir%\System32\oobe...

苹果MacOS系统启动U盘制作

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

vmess链接转化为Clash订阅地址

访问以下地址:https://sub-web.wcc.best/...

headscale常用命令

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

配备 Apple T2 安全芯片的MAC电脑重装系统

下列 Mac 电脑配备了 Apple T2 安全芯片:iMac(视网膜 5K 显示屏,27 英寸,2020 年)iMac ProMac Pro(2019 年)Mac Pro(机架式机型,2019 年)Mac mini(2018 年)MacBook Air(视网膜显示屏,13 英寸,2020 年)Ma...

发表评论

访客

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