Nodes/ComfyUI-NS-Util/NS Cross-Attention Map Recycler
ComfyUI Node

NS Cross-Attention Map Recycler

A ComfyUI node in NS/Attention with 8 inputs and 1 output.

By NakamuraShippo·Created about a year ago·Updated 3 months ago· 5
NS Cross-Attention Map Recycler
  • model
  • MODEL
collection_end0.30
injection_start0.30
injection_strength0.30
decay0.50
target_layers
collection_momentum0.70
reset_cacheenable
CategoryNS/Attention

Inputs (8)

NameTypeDefaultDescription
modelMODEL
collection_endFLOAT0.300.05–0.5
injection_startFLOAT0.300.1–0.8
injection_strengthFLOAT0.300–1
decayFLOAT0.500–1
target_layersCOMBO4 options: all, mid_only, up_only, down_and_mid
collection_momentumFLOAT0.700–1EMA momentum for collected attention maps. Higher = more weight on earlier maps
reset_cacheCOMBOenableEnable: clear cached attention maps every generation (more diversity). Disable: reuse maps across generations (more consistency)

Outputs (1)

NameTypeDescription
MODELMODEL