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
相关推荐
海天鹰1 小时前
WIN10修改窗口标题栏失去焦点背景色
windows
梦帮科技2 小时前
GRAVIS v5.5:向硬核桌面端进化与云端多节点容灾部署实践
windows·架构·rust·自动化·区块链·智能合约·数字货币
tianyazhichiC3 小时前
【VLC player 下载地址】
windows
小呀小叮当~4 小时前
OpenAI Codex 桌面版(Windows / macOS)体验分享:AI 编程效率再次提升
人工智能·windows·macos
Starry-sky(jing)5 小时前
Win11 装 ESP32 Arduino 库卡 3 小时?我把官方 3.3.10 全平台 522MB 搬到了蓝奏云,解压即用
运维·windows·esp32·arduino·离线安装
程序员老油条18 小时前
WSL2 + Docker Desktop:Windows 下的完美 Java 开发环境
java·windows·docker·wsl2
binbin_5221 小时前
Flutter 开发鸿蒙实战:Windows 环境下从 HAP 构建到四 Tab 页面运行
windows·flutter·harmonyos
ylscode1 天前
微软推送KB5095189:Windows 11 OOBE开箱即用体验迎来新一轮优化
windows·microsoft
Fer_David1 天前
解决Windows无法在微软商店安装CodeX问题
windows
忧虑的小蚂蚁1 天前
dll文件32位64位检测工具以及Windows文件夹SysWow64的坑
windows