mac 安装stale disffusion笔记

参考官方地址:

https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Installation-on-Apple-Silicon

1,安装依赖包 brew install cmake protobuf rust python@3.10 git wget

2,安装stable diffusion : git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui

3,下载model: stable-diffusion-webui/models/Stable-diffusion

model地址:https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Installation-on-Apple-Silicon#downloading-stable-diffusion-models

4,启动stable diffusion:  ./webui.sh

 

如果报错:

1,解决缺少工具包openai/clip-vit-large-patch14:

OSError: Can't load tokenizer for 'openai/clip-vit-large-patch14'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'openai/clip-vit-large-patch14' is the correct path to a directory containing all relevant files for a CLIPTokenizer tokenizer.

Stable diffusion model failed to load
解决方案:
进入解压后的 stable-diffusion-webui 目录,创建目录 openai。
mkdir openai
cd openai
git clone https://www.modelscope.cn/AI-ModelScope/clip-vit-large-patch14.git

2,加载模型报错:AttributeError: ‘NoneType‘ object has no attribute ‘lowvram‘ 的解决办法

./webui.sh --opt-split-attention-v1 --lowvram

posted on 2024-06-30 09:51  zhaofeng555  阅读(26)  评论(0编辑  收藏  举报