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
相关推荐
码上库利南12 分钟前
Windows开机自动启动中间件
windows
写代码的小阿帆1 小时前
Fractal Generative Models论文阅读笔记与代码分析
论文阅读·stable diffusion·transformer
nenchoumi31197 小时前
AirSim/Cosys-AirSim 游戏开发(一)XBox 手柄 Windows + python 连接与读取
windows·python·xbox
love530love8 小时前
【PyCharm必会基础】正确移除解释器及虚拟环境(以 Poetry 为例 )
开发语言·ide·windows·笔记·python·pycharm
黄交大彭于晏9 小时前
发送文件脚本源码版本
java·linux·windows
vfvfb19 小时前
bat批量去掉本文件夹中的文件扩展名
服务器·windows·批处理·删除扩展名·bat技巧
春末的南方城市21 小时前
港科大&快手提出统一上下文视频编辑 UNIC,各种视频编辑任务一网打尽,还可进行多项任务组合!
人工智能·计算机视觉·stable diffusion·aigc·transformer
我命由我123451 天前
VSCode - VSCode 放大与缩小代码
前端·ide·windows·vscode·前端框架·编辑器·软件工具
PT_silver1 天前
tryhackme——Abusing Windows Internals(进程注入)
windows·microsoft
爱炸薯条的小朋友1 天前
C#由于获取WPF窗口名称造成的异常报错问题
windows·c#·wpf