Sign In

ComfyUI 新手入门

1

ComfyUI 新手入门

A Simple Introduction to ComfyUI for Beginners

ComfyUI 新手入门:认识节点式 AI 绘图

English Version

Introduction

If you have spent some time exploring Stable Diffusion, you have probably heard about ComfyUI.

Unlike traditional interfaces that organize most settings into panels and menus, ComfyUI uses a node-based workflow.

At first, the interface might look a little intimidating, but once you understand the basic nodes, things become much easier.

1. What Is ComfyUI?

ComfyUI is a node-based interface for working with generative AI models.

Instead of simply selecting a few options and pressing a Generate button, users connect different nodes to create a complete workflow.

Each node has a specific function, and the connections between nodes determine how information moves through the workflow.

This approach offers considerable flexibility.

2. Understanding the Basic Nodes

Here are a few important components commonly found in a Stable Diffusion workflow.

Checkpoint Loader

Loads the main image generation model.

CLIP Text Encode

Converts text prompts into conditioning information that can guide image generation.

Empty Latent Image

Creates an empty latent image with a specified width and height.

KSampler

Performs the sampling process used to generate the image.

VAE Decode

Converts latent information into a viewable image.

Save Image

Saves the generated result to your computer.

These components form a basic generation pipeline.

3. How Nodes Work Together

A typical workflow can be understood as a series of connected steps:

  1. Load a checkpoint.

  2. Enter positive and negative prompts.

  3. Set the image dimensions.

  4. Configure the sampler.

  5. Generate the latent image.

  6. Decode and save the result.

The important thing is that each node receives information from other nodes.

If a required connection is missing, the workflow may not execute correctly.

4. Why Use ComfyUI?

The biggest advantage of ComfyUI is flexibility.

You can build simple image generation workflows, add LoRA models, use ControlNet, connect upscalers, and experiment with more advanced pipelines.

You can also save and share workflows, making it easier for other users to reproduce your setup.

However, beginners don't need to learn every node immediately.

Start with a basic workflow and gradually explore additional features.

Conclusion

ComfyUI may look complicated at first, but its node-based design becomes much easier to understand with practice.

Learn a few basic nodes, understand how they connect, and start experimenting.

You don't need to master everything on your first day.

Happy generating!


中文版本

前言

如果你已经接触过一段时间的 Stable Diffusion,那么应该听说过 ComfyUI。

与传统的绘图界面不同,ComfyUI 使用节点式工作流。

刚打开软件时,密密麻麻的节点可能会让人有些头疼,但只要理解几个基础节点,事情就会简单很多。

1. 什么是 ComfyUI?

ComfyUI 是一个基于节点的生成式 AI 工作界面。

它与简单地选择几个参数,然后点击生成按钮的方式不同。

用户需要连接不同的节点,组成一套完整的工作流。

每个节点都有自己的功能,而节点之间的连线决定了信息如何在工作流中传递。

这种方式提供了很高的灵活性。

2. 认识几个基础节点

下面介绍一些 Stable Diffusion 工作流中比较常见的组件。

Checkpoint Loader

用于加载主要的图像生成模型。

CLIP Text Encode

将文本提示词转换成能够引导图像生成的条件信息。

Empty Latent Image

创建指定宽度和高度的空 Latent 图像。

KSampler

执行用于生成图像的采样过程。

VAE Decode

将 Latent 信息解码成可以查看的图像。

Save Image

将生成结果保存到电脑中。

这些组件组成了一条基础的图像生成流程。

3. 节点是如何协同工作的?

一套典型的工作流可以简单理解为以下步骤:

  1. 加载 Checkpoint。

  2. 输入正面和负面提示词。

  3. 设置图片尺寸。

  4. 配置采样器。

  5. 生成 Latent 图像。

  6. 解码并保存结果。

关键在于,每个节点都需要接收来自其他节点的信息。

如果缺少必要的连接,工作流就可能无法正常执行。

4. 为什么选择 ComfyUI?

ComfyUI 最大的优势就是灵活性。

你可以建立简单的图片生成工作流,也可以添加 LoRA、ControlNet、超分辨率节点,甚至尝试更加复杂的生成流程。

另外,ComfyUI 还支持保存和分享工作流,方便其他用户复现你的配置。

不过,新手不需要一开始就学习所有节点。

先从基础工作流开始,再逐渐探索更多功能就可以了。

总结

ComfyUI 刚开始看起来可能比较复杂,但随着使用次数增加,节点式设计会变得越来越容易理解。

先认识几个基础节点,理解它们之间的连接方式,然后开始尝试。

你不需要在第一天就掌握所有东西。

祝大家绘图愉快!

1

Comments