comfyui安装部署

740 阅读1分钟

下载

GitHub - comfyanonymous/ComfyUI: The most powerful and modular stable diffusion GUI, api and backend with a graph/nodes interface.

解压

使用

下载大模型

大模型下载地址及存放位置

下载地址

Hugging Face – The AI community building the future.
Civitai: The Home of Open-Source Generative AI

存放位置

大模型
ComfyUI/models/checkpoints
Vae
ComfyUI/Models/vae
Lora
ComfyUI\models\loras

安装依赖

在 ComfyUI 文件夹中打开终端来安装依赖项,然后:

pip install -r requirements.txt 

Python 使用 pip 命令安装时,默认使用的源是国外的网站,而国内访问比较慢,此时要换源,以下两种方法换源。

方法一 (解决一次安装):
阿里源

pip install 要安装的包名 -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors. Aliyun. Com

开始使用

无 NVIDIA 的双击 .bat 文件
有 NVIDIA 的击 NVIDIA 那个 .bat 文件

技巧

如何显示高质量预览

使用 --preview-method auto 启用预览。
默认安装包含一种低分辨率的快速潜伏预览方法。要使用 TAESD 启用更高质量的预览,
请下载
taesd_decoder. Pth(用于 SD 1. X 和 SD 2. X)
和 taesdxl_decoder. Pth(用于 SDXL)模型,
并将它们放到 models/vae_approx 文件夹中。

安装完成后,重启 ComfyUI 以启用高质量预览。

插件

存放在 ComfyUI\custom_nodes\

Manager

GitHub - ltdrdata/ComfyUI-Manager
goto ComfyUI/custom_nodes dir in terminal(cmd)


git clone https://github.com/ltdrdata/ComfyUI-Manager.git

Restart ComfyUI
如果

Failed to connect to github.com port 443 after 21137 ms: Couldn't connect to server

在本地 git 使用下面这条命令直接解决问题

git config --global --unset http.proxy

汉化插件

Translation
![[Other/Image/comfyui插件Translation安装.gif]]
![[Other/Image/comfyui插件Translation切换中文.gif]]

Efficiency 节点

ControlNet