环境
- Mac M2 12.5
- Stable Diffusion: 目前国内很多Ai绘画软件,都是用的它的来源代码。是一个很强大的Ai绘画工具了,现在已经升级到2.1版本了。
安装
安装 homebrew
这里就不介绍怎么安装homebrew了
安装 各种官方依赖
- brew install cmake
- brew install protobuf
- brew install rust
- brew install python@3.10
- brew install git
- brew install wget
通过 brew list 查看自己已安装的依赖
安装 SD Web UI
git@github.com:AUTOMATIC1111/stable-diffusion-webui.git
找到 webui.sh 文件,直接 sh webui.sh 即可。
运行后,慢慢等待即可,等出现该字段时,即表示运行完成
访问该网站
安装模型
插件下载地址:github.com/Mikubill/sd…
模型下载地址:huggingface.co/lllyasviel/…
问题
问题1: 运行时提示 RuntimeError: "upsample_nearest2d_channels_last" not implemented for 'Half'
Open webui-macos-env.sh file with your textedit.
Change :
export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate"
To :
export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --no-half-vae --no-half --use-cpu interrogate"
需要重启