ComfyUI 插件的下载和安装主要有以下几种方式,其中通过 ComfyUI-Manager 安装是最推荐、最便捷的方法。
以下是详细步骤:
ComfyUI-Manager 是 ComfyUI 的官方插件管理器,相当于一个“应用商店”,可以一键安装、更新和删除插件。
1. 安装 ComfyUI-Manager 本身
如果你还没有安装 Manager,需要先手动安装它:
custom_nodes 文件夹并克隆代码:cd custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Manager.git2. 使用 Manager 安装插件
如果你要安装的插件比较新,或者 Manager 里搜不到,可以使用手动安装。
步骤:
custom_nodes 文件夹。...\ComfyUI\custom_nodes\custom_nodes 文件夹。git clone 命令下载插件:git clone [这里是插件的GitHub链接]例如: git clone https://github.com/cubiq/ComfyUI_IPAdapter_plus.git
如果你不熟悉 Git 命令,或者无法使用 Git:
步骤:
custom_nodes 目录下。-main),如果有的话请去掉。很多插件(尤其是涉及 ControlNet、IPAdapter 或特殊模型的插件)需要额外的 Python 库支持。如果安装后报错,通常需要安装依赖:
...\ComfyUI\custom_nodes\插件名\)。requirements.txt 文件。pip install -r custom_nodes/插件名/requirements.txt(如果你使用的是便携版 ComfyUI,可能需要使用 python_embeded\python.exe -m pip install ... 的方式)
requirements.txt 并安装。custom_nodes 文件夹内的插件文件夹是否完整,或者是否有中文路径冲突。