Skip to content

Latest commit

 

History

History
93 lines (61 loc) · 3.78 KB

INSTALL-CN.md

File metadata and controls

93 lines (61 loc) · 3.78 KB

安装

自动安装(推荐)

ComfyUI 管理器

从 0.1.0 版开始,该扩展将使用 ComfyUI-Manager 进行安装,这对处理各种环境下的各种安装问题大有帮助。

虚拟环境

还有一种试验性的单行安装方法,即在 ComfyUI 根目录下使用以下命令进行安装。它将下载代码、安装依赖项并运行安装脚本:

curl -sSL "https://raw.githubusercontent.com/username/repo/main/install.py" | python3 -

模型下载

某些节点需要下载额外的模型,您可以使用与上述相同的 python 环境以交互方式完成下载:

python scripts/download_models.py

然后根据提示或直接按回车键下载每个模型。

Note 您可以使用以下方法下载所有型号,无需提示:

python scripts/download_models.py -y

网络扩展

首次运行时,脚本会尝试将 网络扩展链接到你的 "web/extensions "文件夹,请参阅

color widget preview

旧的安装方法 (MANUAL)

依赖关系

Custom Virtualenv(我主要用这个)

  • 确保您处于用于 ComfyUI 的 Python 环境中。
  • 运行以下命令安装所需的依赖项:
  • pip install -r comfy_mtb/reqs.txt

    Comfy 便携式/单机版(来自 ComfyUI 版本)

    如果您使用 ComfyUI 单机版中的 python-embeded ,那么当二进制文件没有轮子时,您就无法使用 pip 安装二进制文件的依赖项,在这种情况下,请查看最近的 发布,那里有一个预编译轮子的 linux 和 windows 捆绑包(只有那些需要从源代码编译的轮子),请查看 此问题 (#1) 以获取更多信息。 image

    Google Colab

    Run ComfyUI with localtunnel (Recommended Way) 标题之后(代码单元格之前)添加一个新的代码单元格

    preview of where to add it on colab

    # download the nodes
    !git clone --recursive https://github.com/melMass/comfy_mtb.git custom_nodes/comfy_mtb
    
    # download all models
    !python custom_nodes/comfy_mtb/scripts/download_models.py -y
    
    # install the dependencies
    !pip install -r custom_nodes/comfy_mtb/reqs.txt -f https://download.openmmlab.com/mmcv/dist/cu118/torch2.0/index.html

    如果运行后 colab 抱怨需要重新启动运行时,请重新启动,然后不要重新运行之前的单元格,只运行运行本地隧道的单元格。(可能需要先添加一个包含 %cd ComfyUI 的单元格)

    Note: If you don't need all models, remove the -y as collab actually supports user input: image

    Preview image