使用 ComfyUI Manager
要让你的自定义节点通过 ComfyUI Manager 提供,你需要将其保存为 git 仓库(通常在github.com),
然后在 ComfyUI Manager 的 git 仓库提交一个 Pull Request,在其中编辑 custom-node-list.json 以添加你的节点。
详细说明。
当用户安装节点时,ComfyUI Manager 会:
1
Git 克隆
git clone 该仓库,
2
安装 Python 依赖
安装自定义节点仓库下
requirements.txt 中列出的 pip 依赖(如果存在),3
运行安装脚本
如果自定义节点仓库中存在
install.py,则执行它。
ComfyUI Manager 文件
如上所述,ComfyUI Manager 会使用一些文件和脚本来管理自定义节点的生命周期。这些都是可选的。requirements.txt- 如上所述的 Python 依赖install.py,uninstall.py- 安装或卸载自定义节点时执行disable.py,enable.py- 禁用或重新启用自定义节点时执行node_list.json- 仅当自定义节点的 NODE_CLASS_MAPPINGS 模式不符合常规时才需要。