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

相关推荐
weiwei228444 天前
文生图模型Stable Diffusion使用详解
stable diffusion·文生图
Hello123网站5 天前
DreamStudio-Stable Diffusion官方绘画工具
stable diffusion·ai工具
如若1235 天前
CompVis Stable Diffusion 正确安装与运行指南
stable diffusion
全息数据10 天前
DDPM代码讲解【详细!!!】
深度学习·stable diffusion·多模态·ddpm
老鱼说AI19 天前
当自回归模型遇上扩散模型:下一代序列预测模型详解与Pytorch实现
人工智能·pytorch·深度学习·神经网络·语言模型·自然语言处理·stable diffusion
我希望的一路生花25 天前
Nik Collection 6.2全新版Nik降噪锐化调色PS/LR插件
人工智能·计算机视觉·设计模式·stable diffusion·aigc
GetcharZp25 天前
玩转AI绘画,你只差一个节点式“魔法”工具——ComfyUI 保姆级入门指南
人工智能·stable diffusion
Seeklike1 个月前
diffuxers学习--AutoPipeline
人工智能·python·stable diffusion·diffusers
游戏AI研究所1 个月前
ComfyUI 里的 Prompt 插值器(prompt interpolation / text encoder 插值方式)的含义和作用!
人工智能·游戏·机器学习·stable diffusion·prompt·aigc
迈火1 个月前
ComfyUI-3D-Pack:3D创作的AI神器
人工智能·gpt·3d·ai·stable diffusion·aigc·midjourney