一、硬件配配置要求
系统:windows 10 / Mac os
硬盘:C 盘预留 15GB 以上,其他盘 50GB 以上,Stable Ddiffusion的很多大模型都是以 GB 起步。
显卡:4GB 以上,建议 8GB, 效率高,能玩大尺寸的图
CPU:i5 CPU 以上
内存:16GB 以上
二、windows 环境搭建
python下载:https://www.python.org/downloads/ 建议使用 3.10 版本,必须
CUDA下载:https://developer.nvidia.com/cuda-toolkit-archive N 卡的工具
git:是一个应用版本控制的软件,下载地下 https://git-scm.com/download 可选
Stable Diffusion 秋叶大佬整合包,下载链接: https://pan.baidu.com/s/1JbweU2QFHzl75S7G3Tuybw?pwd=k7yx 提取码: k7yx

或者从 github.com 上下载,下载地址https://github.com/AUTOMATIC1111/stable-diffusion-webui 这种方式适合有一定编程基础的小伙伴。
安装 python 环境,注意勾选添加到环境变量选项,不然装好了还需要手动设置环境变量,根据提示一路下一步安装完成!

安装MS donet6.0.11,这是启动器运行所需要的依赖框架。

解压下载的 Stable Diffusion 的三个压缩包,只需要解压novelai-webui-aki-v2.part1.rar,会自动解压相关的包,解压后进入stable-diffusion-webui目录打开A启动器.exe

进入启动器界面

一键启动 Stable Diffusion web ui

初次启动需要等几分钟,建议网络要好,这里需要从远端下载一些依赖包和模型

Web UI 界面
三、mac os 环境搭建
安装 homebrew,homebrew 官网 https://brew.sh 国内网络原因,成功的可能性较小;

下面我为大家找到了国内一个大佬提供的安装方式,在终端中输入如下代码 :
/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)" 回车,在跳出的画面按回车键安装,安装完成后可以 brew -v 查看版本,确认是否安装成功!

安装 python 环境:brew install cmake protobuf rust python@3.10 git wget

用命令:
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple 为了减少下载等待时间,设置安装源为国内的阿里下载源

克隆 Web UI:git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui

cd stable-diffusion-webui 目录
启动:./webui.sh 初次启动需要一些时间,主要是下载一些依赖模块

