ComfyUI-Manager

ComfyUI-Manager是ComfyUI的官方插件管理器,提供插件安装、更新、管理等功能,是ComfyUI生态系统的核心工具。

概述

功能特点

主要功能

graph TD
    A[ComfyUI-Manager] --> B[插件安装]
    A --> C[插件更新]
    A --> D[插件管理]
    A --> E[模型下载]
    A --> F[工作流管理]

    B --> B1[搜索插件]
    B --> B2[一键安装]
    B --> B3[依赖管理]

    C --> C1[检查更新]
    C --> C2[批量更新]
    C --> C3[版本回滚]

    D --> D1[启用/禁用]
    D --> D2[卸载插件]
    D --> D3[插件信息]

    E --> E1[模型搜索]
    E --> E2[模型下载]
    E --> E3[模型管理]

    F --> F1[工作流导入]
    F --> F2[工作流导出]
    F --> F3[工作流分享]

    style A fill:#e1f5ff
    style B fill:#fff4e1
    style C fill:#ffe1f5
    style D fill:#e1ffe1
    style E fill:#ffe1e1
    style F fill:#e1ffe1

安装ComfyUI-Manager

方法1: 手动安装

graph LR
    A[克隆仓库] --> B[重启ComfyUI]
    B --> C[验证安装]

    style A fill:#e1ffe1
    style B fill:#fff4e1
    style C fill:#e1ffe1
# 进入ComfyUI目录
cd ComfyUI/custom_nodes

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

# 重启ComfyUI

方法2: 使用安装脚本

# 使用PowerShell
cd ComfyUI
python -m pip install -r requirements.txt
cd ComfyUI
pip install -r requirements.txt

使用ComfyUI-Manager

1. 界面介绍

┌─────────────────────────────────────┐
│  ComfyUI-Manager                   │
├─────────────────────────────────────┤
│  [安装] [更新] [管理] [下载]      │
├─────────────────────────────────────┤
│  插件列表                         │
│  - ComfyUI-Impact-Pack            │
│  - ComfyUI-GGUF                   │
│  - ComfyUI-VideoHelperSuite        │
│  ...                              │
└─────────────────────────────────────┘

2. 安装插件

graph TD
    A[打开Manager] --> B[点击安装]
    B --> C[搜索插件]
    C --> D[选择插件]
    D --> E[点击安装]
    E --> F[等待安装]
    F --> G[重启ComfyUI]

    style A fill:#e1ffe1
    style B fill:#fff4e1
    style C fill:#fff4e1
    style D fill:#fff4e1
    style E fill:#fff4e1
    style F fill:#fff4e1
    style G fill:#e1ffe1
  1. 打开ComfyUI
  2. 点击"Manager"按钮
  3. 点击"Install"选项卡
  4. 搜索或浏览插件
  5. 点击"Install"按钮
  6. 等待安装完成
  7. 重启ComfyUI

3. 更新插件

graph LR
    A[打开Manager] --> B[点击更新]
    B --> C[检查更新]
    C --> D[选择插件]
    D --> E[点击更新]
    E --> F[等待更新]
    F --> G[重启ComfyUI]

    style A fill:#e1ffe1
    style B fill:#fff4e1
    style C fill:#fff4e1
    style D fill:#fff4e1
    style E fill:#fff4e1
    style F fill:#fff4e1
    style G fill:#e1ffe1
  1. 打开ComfyUI
  2. 点击"Manager"按钮
  3. 点击"Update"选项卡
  4. 查看可更新的插件
  5. 点击"Update"按钮
  6. 等待更新完成
  7. 重启ComfyUI

4. 管理插件

graph TD
    A[插件管理] --> B[启用插件]
    A --> C[禁用插件]
    A --> D[卸载插件]
    A --> E[查看信息]

    style A fill:#e1f5ff
    style B fill:#fff4e1
    style C fill:#ffe1f5
    style D fill:#e1ffe1
    style E fill:#e1ffe1
  1. 打开ComfyUI
  2. 点击"Manager"按钮
  3. 点击"Manage"选项卡
  4. 选择插件
  5. 执行管理操作
  6. 重启ComfyUI(如需要)

5. 下载模型

graph TD
    A[模型下载] --> B[搜索模型]
    A --> C[浏览模型]
    A --> D[下载模型]

    B --> B1[按名称搜索]
    B --> B2[按类型搜索]

    C --> C1[热门模型]
    C --> C2[最新模型]

    D --> D1[选择版本]
    D --> D2[选择目录]
    D --> D3[开始下载]

    style A fill:#e1f5ff
    style B fill:#fff4e1
    style C fill:#ffe1f5
    style D fill:#e1ffe1
  1. 打开ComfyUI
  2. 点击"Manager"按钮
  3. 点击"Download"选项卡
  4. 搜索或浏览模型
  5. 选择模型版本
  6. 点击"Download"按钮
  7. 等待下载完成

高级功能

1. 批量操作

graph LR
    A[选择多个插件] --> B[批量安装]
    B --> C[等待完成]
    C --> D[重启ComfyUI]

    style A fill:#e1ffe1
    style B fill:#fff4e1
    style C fill:#fff4e1
    style D fill:#e1ffe1

2. 版本管理

graph LR
    A[选择插件] --> B[查看版本历史]
    B --> C[选择版本]
    C --> D[回滚版本]
    D --> E[重启ComfyUI]

    style A fill:#e1ffe1
    style B fill:#fff4e1
    style C fill:#fff4e1
    style D fill:#fff4e1
    style E fill:#e1ffe1

3. 依赖管理

配置选项

1. 基本配置

{
  "update_interval": 86400,
  "skip_update": false,
  "download_model_path": "models/",
  "custom_nodes_path": "custom_nodes/"
}

2. 高级配置

{
  "proxy": "http://proxy.example.com:8080",
  "proxy_username": "username",
  "proxy_password": "password"
}

常见问题

Q1: Manager安装失败怎么办?

A: 检查网络连接,尝试手动安装,查看错误日志。

Q2: 如何更新Manager?

A: Manager会自动更新,或手动拉取最新代码。

Q3: 插件安装后不显示?

A: 重启ComfyUI,检查插件是否正确安装。

Q4: 如何卸载插件?

A: 在Manager中点击"Uninstall"按钮。

Q5: Manager占用大量资源?

A: 减少更新频率,关闭不必要的功能。

最佳实践

实践1: 定期更新

定期更新Manager和插件,保持最新版本。

实践2: 备份配置

备份Manager配置,防止丢失。

实践3: 测试插件

安装新插件后先测试,确认正常使用。

实践4: 版本控制

使用版本控制管理插件版本。

实践5: 文档记录

记录插件配置和使用方法。

扩展阅读

更新日志