sd安装教程

项目地址
https://github.com/AUTOMATIC1111/stable-diffusion-webuihttps://github.com/AUTOMATIC1111/stable-diffusion-webui

安装python

https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe

pip换源

pip config set global.index-url https://mirror.baidu.com/pypi/simple

升级pip

python.exe -m pip install --upgrade pip

安装git

https://github.com/git-for-windows/git/releases/download/v2.39.2.windows.1/Git-2.39.2-64-bit.exe

克隆项目

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

编辑webui-user.bat

set COMMANDLINE_ARGS=--autolaunch --share --xformers

安装visual studio(防止安装cuda toolkit时报错)
https://c2rsetup.officeapps.live.com/c2r/downloadVS.aspx?sku=community&channel=Release&version=VS2022&source=VSLandingPage

勾选使用c++的桌面开发安装即可

升级最新nvidia驱动
https://www.nvidia.cn/Download/index.aspx?lang=cn

安装nvidia cuda toolkit
https://developer.nvidia.com/cuda-downloadshttps://developer.download.nvidia.com/compute/cuda/12.4.0/local_installers/cuda_12.4.0_551.61_windows.exe

===========================开始执行===========================

执行方法1:双击webui-user.bat(会创建虚拟环境,根目录下会生成venv文件夹)

执行方法2:python launch.py(不会创建虚拟环境)

根目录下创建openai目录,进入后克隆(防止生成图片时报错)

git clone https://www.modelscope.cn/AI-ModelScope/clip-vit-large-patch14.git

如果安装了roop还是controlnet插件,需要安装visual studio,勾选c++的桌面开发安装

相关推荐
老刘说AI11 天前
类Sora模型:解锁动态视觉艺术的密码
人工智能·stable diffusion·架构·embedding
python-码博士11 天前
Stable Diffusion 3 / FLUX 类模型中的 Flow Matching:怎么用、怎么调、怎么避坑
stable diffusion
Rocky Ding*14 天前
Latent Consistency Models:一篇读懂扩散模型的少步生成核心基础知识
人工智能·深度学习·机器学习·ai作画·stable diffusion·aigc·ai-native
Asimov_Liu15 天前
Diffusion 与 Flow Matching 数学原理及其在 VLA Action 生成中的应用
stable diffusion·自动驾驶·具身智能·vla·flow matching
Rocky Ding*16 天前
Token Merging for Fast Stable Diffusion:一篇读懂 Stable Diffusion 的免训练加速机制
论文阅读·人工智能·深度学习·机器学习·stable diffusion·aigc·ai-native
yuguo.im16 天前
Mac M4 安装 sd-webui 踩坑全记录
macos·stable diffusion
hugo_im17 天前
Mac M4 安装 sd-webui 踩坑全记录
stable diffusion
一叶知秋dong18 天前
Stable diffusion 工作原理
人工智能·深度学习·stable diffusion
仰望尾迹云21 天前
灵感画廊入门:AI绘画零基础到精通
stable diffusion·ai绘画·图像生成
AI极客菌21 天前
AI绘画工具中,为什么专业玩家爱用Stable Diffusion,普通玩家却喜欢Midjourney?
大数据·人工智能·ai·ai作画·stable diffusion·aigc·midjourney