开源项目 GitHub Topic ai 2026-07-06T12:02 正文 ok 2521 words

📦 Comfy-Org/ComfyUI:面向视觉专业人士的模块化 AI 创作引擎

英文标题:📦 Comfy-Org/ComfyUI

ComfyUI 是一个面向视觉专业人士的模块化 AI 创作引擎,通过节点图界面让用户无需编码即可构建复杂的扩散模型工作流。它原生支持最新开源模型,并通过 API 节点接入 Nano Banana、Seedance 等闭源模型,覆盖图像、视频、音频及 3D 生成。ComfyUI 提供 Windows、Linux 与 macOS 桌面应用、便携版和云服务,并通过智能内存管理支持低至 1GB 显存的 GPU。项目遵循周发布周期,ComfyUI Core 每两周发布一个稳定版。对开发者而言,其完善的 API 端点和灵活配置使其能无缝融入生产管线。
打开原文相关 1.4 · 机会 4
media998 B media3.2 KB media1.7 KB media2.3 KB media1.3 KB media1.3 KB media1.3 KB media1.3 KB media306.7 KB media7.7 KB media6.5 KB media6.2 KB media7.1 KB media8.4 KB media1.5 KB media1.5 KB media2.1 KB media1.6 KB media1.3 KB media7.0 KB

中文

ComfyUI 是一款为需要掌控每个模型、参数和输出的视觉专业人士打造的 AI 创作引擎。其强大且模块化的节点图界面,让创作者能够生成图像、视频、3D 模型、音频等内容...

  • ComfyUI 原生支持最新的开源尖端模型。

  • API 节点提供对最佳闭源模型的访问,例如 Nano Banana、Seedance、Hunyuan3D 等。

  • 它可在 Windows、Linux 和 macOS 上通过桌面应用、便携安装包或在云端本地运行。

  • 借助 App Mode,最复杂的工作流也能通过简洁的 UI 展现。

  • 它通过 API 端点无缝集成到生产管线中。

  • 最简单的入门方式。

  • 支持 Windows 和 macOS。

  • 获取最新提交,完全可移植。

  • 支持 Windows。

支持所有操作系统和 GPU 类型(NVIDIA、AMD、Intel、Apple Silicon、Ascend)。

  • 我们的官方付费云版本,适用于无法负担本地硬件的用户。

通过更新的模板工作流或旧的示例工作流查看 ComfyUI 的功能。

  • 节点/图形/流程图界面,无需编码即可试验和创建复杂的 Stable Diffusion 工作流。
  • 注意:支持的模型远多于下方列表,如需查看完整支持,请查看 ComfyUI 内的模板列表。
  • Image Models
  • Image Editing Models
  • Video Models
  • Audio Models
  • 3D Models
  • 异步队列系统
  • 多项优化:仅重新执行两次运行之间发生变化的工作流部分。
  • 智能内存管理:可通过智能卸载在低至 1GB 显存的 GPU 上自动运行大型模型。
  • 即使没有 GPU 也可通过 --cpu(速度较慢)运行。
  • 可加载 ckpt 和 safetensors:一体式检查点或独立的扩散模型、VAE 和 CLIP 模型。
  • 安全加载 ckpt、pt、pth 等文件。
  • Embeddings/Textual inversion
  • Loras(常规、locon 和 loha)
  • Hypernetworks
  • 从生成的 PNG、WebP 和 FLAC 文件加载完整工作流(含种子)。
  • 将工作流保存/加载为 Json 文件。
  • 节点界面可用于创建复杂工作流,例如 Hires fix 或更高级的工作流。
  • 区域合成 (Area Composition)
  • 修补 (Inpainting),支持常规和修补专用模型。
  • ControlNet 和 T2I-Adapter
  • 放大模型 (ESRGAN, ESRGAN 变体, SwinIR, Swin2SR 等...)
  • GLIGEN
  • 模型合并
  • LCM 模型和 Loras
  • 使用 TAESD 进行潜在空间预览
  • 完全离线工作:核心程序绝不会主动下载任何内容。
  • 可选的 API 节点,用于通过在线 Comfy API 使用外部供应方的付费模型,通过 --disable-api-nodes 禁用。
  • 配置文件 用于设置模型的搜索路径。

工作流示例可在示例页面找到。

ComfyUI 遵循每周发布周期,目标在周一,但常因模型发布或代码库重大变更而改变。共有三个相互关联的仓库:

  1. ComfyUI Core

    • 大约每 2 周发布一个新的主要稳定版本(例如 v0.7.0)。
    • 从 v0.4.0 开始,补丁版本用于将修复移植回当前稳定版。
    • 次版本号用于从 master 分支发布的版本。
    • 补丁版本也可能用于 master 分支的发布,此时移植修复并无意义。
    • 稳定版标签之外的提交可能非常不稳定,会破坏许多自定义节点。
    • 作为桌面版的基础。
  2. Comfy Desktop

    • 使用最新的稳定核心版本构建新版本。
  3. ComfyUI Frontend

    • 每 2 周以上,前端更新合并到核心仓库。
    • 针对即将到来的核心版本冻结功能。
    • 开发继续为下一个发布周期进行。
快捷键 说明
Ctrl + Enter 将当前图表加入生成队列
Ctrl + Shift + Enter 将当前图表作为最优先加入生成队列
Ctrl + Alt + Enter 取消当前生成
Ctrl + Z/Ctrl + Y 撤销/重做
Ctrl + S 保存工作流
Ctrl + O 加载工作流
Ctrl + A 全选所有节点
Alt + C 折叠/展开选中节点
Ctrl + M 静音/取消静音选中节点
Ctrl + B 绕过选中节点(相当于将节点从图中移除并将连线重连)
Delete/Backspace 删除选中节点
Ctrl + Backspace 删除当前图表
Space 按住并移动光标时移动画布
Ctrl/Shift + Click 将点击的节点添加到选区
Ctrl + C/Ctrl + V 复制粘贴选中节点(不保持与未选中节点输出的连接)
Ctrl + C/Ctrl + Shift + V 复制粘贴选中节点(保持未选中节点输出到粘贴节点输入的连接)
Shift + Drag 同时移动多个选中节点
Ctrl + D 加载默认图表
Alt + + 画布放大
Alt + - 画布缩小
Ctrl + Shift + 鼠标左键 + 垂直拖动 画布放大/缩小
P 固定/取消固定选中节点
Ctrl + G 将选中节点编组
Q 切换队列可见性
H 切换历史可见性
R 刷新图表
F 显示/隐藏菜单
. 缩放视图以适应选中内容(未选择时为整个图表)
双击鼠标左键 打开节点快速搜索面板
Shift + Drag 同时移动多条连线
Ctrl + Alt + 鼠标左键 断开点击插槽的所有连线

macOS 用户可将 Ctrl 替换为 Cmd。

发布页面提供适用于 Windows 的便携独立版本,可在 Nvidia GPU 或仅 CPU 上运行。

只需下载,用 7-Zip 或较新 Windows 版本的自带资源管理器解压后运行即可。对于较小模型,通常只需将检查点(巨大的 ckpt/safetensors 文件)放入:ComfyUI\models\checkpoints,但许多较大模型包含多个文件,请务必遵循说明了解应放入 ComfyUI\models\ 下的哪个子文件夹。

如果解压遇到问题,右键文件 -> 属性 -> 解除锁定。

上述便携版目前内置 Python 3.13 和 PyTorch CUDA 13.0。如果无法启动,请更新 Nvidia 驱动。

所有官方便携版下载:

适用于 AMD GPU 的便携版

适用于 Intel GPU 的便携版

适用于 Nvidia GPU 的便携版(支持 20 系列及以上)。

适用于 Nvidia GPU 且 PyTorch CUDA 12.6 与 Python 3.12 的便携版(支持 Nvidia 10 系列及更旧 GPU)。

如何在另一个 UI 和 ComfyUI 之间共享模型?

参见配置文件以设置模型的搜索路径。在 Windows 独立版本中,你可以在 ComfyUI 目录下找到此文件。将此文件重命名为 extra_model_paths.yaml 并用喜欢的文本编辑器编辑。

你可以使用 comfy-cli 安装并启动 ComfyUI:

pip install comfy-cli
comfy install

手动安装(Windows, Linux)

Python 3.14 可运行,但某些自定义节点可能存在兼容问题。自由线程版本可行,但部分依赖会启用 GIL,因此并非完全支持。

Python 3.13 支持极好。如果在 3.13 上遇到自定义节点依赖问题,可尝试 3.12。

torch 2.4 及以上版本受支持,但某些功能和优化可能仅在新版本中有效。我们通常推荐使用最新主版本的 PyTorch 搭配最新 CUDA 版本,除非其发布不足两周。

Git clone 本仓库。

将 SD 检查点(巨大的 ckpt/safetensors 文件)放入:models/checkpoints

将 VAE 放入:models/vae

AMD 用户若未安装 rocm 和 pytorch,可通过 pip 安装,安装稳定版的命令:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm7.2

安装带 ROCm 7.2 的 nightly 版本(可能带来性能提升)的命令:

pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm7.2

AMD GPU(实验性:Windows 和 Linux),仅限 RDNA 3、3.5 和 4。

这些版本硬件支持较上述构建少,但可在 Windows 上运行。你还需要安装特定于硬件的 PyTorch 版本。

RDNA 3(RX 7000 系列):

pip install --pre torch torchvision torchaudio --index-url https://rocm.nightlies.amd.com/v2/gfx110X-all/

RDNA 3.5(Strix halo/Ryzen AI Max+ 365):

pip install --pre torch torchvision torchaudio --index-url https://rocm.nightlies.amd.com/v2/gfx1151/

RDNA 4(RX 9000 系列):

pip install --pre torch torchvision torchaudio --index-url https://rocm.nightlies.amd.com/v2/gfx120X-all/

Intel GPU(Windows 和 Linux)

Intel Arc GPU 用户可通过 pip 安装原生支持 torch.xpu 的 PyTorch。更多信息参见此处。

  1. 安装 PyTorch xpu,使用以下命令:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/xpu

安装 PyTorch xpu nightly 的命令(可能带来性能提升):

pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/xpu

Nvidia 用户应使用以下命令安装稳定版 PyTorch:

pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu130

安装 PyTorch nightly 的命令,可能带来性能提升:

pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu132

若遇到“Torch not compiled with CUDA enabled”错误,使用以下命令卸载 torch:

pip uninstall torch

并重新用上述命令安装。

在 ComfyUI 文件夹内打开终端安装依赖:

pip install -r requirements.txt

此后应已安装一切,可继续运行 ComfyUI。

你可以在配备 Apple M 系列芯片(M1、M2、M3 或 M4)及较新 macOS 版本的 Mac 上安装 ComfyUI。

  1. 安装 PyTorch nightly。阅读 Apple 开发者指南 Accelerated PyTorch training on Mac 获取说明(确保安装最新 PyTorch nightly)。
  2. 按照 Windows 和 Linux 的 ComfyUI 手动安装说明操作。
  3. 安装 ComfyUI 依赖。如果你有其他 Stable Diffusion UI,或许可重用依赖。
  4. 通过运行 python main.py 启动 ComfyUI。

注意:请记得将模型、VAE、LoRA 等放入对应的 Comfy 文件夹,如 ComfyUI 手动安装所述。

适用于与 Ascend Extension for PyTorch(torch_npu)兼容的模型。开始前,请确保环境满足安装页所列前提。以下是针对平台和安装方法的分步指南:

  1. 如有必要,首先按照 torch-npu 安装页要求安装推荐的或更新的 Linux 内核版本。
  2. 遵循特定平台的说明安装 Ascend Basekit,包括驱动、固件和 CANN。
  3. 接下来,按照安装页上针对平台的说明安装 torch-npu 所需包。
  4. 最后,遵循 ComfyUI 的 Linux 手动安装指南。所有组件安装完毕后,即可如前所述运行 ComfyUI。

适用于与 Cambricon Extension for PyTorch(torch_mlu)兼容的模型。以下是针对平台和安装方法的分步指南:

  1. 按照安装页上的说明安装 Cambricon CNToolkit。
  2. 接下来,安装 PyTorch(torch_mlu) following t

English / 原文

ComfyUI is the AI creation engine for visual professionals who demand control over every model, every parameter, and every output. Its powerful and modular node graph interface empowers creatives to generate images, videos, 3D models, audio, and more...

  • ComfyUI natively supports the latest open-source state of the art models.

  • API nodes provide access to the best closed source models such as Nano Banana, Seedance, Hunyuan3D, etc.

  • It is available on Windows, Linux, and macOS, locally with our desktop application, our portable install or on our cloud.

  • The most sophisticated workflows can be exposed through a simple UI thanks to App Mode.

  • It integrates seamlessly into production pipelines with our API endpoints.

  • The easiest way to get started.

  • Available on Windows & macOS.

  • Get the latest commits and completely portable.

  • Available on Windows.

Supports all operating systems and GPU types (NVIDIA, AMD, Intel, Apple Silicon, Ascend).

  • Our official paid cloud version for those who can't afford local hardware.

See what ComfyUI can do with the newer template workflows or old example workflows.

  • Nodes/graph/flowchart interface to experiment and create complex Stable Diffusion workflows without needing to code anything.
  • NOTE: There are many more models supported than the list below, if you want to see what is supported see our templates list inside ComfyUI.
  • Image Models
  • Image Editing Models
  • Video Models
  • Audio Models
  • 3D Models
  • Asynchronous Queue system
  • Many optimizations: Only re-executes the parts of the workflow that changes between executions.
  • Smart memory management: can automatically run large models on GPUs with as low as 1GB vram with smart offloading.
  • Works even if you don't have a GPU with: --cpu (slow)
  • Can load ckpt and safetensors: All in one checkpoints or standalone diffusion models, VAEs and CLIP models.
  • Safe loading of ckpt, pt, pth, etc.. files.
  • Embeddings/Textual inversion
  • Loras (regular, locon and loha)
  • Hypernetworks
  • Loading full workflows (with seeds) from generated PNG, WebP and FLAC files.
  • Saving/Loading workflows as Json files.
  • Nodes interface can be used to create complex workflows like one for Hires fix or much more advanced ones.
  • Area Composition
  • Inpainting with both regular and inpainting models.
  • ControlNet and T2I-Adapter
  • Upscale Models (ESRGAN, ESRGAN variants, SwinIR, Swin2SR, etc...)
  • GLIGEN
  • Model Merging
  • LCM models and Loras
  • Latent previews with TAESD
  • Works fully offline: core will never download anything unless you want to.
  • Optional API nodes to use paid models from external providers through the online Comfy API disable with: --disable-api-nodes
  • Config file to set the search paths for models.

Workflow examples can be found on the Examples page

ComfyUI follows a weekly release cycle targeting Monday but this regularly changes because of model releases or large changes to the codebase. There are three interconnected repositories:

  1. ComfyUI Core

    • Releases a new major stable version (e.g., v0.7.0) roughly every 2 weeks.
    • Starting from v0.4.0 patch versions will be used for fixes backported onto the current stable release.
    • Minor versions will be used for releases off the master branch.
    • Patch versions may still be used for releases on the master branch in cases where a backport would not make sense.
    • Commits outside of the stable release tags may be very unstable and break many custom nodes.
    • Serves as the foundation for the desktop release
  2. Comfy Desktop

    • Builds a new release using the latest stable core version
  3. ComfyUI Frontend

    • Every 2+ weeks frontend updates are merged into the core repository
    • Features are frozen for the upcoming core release
    • Development continues for the next release cycle
Keybind Explanation
Ctrl + Enter Queue up current graph for generation
Ctrl + Shift + Enter Queue up current graph as first for generation
Ctrl + Alt + Enter Cancel current generation
Ctrl + Z/Ctrl + Y Undo/Redo
Ctrl + S Save workflow
Ctrl + O Load workflow
Ctrl + A Select all nodes
Alt + C Collapse/uncollapse selected nodes
Ctrl + M Mute/unmute selected nodes
Ctrl + B Bypass selected nodes (acts like the node was removed from the graph and the wires reconnected through)
Delete/Backspace Delete selected nodes
Ctrl + Backspace Delete the current graph
Space Move the canvas around when held and moving the cursor
Ctrl/Shift + Click Add clicked node to selection
Ctrl + C/Ctrl + V Copy and paste selected nodes (without maintaining connections to outputs of unselected nodes)
Ctrl + C/Ctrl + Shift + V Copy and paste selected nodes (maintaining connections from outputs of unselected nodes to inputs of pasted nodes)
Shift + Drag Move multiple selected nodes at the same time
Ctrl + D Load default graph
Alt + + Canvas Zoom in
Alt + - Canvas Zoom out
Ctrl + Shift + LMB + Vertical drag Canvas Zoom in/out
P Pin/Unpin selected nodes
Ctrl + G Group selected nodes
Q Toggle visibility of the queue
H Toggle visibility of history
R Refresh graph
F Show/Hide menu
. Fit view to selection (Whole graph when nothing is selected)
Double-Click LMB Open node quick search palette
Shift + Drag Move multiple wires at once
Ctrl + Alt + LMB Disconnect all wires from clicked slot

Ctrl can also be replaced with Cmd instead for macOS users

There is a portable standalone build for Windows that should work for running on Nvidia GPUs or for running on your CPU only on the releases page.

Simply download, extract with 7-Zip or with the windows explorer on recent windows versions and run. For smaller models you normally only need to put the checkpoints (the huge ckpt/safetensors files) in: ComfyUI\models\checkpoints but many of the larger models have multiple files. Make sure to follow the instructions to know which subfolder to put them in ComfyUI\models\

If you have trouble extracting it, right click the file -> properties -> unblock

The portable above currently comes with python 3.13 and pytorch cuda 13.0. Update your Nvidia drivers if it doesn't start.

All Official Portable Downloads:

Portable for AMD GPUs

Portable for Intel GPUs

Portable for Nvidia GPUs (supports 20 series and above).

Portable for Nvidia GPUs with pytorch cuda 12.6 and python 3.12 (Supports Nvidia 10 series and older GPUs).

How do I share models between another UI and ComfyUI?

See the Config file to set the search paths for models. In the standalone windows build you can find this file in the ComfyUI directory. Rename this file to extra_model_paths.yaml and edit it with your favorite text editor.

You can install and start ComfyUI using comfy-cli:

pip install comfy-cli
comfy install

Manual Install (Windows, Linux)

Python 3.14 works but some custom nodes may have issues. The free threaded variant works but some dependencies will enable the GIL so it's not fully supported.

Python 3.13 is very well supported. If you have trouble with some custom node dependencies on 3.13 you can try 3.12

torch 2.4 and above is supported but some features and optimizations might only work on newer versions. We generally recommend using the latest major version of pytorch with the latest cuda version unless it is less than 2 weeks old.

Git clone this repo.

Put your SD checkpoints (the huge ckpt/safetensors files) in: models/checkpoints

Put your VAE in: models/vae

AMD users can install rocm and pytorch with pip if you don't have it already installed, this is the command to install the stable version:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm7.2

This is the command to install the nightly with ROCm 7.2 which might have some performance improvements:

pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm7.2

AMD GPUs (Experimental: Windows and Linux), RDNA 3, 3.5 and 4 only.

These have less hardware support than the builds above but they work on windows. You also need to install the pytorch version specific to your hardware.

RDNA 3 (RX 7000 series):

pip install --pre torch torchvision torchaudio --index-url https://rocm.nightlies.amd.com/v2/gfx110X-all/

RDNA 3.5 (Strix halo/Ryzen AI Max+ 365):

pip install --pre torch torchvision torchaudio --index-url https://rocm.nightlies.amd.com/v2/gfx1151/

RDNA 4 (RX 9000 series):

pip install --pre torch torchvision torchaudio --index-url https://rocm.nightlies.amd.com/v2/gfx120X-all/

Intel GPUs (Windows and Linux)

Intel Arc GPU users can install native PyTorch with torch.xpu support using pip. More information can be found here

  1. To install PyTorch xpu, use the following command:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/xpu

This is the command to install the Pytorch xpu nightly which might have some performance improvements:

pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/xpu

Nvidia users should install stable pytorch using this command:

pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu130

This is the command to install pytorch nightly instead which might have performance improvements.

pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu132

If you get the "Torch not compiled with CUDA enabled" error, uninstall torch with:

pip uninstall torch

And install it again with the command above.

Install the dependencies by opening your terminal inside the ComfyUI folder and:

pip install -r requirements.txt

After this you should have everything installed and can proceed to running ComfyUI.

You can install ComfyUI in Apple Mac silicon (M1, M2, M3 or M4) with any recent macOS version.

  1. Install pytorch nightly. For instructions, read the Accelerated PyTorch training on Mac Apple Developer guide (make sure to install the latest pytorch nightly).
  2. Follow the ComfyUI manual installation instructions for Windows and Linux.
  3. Install the ComfyUI dependencies. If you have another Stable Diffusion UI you might be able to reuse the dependencies.
  4. Launch ComfyUI by running python main.py

Note : Remember to add your models, VAE, LoRAs etc. to the corresponding Comfy folders, as discussed in ComfyUI manual installation.

For models compatible with Ascend Extension for PyTorch (torch_npu). To get started, ensure your environment meets the prerequisites outlined on the installation page. Here's a step-by-step guide tailored to your platform and installation method:

  1. Begin by installing the recommended or newer kernel version for Linux as specified in the Installation page of torch-npu, if necessary.
  2. Proceed with the installation of Ascend Basekit, which includes the driver, firmware, and CANN, following the instructions provided for your specific platform.
  3. Next, install the necessary packages for torch-npu by adhering to the platform-specific instructions on the Installation page.
  4. Finally, adhere to the ComfyUI manual installation guide for Linux. Once all components are installed, you can run ComfyUI as described earlier.

For models compatible with Cambricon Extension for PyTorch (torch_mlu). Here's a step-by-step guide tailored to your platform and installation method:

  1. Install the Cambricon CNToolkit by adhering to the platform-specific instructions on the Installation
  2. Next, install the PyTorch(torch_mlu) following the instructions on the Installation
  3. Launch ComfyUI by running python main.py

For models compatible with Iluvatar Extension for PyTorch. Here's a step-by-step guide tailored to your platform and installation method:

  1. Install the Iluvatar Corex Toolkit by adhering to the platform-specific instructions on the Installation
  2. Launch ComfyUI by running python main.py

ComfyUI-Manager is an extension that allows you to easily install, update, and manage custom nodes for ComfyUI.

  1. Install the manager dependencies:

    pip install -r manager_requirements.txt
    
  2. Enable the manager with the --enable-manager flag when running ComfyUI:

    python main.py --enable-manager
    
Flag Description
--enable-manager Enable ComfyUI-Manager
--enable-manager-legacy-ui Use the legacy manager UI instead of the new UI (implies --enable-manager)
--disable-manager-ui Disable the manager UI and endpoints while keeping background features like security checks and scheduled installation completion (requires --enable-manager)

python main.py

For AMD cards not officially supported by ROCm

Try running it with this command if you have issues:

For 6700, 6600 and maybe other RDNA2 or older: HSA_OVERRIDE_GFX_VERSION=10.3.0 python main.py

For AMD 7600 and maybe other RDNA3 cards: HSA_OVERRIDE_GFX_VERSION=11.0.0 python main.py

You can try setting this env variable PYTORCH_TUNABLEOP_ENABLED=1 which might speed things up at the cost of a very slow initial run.

Only parts of the graph that have an output with all the correct inputs will be executed.

Only parts of the graph that change from each execution to the next will be executed, if you submit the same graph twice only the first will be executed. If you change the last part of the graph only the part you changed and the part that depends on it will be executed.

Dragging a generated png on the webpage or loading one will give you the full workflow including seeds that were used to create it.

You can use () to change emphasis of a word or phrase like: (good code:1.2) or (bad code:0.8). The default emphasis for () is 1.1. To use () characters in your actual prompt escape them like \( or \).

You can use {day|night}, for wildcard/dynamic prompts. With this syntax "{wild|card|test}" will be randomly replaced by either "wild", "card" or "test" by the frontend every time you queue the prompt. To use {} characters in your actual prompt escape them like: \{ or \}.

Dynamic prompts also support C-style comments, like // comment or /* comment */.

To use a textual inversion concepts/embeddings in a text prompt put them in the models/embeddings directory and use them in the CLIPTextEncode node like this (you can omit the .pt extension):

embedding:embedding_filename.pt

How to show high-quality previews?

Use --preview-method auto to enable previews.

The default installation includes a fast latent preview method that's low-resolution. To enable higher-quality previews with TAESD, download the taesd_decoder.pth, taesdxl_decoder.pth, taesd3_decoder.pth and taef1_decoder.pth and place them in the models/vae_approx folder. Once they're installed, restart ComfyUI and launch it with --preview-method taesd to enable high-quality previews.

Generate a self-signed certificate (not appropriate for shared/production use) and key by running the command: openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 3650 -nodes -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=CommonNameOrHostname"

Use --tls-keyfile key.pem --tls-certfile cert.pem to enable TLS/SSL, the app will now be accessible with https://... instead of http://....

Note: Windows users can use alexisrolland/docker-openssl or one of the 3rd party binary distributions to run the command example above.

If you use a container, note that the volume mount -v can be a relative path so ... -v ".\:/openssl-certs" ... would create the key & cert files in the current directory of your command prompt or powershell terminal.

Discord: Try the #help or #feedback channels.

Matrix space: #comfyui_space:matrix.org (it's like discord but open source).

See also: https://www.comfy.org/

psst — we're hiring! Help build ComfyUI: comfy.org/careers

As of August 15, 2024, we have transitioned to a new frontend, which is now hosted in a separate repository: ComfyUI Frontend. The compiled JS files (from TS/Vue) are published to pypi and installed as a dependency in ComfyUI.

Reporting Issues and Requesting Features

For any bugs, issues, or feature requests related to the frontend, please use the ComfyUI Frontend repository. This will help us manage and address frontend-specific concerns more efficiently.

Using the Latest Frontend

The new frontend is now the default for ComfyUI. However, please note:

  1. The frontend in the main ComfyUI repository is updated fortnightly.
  2. Daily releases are available in the separate frontend repository.

To use the most up-to-date frontend version:

  1. For the latest daily release, launch ComfyUI with this command line argument:

    --front-end-version Comfy-Org/ComfyUI_frontend@latest
    
  2. For a specific version, replace latest with the desired version number:

    --front-end-version Comfy-Org/ComfyUI_frontend@1.2.2
    

This approach allows you to easily switch between the stable fortnightly release and the cutting-edge daily updates, or even specific versions for testing purposes.

Which GPU should I buy for this?

See this page for some recommendations