Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added images/concepts/workflow/workflow.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions installation/install_custom_node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ Tip: Before installing custom nodes, check the plugin's README file to understan
![Click Install button for the node](/images/installation/custom_nodes/install-custom-nodes-by-manager-5.jpg)
Find the node you want to install and click the `Install` button
![Click Install button for the node](/images/installation/custom_nodes/install-custom-nodes-by-manager-6.jpg)
- 在这一步,如果你选择 `nightly` 版本,这会从 Github 直接下载对应的插件源码最新版本,但同时如果你的 Manager `security_level` 为 `normal` 将不允许你直接从 Github 下载源码,因为对应代码没有经过扫描
- 如果你选择了其它版本如 `latest` 或者带有数字的稳定版本,对应的代码将会从 https://registry.comfy.org/ 进行下载,这意味着对应的代码经过审查,不会触发安全检查
A version selection window will pop up:
- `nightly` version: Downloads the latest source code directly from Github. However, when `security_level` is set to `normal`, you'll get a warning that the current security settings don't allow downloading this plugin
- `latest` or numbered stable versions (recommended): Downloads reviewed code from https://registry.comfy.org/ that won't trigger security checks

<Tip>
`nightly` 版本通常是最新的版本,但因为它直接从 github 下载没有经过审查的版本,存在一定的代码风险,如果你一定需要安装`nightly`版本,请将 Manager 的 `security_level` 设置为 `weak`
对应配置文件路径为 `ComfyUI/user/default/ComfyUI-Manager/config.ini`,但请注意这并不是我们推荐的配置,请只临时使用这个配置
The `nightly` version is usually the latest version, but since it downloads unreviewed code directly from Github, there are certain security risks. If you must install the `nightly` version, set Manager's `security_level` to `weak`
The config file path is `ComfyUI/user/default/ComfyUI-Manager/config.ini`, but note this is not our recommended configuration and should only be used temporarily
</Tip>
</Step>
<Step title="Wait for dependencies to install and restart ComfyUI">
Expand Down
45 changes: 22 additions & 23 deletions zh-CN/development/core-concepts/workflow.mdx
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
---
title: "工作流"
description: "了解 ComfyUI 中工作流及相关概念"
icon: "diagram-project"
---

{/*
description: "了解 ComfyUI 中工作流的概念。"
*/}
## 什么是 ComfyUI 的工作流?

在 ComfyUI 中,工作流是负责不同功能的节点相互连接起来的一个节点图,就像搭积木一样,不同功能相互组合,从而实现一个完整的输入到输出的一个完全由用户自定义的程序,而 ComfyUI 你可以把它理解成提供可视化编辑和运行这些工作流的程序。

## 节点图
在下面的图中就是在完成 ComfyUI 安装后默认的工作流示例
![工作流示例](/images/concepts/workflow/workflow.webp)

ComfyUI 是一个用于构建和运行生成内容的 **_工作流_** 的环境。在这个上下文中,工作流被定义为一组称为 **_节点_** 的程序对象,它们相互连接,形成一个网络。这个网络也被称为 **_图_**。

ComfyUI 工作流可以生成任何类型的媒体:图像、视频、音频、AI 模型、AI 代理等。


## 示例工作流

要开始,请尝试一些 [官方工作流](https://comfyanonymous.github.io/ComfyUI_examples)。这些工作流仅使用 ComfyUI 安装中包含的核心节点。一个蓬勃发展的开发者社区创建了丰富的 [生态系统](https://registry.comfy.org) 的自定义节点,以扩展 ComfyUI 的功能。

### 简单示例
![简单工作流](/images/simple_workflow.jpeg)
它包含了几个不同类型的节点:
1. 模型加载节点:用于加载你设备上的模型文件用于驱动生成
2. 文本提示词节点:用于输入文本提示词,实现从文本到内容资产的生成过程
3. 空白潜空间图像:用于指定图像生成尺寸
4. 采样器:根据各个输入条件在潜空间对图像进行采样生成
5. VAE解码器:将潜空间图像解码为像素空间图像
6. 图像保存节点:用于保存生成的图像

类似诸如此类不同功能的节点组合实现了以一个个从简单到复杂的工作流,他们类似一个个不同的小程序

## 可视化编程

Expand All @@ -32,16 +30,17 @@ ComfyUI 工作流可以生成任何类型的媒体:图像、视频、音频、
### 更复杂的示例
![复杂工作流](/images/complex_workflow.jpeg)

## 如何保存工作流

## 过程框架

另一个用于描述基于节点的应用程序的术语是 **_过程框架_**。过程意味着生成:某种过程或算法被用来生成内容,例如 3D 模型或音乐作品。

ComfyUI 是所有这些东西:一个节点图、一个可视化编程环境和一个过程框架。使 ComfyUI 不同(并且令人惊叹!)的是,它的开放结构允许我们生成任何类型的媒体资产,例如图片、电影、声音、3D 模型、AI 模型等。
### 通过 ComfyUI 生产的资产复现工作流

ComfyUI 的上下文中,**_工作流_** 这个术语是节点网络或图的同义词。它对应于 3D 或多媒体程序中的 **_场景图_**:特定磁盘文件中所有节点的网络。3D 程序称之为 **_场景文件_**。视频编辑、合成和多媒体程序通常称之为 **_项目文件_**
大多通过 ComfyUI 生成的资产,程序都会自动在文件的 **元数据(metadata)** 中保存 JSON 工作流信息,这意味着,当你没有损失地保存了对应的资产,之后想要重现对应的工作流只需要将他们拖入 ComfyUI 程序即可从文件中读取到这些工作流数据

### 通过 JSON 格式文件

## 保存工作流
我们同样也支持以 JSON 格式来保存工作流文件,你可以通过顶部菜单 “工作流” 下的几个子菜单来保存你的工作流文件:
1. **保存**: 将工作流保存至 `ComfyUI/user/default/workflow` 文件夹下
2. **保存为**: 另存一份工作流文件,重新命名,并保存到 `ComfyUI/user/default/workflow` 文件夹下
3. **导出**: 将工作流导出为 JSON 格式文件

ComfyUI 工作流会自动保存在任何生成图像的元数据中,允许用户打开并使用生成图像的图形。工作流也可以存储在遵循 JSON 数据格式的人类可读文本文件中。这对于不支持元数据的媒体格式是必要的。以 JSON 文件格式存储的 ComfyUI 工作流非常小,便于版本控制、归档和共享图形,而不依赖于任何生成的媒体。
保存在用户目录文件夹下的工作流文件,可在 ComfyUI 侧边工作流面板中加载
Loading