Skip to content

Commit bfdb1ca

Browse files
authored
Merge pull request #51 from Comfy-Org/conditioningcombine
Update ConditioningCombine
2 parents e94b184 + fb57133 commit bfdb1ca

File tree

8 files changed

+148
-36
lines changed

8 files changed

+148
-36
lines changed
877 KB
Loading
Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
1-
This node combines two conditioning inputs into a single output, effectively merging their information.
1+
This node combines two conditioning inputs into a single output, effectively merging their information. The two conditions are combined using list concatenation.
22

33
## Inputs
44

5-
| Parameter | Comfy dtype | Description |
5+
| Parameter Name | Data Type | Description |
66
|----------------------|--------------------|-------------|
7-
| `conditioning_1` | `CONDITIONING` | The first conditioning input to be combined. It plays an equal role with conditioning_2 in the combination process. |
8-
| `conditioning_2` | `CONDITIONING` | The second conditioning input to be combined. It is equally important as conditioning_1 in the merging process. |
7+
| `conditioning_1` | `CONDITIONING` | The first conditioning input to be combined. It has equal importance with `conditioning_2` in the combination process. |
8+
| `conditioning_2` | `CONDITIONING` | The second conditioning input to be combined. It has equal importance with `conditioning_1` in the combination process. |
99

1010
## Outputs
1111

12-
| Parameter | Comfy dtype | Description |
12+
| Parameter Name | Data Type | Description |
1313
|----------------------|--------------------|-------------|
14-
| `conditioning` | `CONDITIONING` | The result of combining conditioning_1 and conditioning_2, encapsulating the merged information. |
14+
| `conditioning` | `CONDITIONING` | The result of combining `conditioning_1` and `conditioning_2`, encapsulating the merged information. |
15+
16+
## Usage Scenarios
17+
18+
Compare the two groups below: the left side uses the ConditioningCombine node, while the right side shows normal output.
19+
20+
![Compare](./asset/compare.jpg)
21+
22+
In this example, the two conditions used in `Conditioning Combine` have equivalent importance. Therefore, you can use different text encodings for image style, subject features, etc., allowing the prompt features to be output more completely. The second prompt uses the combined complete prompt, but semantic understanding may encode completely different conditions.
23+
24+
Using this node, you can achieve:
25+
26+
- Basic text merging: Connect the outputs of two `CLIP Text Encode` nodes to the two input ports of `Conditioning Combine`
27+
- Complex prompt combination: Combine positive and negative prompts, or separately encode main descriptions and style descriptions before merging
28+
- Conditional chain combination: Multiple `Conditioning Combine` nodes can be used in series to achieve gradual combination of multiple conditions
Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
1-
Este nodo combina dos entradas de condicionamiento en una sola salida, fusionando efectivamente su información.
1+
Este nodo combina dos entradas de condicionamiento en una sola salida, fusionando efectivamente su información. Las dos condiciones se combinan mediante concatenación de listas.
22

33
## Entradas
44

5-
| Parámetro | Comfy dtype | Descripción |
5+
| Nombre del Parámetro | Tipo de Datos | Descripción |
66
|----------------------|--------------------|-------------|
7-
| `conditioning_1` | `CONDITIONING` | La primera entrada de condicionamiento a combinar. Juega un papel igual al de conditioning_2 en el proceso de combinación. |
8-
| `conditioning_2` | `CONDITIONING` | La segunda entrada de condicionamiento a combinar. Es igualmente importante que conditioning_1 en el proceso de fusión. |
7+
| `acondicionamiento_1` | `CONDITIONING` | La primera entrada de condicionamiento a combinar. Tiene igual importancia que `acondicionamiento_2` en el proceso de combinación. |
8+
| `acondicionamiento_2` | `CONDITIONING` | La segunda entrada de condicionamiento a combinar. Tiene igual importancia que `acondicionamiento_1` en el proceso de combinación. |
99

1010
## Salidas
1111

12-
| Parámetro | Comfy dtype | Descripción |
12+
| Nombre del Parámetro | Tipo de Datos | Descripción |
1313
|----------------------|--------------------|-------------|
14-
| `conditioning` | `CONDITIONING` | El resultado de combinar conditioning_1 y conditioning_2, encapsulando la información fusionada. |
14+
| `acondicionamiento` | `CONDITIONING` | El resultado de combinar `acondicionamiento_1` y `acondicionamiento_2`, encapsulando la información fusionada. |
15+
16+
## Escenarios de Uso
17+
18+
Compara los dos grupos a continuación: el lado izquierdo usa el nodo ConditioningCombine, mientras que el lado derecho muestra la salida normal.
19+
20+
![Compare](./asset/compare.jpg)
21+
22+
En este ejemplo, las dos condiciones utilizadas en `Acondicionamiento (Combinar)` tienen importancia equivalente. Por lo tanto, puedes usar diferentes codificaciones de texto para el estilo de imagen, características del sujeto, etc., permitiendo que las características del prompt se generen de manera más completa. El segundo prompt usa el prompt completo combinado, pero la comprensión semántica puede codificar condiciones completamente diferentes.
23+
24+
Usando este nodo, puedes lograr:
25+
26+
- Fusión básica de texto: Conecta las salidas de dos nodos de `Codificación de Texto CLIP` a los dos puertos de entrada de `Acondicionamiento (Combinar)`
27+
- Combinación compleja de prompts: Combina prompts positivos y negativos, o codifica por separado las descripciones principales y las descripciones de estilo antes de fusionarlas
28+
- Combinación en cadena condicional: Múltiples nodos de `Acondicionamiento (Combinar)` pueden usarse en serie para lograr la combinación gradual de múltiples condiciones
Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
1-
Ce nœud combine deux entrées de conditionnement en une seule sortie, fusionnant efficacement leurs informations.
1+
Ce nœud combine deux entrées de conditionnement en une seule sortie, fusionnant efficacement leurs informations. Les deux conditions sont combinées en utilisant la concaténation de listes.
22

33
## Entrées
44

5-
| Paramètre | Comfy dtype | Description |
5+
| Nom du Paramètre | Type de Données | Description |
66
|----------------------|--------------------|-------------|
7-
| `conditioning_1` | `CONDITIONING` | La première entrée de conditionnement à combiner. Elle joue un rôle égal avec `conditioning_2` dans le processus de combinaison. |
8-
| `conditioning_2` | `CONDITIONING` | La deuxième entrée de conditionnement à combiner. Elle est tout aussi importante que `conditioning_1` dans le processus de fusion. |
7+
| `conditionnement_1` | `CONDITIONING` | La première entrée de conditionnement à combiner. Elle a une importance égale avec `conditionnement_2` dans le processus de combinaison. |
8+
| `conditionnement_2` | `CONDITIONING` | La deuxième entrée de conditionnement à combiner. Elle a une importance égale avec `conditionnement_1` dans le processus de combinaison. |
99

1010
## Sorties
1111

12-
| Paramètre | Comfy dtype | Description |
12+
| Nom du Paramètre | Type de Données | Description |
1313
|----------------------|--------------------|-------------|
14-
| `conditioning` | `CONDITIONING` | Le résultat de la combinaison de `conditioning_1` et `conditioning_2`, encapsulant les informations fusionnées. |
14+
| `conditionnement` | `CONDITIONING` | Le résultat de la combinaison de `conditionnement_1` et `conditionnement_2`, encapsulant les informations fusionnées. |
15+
16+
## Scénarios d'Utilisation
17+
18+
Comparez les deux groupes ci-dessous : le côté gauche utilise le nœud ConditioningCombine, tandis que le côté droit montre la sortie normale.
19+
20+
![Compare](./asset/compare.jpg)
21+
22+
Dans cet exemple, les deux conditions utilisées dans `Conditionnement (Combiner)` ont une importance équivalente. Par conséquent, vous pouvez utiliser différents encodages de texte pour le style d'image, les caractéristiques du sujet, etc., permettant aux caractéristiques du prompt d'être sorties plus complètement. Le deuxième prompt utilise le prompt complet combiné, mais la compréhension sémantique peut encoder des conditions complètement différentes.
23+
24+
En utilisant ce nœud, vous pouvez réaliser :
25+
26+
- Fusion de texte basique : Connectez les sorties de deux nœuds `Encodage de Texte CLIP` aux deux ports d'entrée de `Conditionnement (Combiner)`
27+
- Combinaison complexe de prompts : Combinez des prompts positifs et négatifs, ou encodez séparément les descriptions principales et les descriptions de style avant de les fusionner
28+
- Combinaison conditionnelle en chaîne : Plusieurs nœuds `Conditionnement (Combiner)` peuvent être utilisés en série pour réaliser la combinaison progressive de plusieurs conditions
Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
1-
このノードは、2つのコンディショニング入力を1つの出力に結合し、その情報を効果的に統合します。
1+
このノードは、2つのコンディショニング入力を1つの出力に結合し、その情報を効果的に統合します。2つの条件はリストの連結を使用して結合されます。
22

33
## 入力
44

5-
| パラメータ | Comfy dtype | 説明 |
5+
| パラメータ名 | データ型 | 説明 |
66
|----------------------|--------------------|-------------|
7-
| `conditioning_1` | `CONDITIONING` | 結合される最初のコンディショニング入力です。`conditioning_2`と同等の役割を果たします|
8-
| `conditioning_2` | `CONDITIONING` | 結合される2番目のコンディショニング入力です。`conditioning_1`と同等に重要です|
7+
| `条件付け_1` | `CONDITIONING` | 結合される最初のコンディショニング入力です。結合プロセスにおいて`条件付け_2`と同等の重要性を持ちます|
8+
| `条件付け_2` | `CONDITIONING` | 結合される2番目のコンディショニング入力です。結合プロセスにおいて`条件付け_1`と同等の重要性を持ちます|
99

1010
## 出力
1111

12-
| パラメータ | Comfy dtype | 説明 |
12+
| パラメータ名 | データ型 | 説明 |
1313
|----------------------|--------------------|-------------|
14-
| `conditioning` | `CONDITIONING` | `conditioning_1``conditioning_2`を結合した結果で、統合された情報を含んでいます。 |
14+
| `条件付け` | `CONDITIONING` | `条件付け_1``条件付け_2`を結合した結果で、統合された情報を含んでいます。 |
15+
16+
## 使用シナリオ
17+
18+
以下の2つのグループを比較してください:左側はConditioningCombineノードを使用し、右側は通常の出力を示しています。
19+
20+
![Compare](./asset/compare.jpg)
21+
22+
この例では、`条件付け(組み合わせ)`で使用される2つの条件は同等の重要性を持っています。そのため、画像スタイル、主体の特徴などに異なるテキストエンコーディングを使用することで、プロンプトの特徴をより完全に出力することができます。2番目のプロンプトは結合された完全なプロンプトを使用しますが、意味理解は完全に異なる条件をエンコードする可能性があります。
23+
24+
このノードを使用することで、以下を実現できます:
25+
26+
- 基本的なテキスト結合:2つの`CLIPテキストエンコード`ノードの出力を`条件付け(組み合わせ)`の2つの入力ポートに接続する
27+
- 複雑なプロンプト組み合わせ:ポジティブプロンプトとネガティブプロンプトを結合したり、メインの説明とスタイルの説明を別々にエンコードしてから結合する
28+
- 条件チェーン結合:複数の`条件付け(組み合わせ)`ノードを直列に使用して、複数の条件の段階的な結合を実現する
Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
1-
이 노드는 두 개의 조건 입력을 하나의 출력으로 결합하여 정보를 효과적으로 병합합니다.
1+
이 노드는 두 개의 조건 입력을 하나의 출력으로 결합하여 정보를 효과적으로 병합합니다. 두 조건은 리스트 연결을 사용하여 결합됩니다.
22

33
## 입력
44

5-
| 매개변수 | Comfy dtype | 설명 |
5+
| 매개변수 이름 | 데이터 타입 | 설명 |
66
|----------------------|--------------------|-------------|
7-
| `conditioning_1` | `CONDITIONING` | 결합될 첫 번째 조건 입력입니다. 결합 과정에서 `conditioning_2`와 동등한 역할을 합니다. |
8-
| `conditioning_2` | `CONDITIONING` | 결합될 두 번째 조건 입력입니다. 병합 과정에서 `conditioning_1`동등하게 중요합니다. |
7+
| `조건 1` | `CONDITIONING` | 결합될 첫 번째 조건 입력입니다. 결합 과정에서 `조건 2`와 동등한 중요성을 가집니다. |
8+
| `조건 2` | `CONDITIONING` | 결합될 두 번째 조건 입력입니다. 결합 과정에서 `조건 1`동등한 중요성을 가집니다. |
99

1010
## 출력
1111

12-
| 매개변수 | Comfy dtype | 설명 |
12+
| 매개변수 이름 | 데이터 타입 | 설명 |
1313
|----------------------|--------------------|-------------|
14-
| `conditioning` | `CONDITIONING` | `conditioning_1``conditioning_2`를 결합한 결과로, 병합된 정보를 포함합니다. |
14+
| `조건` | `CONDITIONING` | `조건 1``조건 2`를 결합한 결과로, 병합된 정보를 포함합니다. |
15+
16+
## 사용 시나리오
17+
18+
아래 두 그룹을 비교해보세요: 왼쪽은 ConditioningCombine 노드를 사용하고, 오른쪽은 일반적인 출력을 보여줍니다.
19+
20+
![Compare](./asset/compare.jpg)
21+
22+
이 예시에서 `조건 (결합)`에서 사용된 두 조건은 동등한 중요성을 가집니다. 따라서 이미지 스타일, 주체 특징 등에 다른 텍스트 인코딩을 사용할 수 있어 프롬프트 특징이 더 완전하게 출력될 수 있습니다. 두 번째 프롬프트는 결합된 완전한 프롬프트를 사용하지만, 의미 이해는 완전히 다른 조건을 인코딩할 수 있습니다.
23+
24+
이 노드를 사용하여 다음을 구현할 수 있습니다:
25+
26+
- 기본 텍스트 병합: 두 개의 `CLIP 텍스트 인코드` 노드의 출력을 `조건 (결합)`의 두 입력 포트에 연결
27+
- 복잡한 프롬프트 조합: 긍정적 프롬프트와 부정적 프롬프트를 결합하거나, 주요 설명과 스타일 설명을 별도로 인코딩한 후 병합
28+
- 조건부 체인 결합: 여러 `조건 (결합)` 노드를 직렬로 사용하여 여러 조건의 점진적 결합 구현
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Этот узел объединяет два входа кондиционирования в один выход, эффективно объединяя их информацию. Два условия объединяются с использованием конкатенации списков.
2+
3+
## Входы
4+
5+
| Название Параметра | Тип Данных | Описание |
6+
|----------------------|--------------------|----------|
7+
| `условие_1` | `CONDITIONING` | Первый вход кондиционирования для объединения. Имеет равную важность с `условие_2` в процессе объединения. |
8+
| `условие_2` | `CONDITIONING` | Второй вход кондиционирования для объединения. Имеет равную важность с `условие_1` в процессе объединения. |
9+
10+
## Выходы
11+
12+
| Название Параметра | Тип Данных | Описание |
13+
|----------------------|--------------------|----------|
14+
| `кондиционирование` | `CONDITIONING` | Результат объединения `условие_1` и `условие_2`, инкапсулирующий объединенную информацию. |
15+
16+
## Сценарии Использования
17+
18+
Сравните две группы ниже: левая сторона использует узел ConditioningCombine, а правая сторона показывает обычный вывод.
19+
20+
![Compare](./asset/compare.jpg)
21+
22+
В этом примере два условия, используемые в `Кондиционирование (Объединение)`, имеют эквивалентную важность. Поэтому вы можете использовать различные текстовые кодировки для стиля изображения, характеристик объекта и т.д., позволяя характеристикам промпта выводиться более полно. Второй промпт использует объединенный полный промпт, но семантическое понимание может кодировать совершенно разные условия.
23+
24+
Используя этот узел, вы можете достичь:
25+
26+
- Базовое объединение текста: Подключите выходы двух узлов `Кодирование Текста CLIP` к двум входным портам `Кондиционирование (Объединение)`
27+
- Сложная комбинация промптов: Объедините положительные и отрицательные промпты, или отдельно закодируйте основные описания и описания стилей перед объединением
28+
- Цепочечное условное объединение: Несколько узлов `Кондиционирование (Объединение)` могут использоваться последовательно для достижения постепенного объединения нескольких условий
Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
1-
此节点将两个条件输入组合成单个输出,有效地合并它们的信息
1+
此节点将两个条件输入组合成单个输出,有效地合并它们的信息, 两个条件使用列表拼接相加
22

33
## 输入
44

5-
| 参数名称 | 数据类型 | 作用 |
6-
| --- | --- | --- |
7-
| `conditioning_1` | `CONDITIONING` | 要组合的第一个条件输入。在组合过程中与conditioning_2扮演同等重要角色|
8-
| `conditioning_2` | `CONDITIONING` | 要组合的第二个条件输入。在合并过程中与conditioning_1同等重要。 |
5+
| 参数名称 | 数据类型 | 作用 |
6+
| -------- | -------------- | ---------------------------------------------------------------- |
7+
| `条件_1` | `CONDITIONING` | 要组合的第一个条件输入。在组合过程中与 `条件_2` 同等重要|
8+
| `条件_2` | `CONDITIONING` | 要组合的第二个条件输入。在组合过程中与 `条件_1`同等重要。 |
99

1010
## 输出
1111

1212
| 参数名称 | 数据类型 | 作用 |
1313
| --- | --- | --- |
14-
| `CONDITIONING` | CONDITIONING | 组合conditioning_1和conditioning_2的结果,封装了合并后的信息。 |
14+
| `条件` | CONDITIONING | 组合`条件_1``条件_2`的结果,封装了合并后的信息。 |
15+
16+
## 使用场景
17+
18+
对比下面的两组对比,左边是使用了 ConditioningCombine 节点,而右侧则是正常输出
19+
20+
![Compare](./asset/compare.jpg)
21+
22+
在这个示例中,使用了 `条件合并` 的两个条件,他们之间的重要性是等效的,因而你可以将将画面风格、主体特征等采用不同的文本编码,从而使得提示词的特征能够更完整地输出, 而第二个提示词使用了组合后的完整提示词,但语义理解可能编码出了完全不同的条件
23+
24+
使用这个节点你可以实现:
25+
26+
- 基础文本合并:将两个 `CLIP文本编码` 节点的输出连接到 `条件合并` 的两个输入端口
27+
- 复杂提示组合:结合正面和负面提示,或者将主要描述与风格描述分开编码后再合并
28+
- 条件链式组合:多个 `条件合并` 节点可以串联使用,实现多个条件的逐步合并

0 commit comments

Comments
 (0)