Nodes/ComfyUI_Parametric_Studio/Attention Maps per word
ComfyUI Node

Attention Maps per word

One heatmap per prompt word: where in the picture that word was attended to, averaged over heads, layers and steps. Outputs a sheet of the picture with one overlay per word, the maps as a MASK batch in word order (each stretched between its own floor and peak), and the data as JSON.

By parametricparadigm·Created 6 days ago·Updated a day ago· 1
Attention Maps per word
  • attention
  • clip
  • image
  • sheet
  • maps
  • json
◄texta red hat on a wooden table►
◄skip_punctuationtrue►
CategoryParametric/Sampling

Inputs (5)

NameTypeDefaultDescription
attentionPSN_ATTENTIONAttention.
clipCLIPThe text encoder.
textSTRINGa red hat on a wooden tableThe input text. Default a red hat on a wooden table.
imageIMAGEThe input image.
skip_punctuationBOOLEANtrueSkip punctuation. Default True.

Outputs (3)

NameTypeDescription
sheetIMAGE—
mapsMASK—
jsonSTRING—