Stable-Diffusion——Windows部署教程

Stable-Diffusion——Windows部署教程

    正在检查是否收录...

Windows

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

一键脚本安装

默认环境安装在项目路径的venv
conda create -n df_env python==3.10 
安装pytorch:(正常用国内网就行)
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 
运行核心脚本
webui-user.bat 
安装依赖:
pip install -r .\requirements.txt pip install -r .\requirements_versions.txt pip install accelerate==0.21.0 
踩坑特定环境版本:
pip install tb_nightly -i https://mirrors.aliyun.com/pypi/simple 

运行

python3 launch.py --disable-nan-check accelerate launch --num_cpu_threads_per_process=6 launch.py --disable-nan-check 

效果

下载模型

模型网站:

配置网络:
git config --global http.proxy "http://127.0.0.1:7890" git config --global https.proxy "http://127.0.0.1:7890" 
在webui路径下创建openai文件夹:
cd openai git clone https://huggingface.co/openai/clip-vit-large-patch14 

codeurlgitopenaiwebuiwebpythonproxycliwindowsdiffusionhuggingfacepytorchclip文件夹本地部署stable diffusioncreatecputhreadscloneai绘画
  • 本文作者:李琛
  • 本文链接: https://wapzz.net/post-3593.html
  • 版权声明:本博客所有文章除特别声明外,均默认采用 CC BY-NC-SA 4.0 许可协议。
本站部分内容来源于网络转载,仅供学习交流使用。如涉及版权问题,请及时联系我们,我们将第一时间处理。
文章很赞!支持一下吧 还没有人为TA充电
为TA充电
还没有人为TA充电
0
  • 支付宝打赏
    支付宝扫一扫
  • 微信打赏
    微信扫一扫
感谢支持
文章很赞!支持一下吧
关于作者
2.3W+
5
0
1
WAP站长官方

Stable Diffusion AI绘画系列【22】:国风美女写实系列

上一篇

人工智能 | 结对编程助手 GitHubCopilot

下一篇
  • 复制图片
按住ctrl可打开默认菜单