Stable-Diffusion——Windows部署教程

Windows

参考文章:从零开始,手把手教你本地部署Stable Diffusion Webui AI绘画(非最新版)

一键脚本安装

  • 默认环境安装在项目路径的venv
bash 复制代码
conda create -n df_env python==3.10
  • 安装pytorch:(正常用国内网就行)
bash 复制代码
python -m pip install --upgrade pip
# 阿里云源稳定
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
# pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
  • 运行核心脚本
bash 复制代码
webui-user.bat
  • 安装依赖:
bash 复制代码
pip install -r .\requirements.txt
pip install -r .\requirements_versions.txt

pip install accelerate==0.21.0
  • 踩坑特定环境版本:
bash 复制代码
pip install tb_nightly -i https://mirrors.aliyun.com/pypi/simple 

运行

bash 复制代码
python3 launch.py --disable-nan-check
accelerate launch --num_cpu_threads_per_process=6 launch.py --disable-nan-check

效果

下载模型

模型网站:

  • 配置网络:
bash 复制代码
git config --global http.proxy "http://127.0.0.1:7890"
git config --global https.proxy "http://127.0.0.1:7890"
  • 在webui路径下创建openai文件夹:
bash 复制代码
cd openai
git clone https://huggingface.co/openai/clip-vit-large-patch14
相关推荐
q***51898 小时前
如何在Windows系统上安装和配置Node.js及Node版本管理器(nvm)
windows·node.js
胡八一10 小时前
Windows 7 运行 .NET 应用时报错“hostfxr.dll 加载失败 (HRESULT: 0x80070057)”的彻底解决指南
windows·.net
q***062912 小时前
如何在 Windows 上安装 MySQL(保姆级教程2024版)
数据库·windows·mysql
耿直小伙1 天前
电脑已连接网络无线自动重启
windows
m0_565611131 天前
Java-泛型
java·windows
蓁蓁啊1 天前
Ubuntu 虚拟机文件传输到 Windows的一种好玩的办法
linux·运维·windows·单片机·ubuntu
serve the people1 天前
Comma-Separated List Output Parser in LangChain
windows·langchain·list
8Qi81 天前
Stable Diffusion详解
人工智能·深度学习·stable diffusion·图像生成
百***58141 天前
Windows操作系统部署Tomcat详细讲解
java·windows·tomcat
IDOlaoluo1 天前
Windows系统调校_20250408_36367c06.exe安装教程(附详细步骤)
windows