Windows
參考文章:從零開始,手把手教你本地部署Stable Diffusion Webui AI繪畫(非最新版)
一鍵腳本安裝
- 默認(rèn)環(huán)境安裝在項目路徑的
venv
下
conda create -n df_env python==3.10
- 安裝pytorch:(正常用國內(nèi)網(wǎng)就行)
python -m pip install --upgrade pip
# 阿里云源穩(wěn)定
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
- 運(yùn)行核心腳本
webui-user.bat
- 安裝依賴:
pip install -r .\requirements.txt
pip install -r .\requirements_versions.txt
pip install accelerate==0.21.0
- 踩坑特定環(huán)境版本:
pip install tb_nightly -i https://mirrors.aliyun.com/pypi/simple
運(yùn)行
python3 launch.py --disable-nan-check
accelerate launch --num_cpu_threads_per_process=6 launch.py --disable-nan-check
效果
文章來源:http://www.zghlxwxcb.cn/news/detail-754208.html
下載模型
模型網(wǎng)站:文章來源地址http://www.zghlxwxcb.cn/news/detail-754208.html
- 配置網(wǎng)絡(luò):
git config --global http.proxy "http://127.0.0.1:7890"
git config --global https.proxy "http://127.0.0.1:7890"
- 在webui路徑下創(chuàng)建openai文件夾:
cd openai
git clone https://huggingface.co/openai/clip-vit-large-patch14
到了這里,關(guān)于Stable-Diffusion——Windows部署教程的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!