Mac 安装 ComfyUI 教程
步骤已最简化,不需要安装 conda
- 环境准备(homebrew及相关依赖包)
cd ~
#安装homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
#安装相关依赖
brew install cmake protobuf rust python@3.10 git wget
- 新建一个 shll 脚本,install.sh
#!/bin/bash
#创建虚拟环境
cd ~
python3 -m venv cf
#激活虚拟环境
source cf/bin/activate
#升级pip
pip install --upgrade pip
#安装依赖
pip install torch torchvision torchaudio
#克隆ComfyUI代码并安装依赖
git clone https://github.com/comfyanonymous/ComfyUI
cd ComfyUI
pip install -r requirements.txt
pip uninstall numpy
pip install numpy==1.26.4
#安装插件管理器及汉化插件
cd ~/ComfyUI/custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Manager.git
cd ComfyUI-Manager && pip install -r requirements.txt
pip install setuptools
cd ..
git clone https://github.com/AIGODLIKE/AIGODLIKE-COMFYUI-TRANSLATION.git
echo "ComfyUI部署完成!"
执行脚本
bash install.sh
- 下载模型 (考虑国内网络环境,此处使用镜像站)
wget -P ~/ComfyUI/models/checkpoints https://hf-mirror.com/LarryAIDraw/v1-5-pruned-emaonly/resolve/main/v1-5-pruned-emaonly.ckpt
启动 ComfyUI
cd ~
source cf/bin/activate && cd ComfyUI && python main.py --auto-launch --listen --dont-upcast-attention --output-directory ~/Desktop
打赏作者
您将是第一位评论人!