2026年1月

1、安装显卡驱动
https://www.nvidia.cn/drivers/lookup/
2、检查显卡是否安装成功
cmd输入:nvidia-smi
3、下载安装cuda,到相关网址选择合适的版本。
https://developer.nvidia.com/cuda-toolkit-archive
4、下载cuDNN及安装
需要nvidia账号登陆下载
在这里选择相关的版本:
https://developer.nvidia.com/cudnn-archive
将下载的文件解压复制到C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8覆盖文件。
5、cuDNN安装测试
C:\project>nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0
表明安装成功
6、安装pytorch版本
到下面网址安装pytorch版本:
https://pytorch.org/get-started/previous-versions/#conda

安装stable diffusion

一、创建stable deiffusion的conda环境。Install Python 3.10.6 (Newer version of Python does not support torch), checking "Add Python to PATH".

(1)cd c:\project
(2)git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
(3)cd stable-diffusion-webui
(4)webui-user.bat程序会自动产生venv

1、界面汉化
下载语言包,打开extentions--->install from url
https://github.com/VinsonLaro/stable-diffusion-webui-chinese
打开科学上网,如果安装失败,把本地连接的“代理”中的:“请勿将代理服务器用于本地地址”就可以下载扩展了。
下载后,重启,然后进入setting--->user interface---->user interface选择chinese
2、安装其他插件。视频讲解:https://www.youtube.com/watch?v=sKcK12hXzKQ
(1)安装civitai扩展插件,应用并重启
地址:https://github.com/civitai/sd_civitai_extension
(2)安装stable-diffusion-webui-images-browser插件
地址:https://github.com/AlUlkesh/stable-diffusion-webui-images-browser
(3)安装sd-webui-inpaint-anything插件
地址:https://github.com/Uminosachi/sd-webui-inpaint-anything
(4)安装a1111-sd-webui-tagcomplete插件
地址:https://github.com/DominikDoom/a1111-sd-webui-tagcomplete
(5)civitai下载lighting based picture control controlnet控制图像灯光和阴影效果
网址:https://civitai.com/models/80536/lighting-based-picture-control-controlnet
放置在models\controlnet文件夹下
(6)安装onebuttonpropt插件,自动提示词生成插件,该插件不会出现在插件列表中,在页面最下边脚本中找到。
网址:https://github.com/AIrjen/OneButtonPrompt
视频讲解:https://www.youtube.com/watch?v=cQZx4eQlr_w

3、安装其他插件合集。视频讲解:https://www.youtube.com/watch?v=LlJF9oitE34
(1)双语对照插件biling
(2)config-presets
(3)openpose
4、controlnet教程。视频讲解:https://www.youtube.com/watch?v=qRKQ11f5g6k
5、sd进阶插件。视频讲解:https://www.youtube.com/watch?v=w6xTn_h4ZY0
6、5个Stable Diffusion必备基础插件推荐。讲解网址:https://www.youtube.com/watch?v=yZv_jLH93ko
(1)提示词反推工具。网址:https://github.com/toriato/stable-diffusion-webui-wd14-tagger
视频讲解:https://www.youtube.com/watch?v=2tcICGwmozw
7、制作美女视频所需的插件
(1)controlnet插件。https://github.com/lllyasviel/ControlNet
(2)adetailer插件。https://github.com/Bing-su/adetailer
(3)mov2mov插件。https://github.com/Scholar01/sd-webui-mov2mov
(4)roop插件。https://github.com/s0md3v/sd-webui-roop

8、制作美女视频插件
(1)插件ebsynth_utility
网址:https://github.com/s9roll7/ebsynth_utility
(2)补帧工具
(3)在使用该工具时无法生成mask需要安装pip install transparent-background
9、用于下载模型的miaoshouai-assistant插件
地址:https://github.com/miaoshouai/miaoshouai-assistant

二、启动stable diffusion

1、conda activate python_3.10.6
2、c:\project\stable-diffusion\webui-user.bat