WIndows 和 Mac 基本上遇到的問題很像,主要是解決「網(wǎng)絡(luò)」問題。
install Homebrew
# 官方教程
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# 金牛肖馬
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
install python 3.10
暫時(shí)不支持 3.11 版本
brew install python@3.10
如果電腦存在多個(gè) python 版本,最好在 .bash_profile 里面 alias python=pythoon3.10 一下
clone stable diffusion web
git clone https://gitcode.net/mirrors/AUTOMATIC1111/stable-diffusion-webui.git
設(shè)置 pip 國內(nèi)源
https://blog.csdn.net/weixin_47139649/article/details/109135065
臨時(shí): pip install -i https://pypi.tuna.tsinghua.edu.cn/simple
永久: ~/.pip/pip.conf
[global]
index-url=https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
install
sh webui.sh
如果 torch 安裝有問題可以這樣安裝
./venv/bin/pip3 install torch torchvision torchaudio
可以修改 launch.py
里面的 run_pip
方法,增加 -i 使用國內(nèi)源
Install GFPGAN 卡主問題
https://blog.csdn.net/weixin_40735291/article/details/129153398
mkdir venv/Scripts
cd venv/Scripts
git clone https://gitcode.net/mirrors/TencentARC/GFPGAN.git
cd venv/Scripts/GFPGAN
../../bin/python -m pip install basicsr facexlib -i https://pypi.tuna.tsinghua.edu.cn/simple
../../bin/python -m pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
../../bin/python setup.py develop
Taming-transformers 卡住問題
可以使用 https://gitee.com/rexiyz/taming-transformers.git 替換,放到
repositories 目錄下文章來源:http://www.zghlxwxcb.cn/news/detail-447175.html
其他疑難問題
https://blog.csdn.net/weixin_43732022/article/details/129336297?utm_medium=distribute.pc_relevant.none-task-blog-2defaultbaidujs_baidulandingword~default-0-129336297-blog-121973403.pc_relevant_aa&spm=1001.2101.3001.4242.1&utm_relevant_index=3文章來源地址http://www.zghlxwxcb.cn/news/detail-447175.html
到了這里,關(guān)于Stable Diffusion WebUI 踩坑記錄的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!