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++的桌面开发安装

相关推荐
我希望的一路生花1 天前
Nik Collection 6.2全新版Nik降噪锐化调色PS/LR插件
人工智能·计算机视觉·设计模式·stable diffusion·aigc
GetcharZp1 天前
玩转AI绘画,你只差一个节点式“魔法”工具——ComfyUI 保姆级入门指南
人工智能·stable diffusion
Seeklike3 天前
diffuxers学习--AutoPipeline
人工智能·python·stable diffusion·diffusers
游戏AI研究所4 天前
ComfyUI 里的 Prompt 插值器(prompt interpolation / text encoder 插值方式)的含义和作用!
人工智能·游戏·机器学习·stable diffusion·prompt·aigc
迈火6 天前
ComfyUI-3D-Pack:3D创作的AI神器
人工智能·gpt·3d·ai·stable diffusion·aigc·midjourney
Seeklike7 天前
diffusers学习--stable diffusion的管线解析
人工智能·stable diffusion·diffusers
马甲是掉不了一点的<.<8 天前
Stable Diffusion 环境配置详细指南
stable diffusion·环境配置
软件测试-阿涛8 天前
【AI绘画】Stable Diffusion webUI 常用功能使用技巧
人工智能·深度学习·计算机视觉·ai作画·stable diffusion
m0_603888718 天前
Stable Diffusion Models are Secretly Good at Visual In-Context Learning
人工智能·ai·stable diffusion·论文速览
爱分享的飘哥21 天前
第三十七章:文生图的炼金术:Stable Diffusion完整工作流深度解析
人工智能·pytorch·stable diffusion·文生图·ai绘画·代码实战·cfg