Skip to content

Commit 2f19f10

Browse files
authored
Merge c9d1a22 into b478cf7
2 parents b478cf7 + c9d1a22 commit 2f19f10

File tree

10 files changed

+243
-53
lines changed

10 files changed

+243
-53
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Markdown Lint and Fix
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
paths:
7+
- "comfyui_embedded_docs/docs/**/*.md"
8+
9+
jobs:
10+
markdown-lint:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
with:
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
fetch-depth: 0
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: "18"
27+
28+
- name: Install markdownlint-cli
29+
run: npm install -g markdownlint-cli
30+
31+
- name: Run markdown linting and fix
32+
run: |
33+
# Find all markdown files and fix linting issues
34+
find comfyui_embedded_docs/docs -name "*.md" -type f | while read file; do
35+
echo "Fixing linting issues for: $file"
36+
markdownlint --fix "$file" || true
37+
done
38+
39+
- name: Check for changes
40+
id: verify-changed-files
41+
run: |
42+
if [ -n "$(git status --porcelain)" ]; then
43+
echo "changed=true" >> $GITHUB_OUTPUT
44+
echo "Files have been modified by markdownlint"
45+
else
46+
echo "changed=false" >> $GITHUB_OUTPUT
47+
echo "No changes made by markdownlint"
48+
fi
49+
50+
- name: Commit changes
51+
if: steps.verify-changed-files.outputs.changed == 'true'
52+
run: |
53+
git config --local user.email "[email protected]"
54+
git config --local user.name "GitHub Action"
55+
git add comfyui_embedded_docs/docs/**/*.md
56+
git commit -m "Auto-fix markdown linting issues
57+
58+
🤖 Generated with GitHub Actions
59+
60+
Co-Authored-By: GitHub Action <[email protected]>" || exit 0
61+
62+
- name: Push changes
63+
if: steps.verify-changed-files.outputs.changed == 'true'
64+
uses: ad-m/github-push-action@master
65+
with:
66+
github_token: ${{ secrets.GITHUB_TOKEN }}
67+
branch: ${{ github.head_ref }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
dist
33
*.egg-info
44
*.DS_Store
5-
.ref/
5+
.ref/
6+
.cursorrules
122 KB
Loading
Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1-
The ConditioningAverage node is designed to blend two sets of conditioning data, applying a weighted average based on a specified strength. This process allows for the dynamic adjustment of conditioning influence, facilitating the fine-tuning of generated content or features.
1+
The `ConditioningAverage` node is used to blend two different sets of conditioning (such as text prompts) according to a specified weight, generating a new conditioning vector that lies between the two. By adjusting the weight parameter, you can flexibly control the influence of each conditioning on the final result. This is especially suitable for prompt interpolation, style fusion, and other advanced use cases.
2+
3+
As shown below, by adjusting the strength of `conditioning_to`, you can output a result between the two conditionings.
4+
5+
![example](./asset/example.webp)
26

37
## Inputs
48

5-
| Parameter | Comfy dtype | Description |
6-
|----------------------|--------------------|-------------|
7-
| `conditioning_to` | `CONDITIONING` | Represents the primary set of conditioning data to which the blending will be applied. It serves as the base for the weighted average operation. |
8-
| `conditioning_from` | `CONDITIONING` | Denotes the secondary set of conditioning data that will be blended into the primary set. This data influences the final output based on the specified strength. |
9-
| `conditioning_to_strength` | `FLOAT` | A scalar value that determines the strength of the blend between the primary and secondary conditioning data. It directly influences the balance of the weighted average. |
9+
| Parameter | Comfy dtype | Description |
10+
|------------------------|---------------|-------------|
11+
| `conditioning_to` | `CONDITIONING`| The target conditioning vector, serving as the main base for the weighted average. |
12+
| `conditioning_from` | `CONDITIONING`| The source conditioning vector, which will be blended into the target according to a certain weight. |
13+
| `conditioning_to_strength` | `FLOAT` | The strength of the target conditioning, range 0.0-1.0, default 1.0, step 0.01. |
1014

1115
## Outputs
1216

13-
| Parameter | Comfy dtype | Description |
14-
|----------------------|--------------------|-------------|
15-
| `conditioning` | `CONDITIONING` | The result of blending the primary and secondary conditioning data, producing a new set of conditioning that reflects the weighted average. |
17+
| Parameter | Comfy dtype | Description |
18+
|------------------|---------------|-------------|
19+
| `conditioning` | `CONDITIONING`| The resulting conditioning vector after blending, reflecting the weighted average. |
20+
21+
## Typical Use Cases
22+
23+
- **Prompt Interpolation:** Smoothly transition between two different text prompts, generating content with intermediate style or semantics.
24+
- **Style Fusion:** Combine different artistic styles or semantic conditions to create novel effects.
25+
- **Strength Adjustment:** Precisely control the influence of a particular conditioning on the result by adjusting the weight.
26+
- **Creative Exploration:** Explore diverse generative effects by mixing different prompts.
Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
1-
El nodo ConditioningAverage está diseñado para mezclar dos conjuntos de datos de condicionamiento, aplicando un promedio ponderado basado en una fuerza especificada. Este proceso permite el ajuste dinámico de la influencia del condicionamiento, facilitando el ajuste fino del contenido o características generadas.
1+
El nodo `Promedio de Acondicionamiento` se utiliza para mezclar dos conjuntos diferentes de condiciones (como prompts de texto) según un peso especificado, generando una nueva condición que se sitúa entre ambas. Ajustando el parámetro de peso, puedes controlar de forma flexible la influencia de cada condición en el resultado final. Es especialmente útil para la interpolación de prompts, fusión de estilos y otros casos avanzados.
2+
3+
Como se muestra en la imagen, al ajustar la fuerza de `acondicionamiento_a`, puedes obtener un resultado intermedio entre las dos condiciones.
4+
5+
![example](./asset/example.webp)
6+
7+
**Explicación del ejemplo**
8+
`conditioning_to``acondicionamiento_a`
9+
`conditioning_from``acondicionamiento_de`
10+
`conditioning_to_strength``fuerza_de_acondicionamiento_a`
211

312
## Entradas
413

5-
| Parámetro | Comfy dtype | Descripción |
6-
|----------------------|--------------------|-------------|
7-
| `conditioning_to` | `CONDITIONING` | Representa el conjunto principal de datos de condicionamiento al que se aplicará la mezcla. Sirve como base para la operación de promedio ponderado. |
8-
| `conditioning_from` | `CONDITIONING` | Denota el conjunto secundario de datos de condicionamiento que se mezclará en el conjunto principal. Estos datos influyen en el resultado final basado en la fuerza especificada. |
9-
| `conditioning_to_strength` | `FLOAT` | Un valor escalar que determina la fuerza de la mezcla entre los datos de condicionamiento primarios y secundarios. Influye directamente en el equilibrio del promedio ponderado. |
14+
| Nombre del parámetro | Tipo de dato | Descripción |
15+
|----------------------------------|------------------|-------------|
16+
| `acondicionamiento_a` | CONDITIONING | Vector de condición objetivo, sirve como base principal para el promedio ponderado. |
17+
| `acondicionamiento_de` | CONDITIONING | Vector de condición fuente, que se mezclará con el objetivo según el peso especificado. |
18+
| `fuerza_de_acondicionamiento_a` | FLOAT | Peso de la condición objetivo, rango 0.0-1.0, por defecto 1.0, paso 0.01. |
1019

1120
## Salidas
1221

13-
| Parámetro | Comfy dtype | Descripción |
14-
|----------------------|--------------------|-------------|
15-
| `conditioning` | `CONDITIONING` | El resultado de mezclar los datos de condicionamiento primarios y secundarios, produciendo un nuevo conjunto de condicionamiento que refleja el promedio ponderado. |
22+
| Nombre del parámetro | Tipo de dato | Descripción |
23+
|-----------------------|------------------|-------------|
24+
| `acondicionamiento` | CONDITIONING | Devuelve el vector de condición mezclado, reflejando el resultado del promedio ponderado. |
25+
26+
## Casos de uso típicos
27+
28+
- **Interpolación de prompts**: Transición suave entre dos prompts de texto diferentes, generando contenido de estilo o significado intermedio.
29+
- **Fusión de estilos**: Combina diferentes estilos artísticos o condiciones semánticas para crear nuevos efectos.
30+
- **Ajuste de fuerza**: Control preciso de la influencia de una condición en el resultado ajustando el peso.
31+
- **Exploración creativa**: Explora efectos generativos diversos mezclando diferentes prompts.
Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
1-
Le nœud ConditioningAverage est conçu pour mélanger deux ensembles de données de conditionnement en appliquant une moyenne pondérée basée sur une force spécifiée. Ce processus permet un ajustement dynamique de l'influence du conditionnement, facilitant le réglage fin du contenu ou des caractéristiques générés.
1+
Le nœud `Moyenne de Conditionnement` est utilisé pour mélanger deux ensembles différents de conditionnements (comme des invites textuelles) selon un poids spécifié, générant un nouveau conditionnement situé entre les deux. En ajustant le paramètre de poids, vous pouvez contrôler de manière flexible l'influence de chaque conditionnement sur le résultat final. Il est particulièrement utile pour l'interpolation d'invites, la fusion de styles et d'autres cas avancés.
2+
3+
Comme illustré ci-dessous, en ajustant la force de `conditionnement_à`, vous pouvez obtenir un résultat intermédiaire entre les deux conditionnements.
4+
5+
![example](./asset/example.webp)
6+
7+
**Explication de l'exemple**
8+
`conditioning_to``conditionnement_à`
9+
`conditioning_from``conditionnement_de`
10+
`conditioning_to_strength``force_conditionnement_à`
211

312
## Entrées
413

5-
| Paramètre | Comfy dtype | Description |
6-
|----------------------|--------------------|-------------|
7-
| `conditioning_to` | `CONDITIONING` | Représente l'ensemble principal de données de conditionnement auquel le mélange sera appliqué. Il sert de base pour l'opération de moyenne pondérée. |
8-
| `conditioning_from` | `CONDITIONING` | Désigne l'ensemble secondaire de données de conditionnement qui sera mélangé à l'ensemble principal. Ces données influencent le résultat final en fonction de la force spécifiée. |
9-
| `conditioning_to_strength` | `FLOAT` | Une valeur scalaire qui détermine la force du mélange entre les données de conditionnement principales et secondaires. Elle influence directement l'équilibre de la moyenne pondérée. |
14+
| Nom du paramètre | Type de donnée | Description |
15+
|-------------------------|---------------------|-------------|
16+
| `conditionnement_à` | CONDITIONNEMENT | Vecteur de conditionnement cible, servant de base principale pour la moyenne pondérée. |
17+
| `conditionnement_de` | CONDITIONNEMENT | Vecteur de conditionnement source, qui sera mélangé au vecteur cible selon le poids spécifié. |
18+
| `force_conditionnement_à` | FLOAT | Poids du conditionnement cible, plage 0.0-1.0, par défaut 1.0, pas 0.01. |
1019

1120
## Sorties
1221

13-
| Paramètre | Comfy dtype | Description |
14-
|----------------------|--------------------|-------------|
15-
| `conditioning` | `CONDITIONING` | Le résultat du mélange des données de conditionnement principales et secondaires, produisant un nouvel ensemble de conditionnement qui reflète la moyenne pondérée. |
22+
| Nom du paramètre | Type de donnée | Description |
23+
|-------------------------|---------------------|-------------|
24+
| `conditionnement` | CONDITIONNEMENT | Retourne le vecteur de conditionnement mélangé, reflétant le résultat de la moyenne pondérée. |
25+
26+
## Cas d'utilisation typiques
27+
28+
- **Interpolation d'invites** : Transition fluide entre deux invites textuelles différentes, générant un contenu de style ou de sens intermédiaire.
29+
- **Fusion de styles** : Combine différents styles artistiques ou conditions sémantiques pour créer de nouveaux effets.
30+
- **Ajustement de la force** : Contrôle précis de l'influence d'un conditionnement sur le résultat en ajustant le poids.
31+
- **Exploration créative** : Explorez divers effets génératifs en mélangeant différentes invites.
Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
1-
ConditioningAverageノードは、2つのコンディショニングデータセットをブレンドし、指定された強度に基づいて加重平均を適用するように設計されています。このプロセスにより、コンディショニングの影響を動的に調整し、生成されたコンテンツや特徴の微調整を可能にします。
1+
`条件付け平均`ノードは、2つの異なる条件(例:テキストプロンプト)を指定した重みで加重平均し、その中間となる新しい条件を生成します。重みパラメータを調整することで、各条件が最終結果に与える影響を柔軟にコントロールできます。プロンプト補間やスタイル融合などの高度な用途に最適です。
2+
3+
下図のように、`条件付け先`の強度を調整することで、2つの条件の中間的な結果を出力できます。
4+
5+
![example](./asset/example.webp)
6+
7+
**例の説明**
8+
`conditioning_to``条件付け先`
9+
`conditioning_from``条件付け元`
10+
`conditioning_to_strength``条件付け先の強度`
211

312
## 入力
413

5-
| パラメータ | Comfy dtype | 説明 |
6-
|----------------------|--------------------|-------------|
7-
| `conditioning_to` | `CONDITIONING` | ブレンドが適用される主要なコンディショニングデータセットを表します。これは加重平均操作の基礎として機能します|
8-
| `conditioning_from` | `CONDITIONING` | 主要なデータセットにブレンドされる二次的なコンディショニングデータセットを示します。このデータは、指定された強度に基づいて最終出力に影響を与えます|
9-
| `conditioning_to_strength` | `FLOAT` | 主要および二次的なコンディショニングデータ間のブレンドの強度を決定するスカラー値です。加重平均のバランスに直接影響を与えます。 |
14+
| パラメータ | データ型 | 説明 |
15+
|----------------------|------------------|------|
16+
| `条件付け先` | CONDITIONING | 加重平均の主な基準となるターゲット条件ベクトル|
17+
| `条件付け元` | CONDITIONING | 指定した重みでターゲットに混合されるソース条件ベクトル|
18+
| `条件付け先の強度` | FLOAT | ターゲット条件の重み。範囲0.0-1.0、デフォルト1.0、ステップ0.01。|
1019

1120
## 出力
1221

13-
| パラメータ | Comfy dtype | 説明 |
14-
|----------------------|--------------------|-------------|
15-
| `conditioning` | `CONDITIONING` | 主要および二次的なコンディショニングデータをブレンドした結果で、加重平均を反映した新しいコンディショニングセットを生成します。 |
22+
| パラメータ | データ型 | 説明 |
23+
|----------------------|------------------|------|
24+
| `条件付け` | CONDITIONING | 加重平均された条件ベクトルを返します。 |
25+
26+
## 典型的な利用シーン
27+
28+
- **プロンプト補間**:2つの異なるテキストプロンプト間を滑らかに遷移し、中間的なスタイルや意味のコンテンツを生成。
29+
- **スタイル融合**:異なるアートスタイルや意味条件を組み合わせて新しい効果を創出。
30+
- **強度調整**:重みを調整することで、特定の条件が結果に与える影響を正確にコントロール。
31+
- **クリエイティブな探索**:さまざまなプロンプトの組み合わせによる多様な生成効果を探求。
Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
1-
ConditioningAverage 노드는 두 세트의 조건 데이터를 혼합하여 지정된 강도에 따라 가중 평균을 적용하도록 설계되었습니다. 이 과정은 조건 영향의 동적 조정을 가능하게 하여 생성된 콘텐츠나 기능의 미세 조정을 촉진합니다.
1+
`조건 (평균)` 노드는 두 가지 서로 다른 조건(예: 텍스트 프롬프트)을 지정한 가중치로 평균하여, 두 조건 사이의 새로운 조건을 생성합니다. 가중치 파라미터를 조절하면 각 조건이 결과에 미치는 영향을 유연하게 제어할 수 있습니다. 프롬프트 보간, 스타일 융합 등 고급 활용에 적합합니다.
2+
3+
아래 그림처럼 `대상 조건 강도`를 조절하면 두 조건 사이의 중간 결과를 얻을 수 있습니다.
4+
5+
![example](./asset/example.webp)
6+
7+
**예시 설명**
8+
`conditioning_to``대상 조건`
9+
`conditioning_from``추가 조건`
10+
`conditioning_to_strength``대상 조건 강도`
211

312
## 입력
413

5-
| 매개변수 | Comfy dtype | 설명 |
6-
|----------------------|--------------------|-------------|
7-
| `conditioning_to` | `CONDITIONING` | 혼합이 적용될 주요 조건 데이터 세트를 나타냅니다. 이는 가중 평균 작업의 기반으로 작용합니다. |
8-
| `conditioning_from` | `CONDITIONING` | 주요 세트에 혼합될 보조 조건 데이터 세트를 나타냅니다. 이 데이터는 지정된 강도에 따라 최종 출력에 영향을 미칩니다. |
9-
| `conditioning_to_strength` | `FLOAT` | 주요 및 보조 조건 데이터 간의 혼합 강도를 결정하는 스칼라 값입니다. 이는 가중 평균의 균형에 직접적인 영향을 미칩니다. |
14+
| 매개변수 | 데이터 타입 | 설명 |
15+
|------------------|------------------|------|
16+
| `대상 조건` | CONDITIONING | 가중 평균의 기준이 되는 타겟 조건 벡터입니다. |
17+
| `추가 조건` | CONDITIONING | 지정한 가중치로 타겟에 혼합되는 소스 조건 벡터입니다. |
18+
| `대상 조건 강도` | FLOAT | 타겟 조건의 가중치. 범위 0.0-1.0, 기본값 1.0, 스텝 0.01. |
1019

1120
## 출력
1221

13-
| 매개변수 | Comfy dtype | 설명 |
14-
|----------------------|--------------------|-------------|
15-
| `conditioning` | `CONDITIONING` | 주요 및 보조 조건 데이터를 혼합한 결과로, 가중 평균을 반영하는 새로운 조건 세트를 생성합니다. |
22+
| 매개변수 | 데이터 타입 | 설명 |
23+
|------------------|------------------|------|
24+
| `조건` | CONDITIONING | 가중 평균된 조건 벡터를 반환합니다. |
25+
26+
## 대표 활용 예시
27+
28+
- **프롬프트 보간**: 두 개의 서로 다른 텍스트 프롬프트 사이를 부드럽게 전환하여 중간 스타일이나 의미의 결과를 생성
29+
- **스타일 융합**: 다양한 예술 스타일이나 의미 조건을 결합해 새로운 효과를 창출
30+
- **강도 조절**: 가중치를 조절해 특정 조건이 결과에 미치는 영향을 정밀하게 제어
31+
- **창의적 탐색**: 다양한 프롬프트 조합으로 다채로운 생성 효과를 실험

0 commit comments

Comments
 (0)