与SD WebUI类似,ComfyUI需要:
# 克隆ComfyUI
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
# 安装PyTorch(CUDA版本)
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
# 安装其他依赖
pip install -r requirements.txt
# 使用ComfyUI官方便携版(自带Python环境)
# 从GitHub Releases下载便携版
# https://github.com/comfyanonymous/ComfyUI/releases
# 下载后解压,直接运行 run_nvidia_gpu.bat
# 使用NVIDIA GPU启动
run_nvidia_gpu.bat
# 使用CPU启动(速度较慢)
run_cpu.bat
# 使用AMD GPU启动(ROCm)
run_amd_gpu.bat
启动后浏览器访问 http://127.0.0.1:8188,即可看到ComfyUI的节点编辑器界面。
cd ComfyUI/custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Manager.git
cd ComfyUI-Manager
pip install -r requirements.txt
安装ComfyUI Manager后,重启ComfyUI,你会在界面上看到"Manager"按钮: