stable diffusion 安装教程

stable diffusion安装教程

  • 环境准备
    • 硬件要求
    • 安装软件
      • Python 安装
      • 安装git
      • 安装cuda工具
      • 安装工具包
      • 模型下载
  • 生成图片
    • 成果展示

环境准备

硬件要求

1.需要拥有NVIDIA显卡,GT1060起,显存4G以上。(已经不需要3080起,亲民不少)
2.操作系统需要win10或者win11的系统。
3.电脑内存16G或者以上。
我的电脑配置供大家参考,Win11,NVIDIA RTX 3070 8G,32G
生成一张20step的图大概10s(若使用更高性能的电脑,生成速度更快。)

安装软件

Python 安装

推荐使用3.10.X版本(个人使用3.10.6:https://www.python.org/downloads/release/python-3106/)
检验Python版本:命令行输入Python -V
stable diffusion 安装教程_第1张图片

安装git

Git下载:https://git-scm.com/download
在这里插入图片描述

安装cuda工具

CUDA下载:https://developer.nvidia.com/cuda-toolkit-archive
注意根据自己的情况选择;推荐使用离线安装包;
查询显卡CUDA版本:nvidia-smi
stable diffusion 安装教程_第2张图片

安装工具包

秋叶整合包:适合新手使用,功能齐备,一键启动
地址:https://pan.baidu.com/s/1XHOx7zgO0IQVL-01opwXjA?pwd=uvdy
stable diffusion 安装教程_第3张图片

模型下载

生成图片

提示词:

SFW,A gril,in the big office, (beautifly:1.8), peri,office lady, uniform,kilt, Beautiful nose,smelling, beautifly eyes, bright piercing eyes,couch, Wear a skirt,best quality,nature, flower, extra shaded face, good looking at viewer,chemise, beautifly, gather beautiful cleavage,earrings,vaginal, Han Chinese Clothing,parted lips, green lice,

正提示词后请添加:

(masterpiece:1,2), best quality, masterpiece, highres, original, extremely detailed wallpaper, perfect lighting,(extremely detailed CG:1.2), drawing, paintbrush,

负面提示词后请添加:

NSFW, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, age spot, (ugly:1.331), (duplicate:1.331), (morbid:1.21), (mutilated:1.21), (tranny:1.331), mutated hands, (poorly drawn hands:1.5), blurry, (bad anatomy:1.21), (bad proportions:1.331), extra limbs, (disfigured:1.331), (missing arms:1.331), (extra legs:1.331), (fused fingers:1.61051), (too many fingers:1.61051), (unclear eyes:1.331), lowers, bad hands, missing fingers, extra digit,bad hands, missing fingers, (((extra arms and legs))),

成果展示

stable diffusion 安装教程_第4张图片

你可能感兴趣的:(stable,diffusion,git,python)