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 小时前
不再让Windows更新!&Edge游戏助手卸载及关闭自动更新
windows·edge浏览器·edge游戏助手
熊文豪6 小时前
保姆级Maven安装与配置教程(Windows版)
java·windows·maven·maven安装教程·maven配置教程·maven安装与配置教程
头发掉光的程序员1 天前
第七章 利用Direct3D绘制几何体
c++·windows·图形渲染·direct12
许泽宇的技术分享1 天前
Text2API与Text2SQL深度对比:自然语言驱动的数据交互革命
数据库·windows·microsoft
△曉風殘月〆1 天前
如何在Windows 10/11家庭版安装组策略编辑器
windows·组策略
Boxsc_midnight2 天前
【适合中小企业应用的Flask网站部署指南】【小白指南系列】如何在Windows Server服务器上部署Flask网站和SSL证书开启HTTPS
服务器·windows·python·flask
IDOlaoluo2 天前
dotnet-hosting-2.2.6-win.exe 怎么安装?Windows 下完整步骤(附安装包下载)
windows
Bruce_Liuxiaowei2 天前
使用批处理脚本安全清理Windows系统垃圾
网络·windows·安全·网络安全
小陈永不服输2 天前
Windows下RabbitMQ完整安装指南
windows·分布式·rabbitmq
准女婿_2 天前
优考试局域网系统V6.0.0版
linux·windows·用户运营