ComfyUI Node: AttentionMask

Authored by leeguandong

Created

Updated

4 stars

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

Category

sd

Inputs

pipe MODEL_PIPE
positive_prompt STRING
negative_prompt STRING
max_length INT

Outputs

ATTENTION_MASK

PROMPT_BATCH

Extension: ComfyUI nodes to use AttentionMask

The attention mask in the T5 part of flux and SD3 utilizes the text-side attention mask to make the model focus more on text embeddings during image generation, thereby enhancing semantic alignment with the text.

Authored by leeguandong

Looking for a different node?

More nodes in ComfyUI nodes to use AttentionMask

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

Learn more