ComfyUI Node
π LDM BERT Text Encode
Encodes a text prompt into a conditioning tensor for the UNet. Uses the BERT-base-uncased tokenizer (77 tokens max). The encoder is a 64-layer transformer with 1280-dim hidden states and 8 attention heads. Prompting tips for this model: β’ Keep prompts short and concrete (BERT has limited compositional understanding). β’ Lowercase is fine β the tokenizer is uncased. β’ Avoid complex syntax, negations, or long narratives. β’ Single-subject descriptions work best: 'a red car', 'mountain landscape'. β’ This model was trained without classifier-free guidance β there is no negative prompt.
π LDM BERT Text Encode
- bert
- CONDITIONING
βtextβΊ
CategoryLDM
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| bert | LDM_BERT | BERT output from the Load LDM Checkpoint node. | |
| text | STRING | Text prompt. BERT tokenizer, 77 tokens max. Keep it short and descriptive. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| CONDITIONING | LDM_CONDITIONING | β |