Stable Diffusion WebUI 踩坑记录

Stable Diffusion WebUI 踩坑记录

    正在检查是否收录...
一言准备中...

文章目录

install Homebrew install python 3.10 clone stable diffusion web 设置 pip 国内源 install 如果 torch 安装有问题可以这样安装 Install GFPGAN 卡主问题 Taming-transformers 卡住问题 其他疑难问题

WIndows 和 Mac 基本上遇到的问题很像,主要是解决「网络」问题。

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

暂时不支持 3.11 版本

brew install python@3.10 

如果电脑存在多个 python 版本,最好在 .bash_profile 里面 alias python=pythoon3.10 一下

clone stable diffusion web

git clone https://gitcode.net/mirrors/AUTOMATIC1111/stable-diffusion-webui.git 

设置 pip 国内源

https://blog.csdn.net/weixin_47139649/article/details/109135065
临时: 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 使用国内源

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 目录下

其他疑难问题

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

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

真是服了!Sora还没发布,已经有人在用它挣钱了!

上一篇

Sora来了,会砸掉谁的饭碗? OpenAI同类可用的AI视频生成应用有哪些

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