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

相关推荐
春末的南方城市16 小时前
港科大&快手提出统一上下文视频编辑 UNIC,各种视频编辑任务一网打尽,还可进行多项任务组合!
人工智能·计算机视觉·stable diffusion·aigc·transformer
多恩Stone5 天前
【Stable Diffusion 1.5 】在 Unet 中每个 Cross Attention 块中的张量变化过程
stable diffusion
今夕节度使5 天前
ARM架构推理Stable Diffusiond
stable diffusion
远瞻。9 天前
【论文精读】2024 ECCV--MGLD-VSR现实世界视频超分辨率(RealWorld VSR)
人工智能·算法·stable diffusion·音视频·超分辨率重建
远瞻。10 天前
【论文精读】2024 CVPR--Upscale-A-Video现实世界视频超分辨率(RealWorld VSR)
论文阅读·人工智能·算法·stable diffusion·音视频·超分辨率重建
乱世刀疤10 天前
AI绘画:手把手带你Stable Diffusion从入门到精通(系列教程)
人工智能·ai作画·stable diffusion
layneyao12 天前
从0到1搭建AI绘画模型:Stable Diffusion微调全流程避坑指南
ai作画·stable diffusion
远瞻。12 天前
【论文精读】2024 arXiv --VEnhancer现实世界视频超分辨率(RealWorld VSR)
论文阅读·stable diffusion·音视频·超分辨率重建
立秋678914 天前
深入理解Diffusers: 从基础到Stable Diffusion
stable diffusion
Liudef0614 天前
Stable Diffusion底模对应的VAE推荐
stable diffusion