Nodes/ComfyUI-RAVE Attention/Attention Override (SD1.5)
ComfyUI Node

Attention Override (SD1.5)

RAVE's fine-tuning panel for the model AnimateDiff actually uses

By logtd·Created 2 years ago·Updated 2 years ago· 13
Attention Override (SD1.5)
    • ATTN_OVERRIDE
    input_1true
    input_2true
    input_4true
    input_5true
    input_7true
    input_8true
    middle_0true
    output_3true
    output_4true
    output_5true
    output_6true
    output_7true
    output_8true
    output_9true
    output_10true
    output_11true

    If you're on the SD1.5 + AnimateDiff path - which is still where most of the flicker-fighting happens - this is the override node you'll reach for. It's the same idea as the SDXL version, but with more switches, because the SD1.5 UNet's self-attention blocks are laid out differently and the pack exposes more of them.

    Like its SDXL sibling, it does nothing on its own. It produces an ATTN_OVERRIDE object for ApplyRaveAttentionNode's optional attn_override socket. Feed it in and each toggle decides whether RAVE's grid-shuffle attention gets patched into a given UNet self-attention block. The list: input_1, input_2, input_4, input_5, input_7, input_8, middle_0, and output_3 through output_11 - fifteen toggles, all defaulting to true.

    Notice the numbering skips around: there's no input_3 or input_6, and the outputs start at output_3. Not a typo - the author only exposed the subset they judged worth toggling. Blocks that don't appear here simply can't be switched off from this node. And remember the same quirk as the SDXL version: with everything ticked, you're getting RAVE on this narrower set, while an unconnected Apply Rave Attention patches the full input/output range by default. "All on" is not "everything."

    How you'd actually use it: the pack's example workflow runs with no override at all - everything patched - which is a fine first pass. The moment your video shows localized artifacts, start by killing middle_0 (the middle block punches above its weight on composition), then work through the low output blocks if the frames are over-copying each other. Because SD1.5 + AnimateDiff is the classic RAVE use case, you'll also find this node in shared workflows on r/comfyui; knowing the toggles map to UNet blocks lets you actually read what someone's graph was doing instead of guessing.

    One output, one ATTN_OVERRIDE wire, into Apply Rave Attention. Nothing else.

    Installation is the shared pack story: ComfyUI Manager (search "ComfyUI-RAVE Attention") or cd ComfyUI/custom_nodes && git clone https://github.com/logtd/ComfyUI-RAVE_ATTN, then restart. No requirements.txt, no model files, no extra dependencies.

    The gotcha to internalize: it does nothing standalone, and a forgotten wire makes your toggles silently meaningless. If flipping switches seems to change nothing, confirm the attn_override socket is actually connected and that Apply Rave Attention sits between your checkpoint model and the sampler/AnimateDiff path.

    Categoryattention

    Inputs (16)

    NameTypeDefaultDescription
    input_1BOOLEANtrue
    input_2BOOLEANtrue
    input_4BOOLEANtrue
    input_5BOOLEANtrue
    input_7BOOLEANtrue
    input_8BOOLEANtrue
    middle_0BOOLEANtrue
    output_3BOOLEANtrue
    output_4BOOLEANtrue
    output_5BOOLEANtrue
    output_6BOOLEANtrue
    output_7BOOLEANtrue
    output_8BOOLEANtrue
    output_9BOOLEANtrue
    output_10BOOLEANtrue
    output_11BOOLEANtrue

    Outputs (1)

    NameTypeDescription
    ATTN_OVERRIDEATTN_OVERRIDE