Nodes/ComfyUI_IPAdapter_plus/IPAdapter Combine Weights
ComfyUI Node Runs on cloud

IPAdapter Combine Weights

Glue two weight lists into one

By cubiq·Created 3 years ago·Updated about a year ago· 6,085
IPAdapter Combine Weights
    • weights
    • count
    weights_10.00
    weights_20.00

    This is one of the smallest nodes in the pack, and it does exactly what it says - it joins two weight values into a single sequence. It lives in IPAdapter's animation/weights toolkit, where you're building per-frame weight schedules to fade the adapter's influence across a batch. Sometimes you've computed one stretch of weights and another stretch separately, and you need them stitched end to end. That's this node.

    It's a utility, plain and simple. Nobody googles it because it's exciting; you land here because you're wiring up an animation weight chain and this is the connector between two segments of it. Fair enough - let's make it quick.

    How it works

    You give it two weight values and it returns them as a combined float sequence, along with a count of how many entries the result has. There's no timing curve, no interpolation, no images - that logic lives in the bigger scheduling nodes like IPAdapter Weights. Combine Weights just concatenates.

    The inputs and outputs

    • weights_1 and weights_2 - the two weight values to join, each a float from 0 to 1 (default 0). These are the pieces you're stitching together.
    • Output weights (FLOAT) - the combined sequence, ready to feed into a weight input on an IPAdapter Batch apply node or into another part of your schedule.
    • Output count (INT) - how many entries came out. This is handier than it looks: downstream nodes and samplers often need to know the frame count, and having it as a wire saves you counting by hand.

    That's the whole node. Two floats in, a joined list and a count out.

    Installing the pack

    ComfyUI Manager: search ComfyUI IPAdapter plus, install, restart. Or by hand:

    cd ComfyUI/custom_nodes
    git clone https://github.com/cubiq/ComfyUI_IPAdapter_plus
    

    then restart ComfyUI. Keep Comfy itself updated - the pack expects a current version. This particular node needs no model files at all; it's pure arithmetic. The apply nodes it ultimately feeds are the ones that want CLIP vision encoders in ComfyUI/models/clip_vision and IPAdapter weights in ComfyUI/models/ipadapter.

    Where people get burned

    Honestly, not much can go wrong with a node this small - which is itself the thing to internalize. If your animation weights aren't behaving, the problem is almost never here; it's in the scheduling node that built the values (IPAdapter Weights, with its timing curves and frame counts) or in a frame-count mismatch between your weights and the number of latents your sampler is actually generating. Combine Weights faithfully joins whatever you hand it, so debug upstream.

    The only real "gotcha" is reaching for this node when you actually wanted the full scheduler. If you're trying to generate a smooth fade from a couple of settings, you want IPAdapter Weights, which produces a proper interpolated curve. Combine Weights just concatenates two values - it doesn't interpolate between them. And the usual caveat holds: this pack is SD 1.5 / SDXL only and in maintenance mode now.

    Categoryipadapter/utils

    Inputs (2)

    NameTypeDefaultDescription
    weights_1FLOAT0.000–1
    weights_2FLOAT0.000–1

    Outputs (2)

    NameTypeDescription
    weightsFLOAT
    countINT