From 1f14e27f500408682ca887d1548b58d11f2f9fd4 Mon Sep 17 00:00:00 2001 From: JettHu Date: Fri, 19 Apr 2024 15:21:19 +0800 Subject: [PATCH] docs: documenting nodes --- NODES.md | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 16 +++----------- 2 files changed, 69 insertions(+), 13 deletions(-) create mode 100644 NODES.md diff --git a/NODES.md b/NODES.md new file mode 100644 index 0000000..15bf6b4 --- /dev/null +++ b/NODES.md @@ -0,0 +1,66 @@ +# Nodes reference + +## Loaders + +### Load ELLA Model + +#### Configuration parameters +- **name**: (STRING), ELLA model to load. + +#### Outputs +- **ella**: (ELLA), ELLA model. + +### Load T5 TextEncoder #ELLA + +#### Configuration parameters +- **name**: (STRING), T5 text encoder model to load. +- **max_length**: (INT), max_length of encoder, set `0` for [flexible token length](https://github.com/TencentQQGYLab/ELLA?tab=readme-ov-file#2-flexible-token-length). +- **dtype**: (BOOLEAN) + +#### Outputs +- **t5_encoder**: (T5_TEXT_ENCODER) + +## Main Apply Nodes + +### Apply ELLA + +#### Inputs +- **model**: (MODEL), loaded by `Load Checkpoint` and other model loaders. +- **ella**: (ELLA), ELLA model loaded by `Load ELLA Model` node. +- **positive**: (ELLA_EMBEDS), currently needing both +- **negative**: (ELLA_EMBEDS), currently needing both + +#### Outputs +- **model**: (MODEL), sd model with ELLA model injected. +- **positive**: (CONDITIONING), for `KSamplers` +- **negative**: (CONDITIONING), for `KSamplers` + +### T5 Text Encode #ELLA + +#### Inputs +- **text**: (STRING), prompt to encode. +- **text_encoder**: (T5_TEXT_ENCODER) + +#### Outputs +- **ella_embeds**: (ELLA_EMBEDS) + +### Helpers + +### ELLA Combine Embeds + +#### Inputs +- **embeds**: (ELLA_EMBEDS) +- **embeds_add**: (ELLA_EMBEDS) + +#### Outputs +- **embeds**: (ELLA_EMBEDS) + +### Convert Condition to ELLA Embeds + +use for convert clip `CONDITIONING` to `ELLA_EMBEDS` + +#### Inputs +- **cond**: (CONDITIONING) + +#### Outputs +- **embeds**: (ELLA_EMBEDS) diff --git a/README.md b/README.md index 479fe73..a01855f 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ ## :star2: Changelog +- **[2024.4.19]** Documenting nodes - **[2024.4.19]** Initial repo ## :books: Example workflows @@ -68,20 +69,9 @@ ComfyUI/models/ella_encoder/ ``` -## :book: Usage (:construction: Work in progress) - -#### Load ELLA Model - -#### Apply ELLA - -#### Load T5 TextEncoder #ELLA - -#### T5 Text Encode #ELLA - -#### ELLA Combine Embeds - -#### Convert Condition to ELLA Embeds +## :book: Nodes reference +[Nodes reference](./NODES.md) ## :memo: TODO