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.

By WinlenskyΒ·Created a day agoΒ·Updated about 12 hours agoΒ· 1
πŸ“œ LDM BERT Text Encode
  • bert
  • CONDITIONING
β—„textβ–Ί
CategoryLDM

Inputs (2)

NameTypeDefaultDescription
bertLDM_BERTBERT output from the Load LDM Checkpoint node.
textSTRINGText prompt. BERT tokenizer, 77 tokens max. Keep it short and descriptive.

Outputs (1)

NameTypeDescription
CONDITIONINGLDM_CONDITIONINGβ€”