Nodes/ComfyUI-Conditioning-Rebalance/Qwen VL Image Embeds Merge
ComfyUI Node

Qwen VL Image Embeds Merge

Turn a Folder of Reference Images Into One Style You Can Prompt With

By nova452·Created 5 months ago·Updated 4 days ago· 555
Qwen VL Image Embeds Merge
  • conditioning
  • conditioning_2
  • conditioning
  • coherence
  • energy
  • contrast
  • distinct
  • coverage
◄modemean►
◄strength0.20►
◄style_boost0.00►
◄harmonic_signclamp_positive►

Krea 2's encoder is Qwen3-VL, which means the model can read an image and turn it into conditioning tokens rather than a reference latent. Encode one image and you get one look. Qwen VL Image Embeds Merge takes a whole batch of those encodes and reduces them to a single style conditioning - a distilled "this is what these forty images have in common" that you then prompt on top of.

Why this is different from an IP-Adapter

Reference-image adapters paste features in. This averages the encoder's image tokens across a set and gives you back the shared direction, with the noisy per-image stuff left behind. That's the difference between "make it look like this one photo" and "make it look like this artist's body of work" - and it's why the intended input is a folder, not a picture.

The author clearly designed it for volume. The node takes conditioning as a list input and is written to chew through 200+ encodes in one pass over the collected tensors, so you point a batched Qwen VL Image Embeds Encode at a directory of references and get one style out the other end.

How it works

Text tokens come from the first conditioning and pass through untouched. Only the image-token spans get reduced, using whichever mode you pick - then the merged span is written back into that first structure's layout, with image_spans metadata preserved so you can merge the result again.

There are 24 modes and they are not interchangeable: mean is a plain centroid and the sane default; median shrugs off one weird image; consensus keeps only elements where most images agree in sign; spread adds the per-element std back to amplify what varies; subtract gives you what the first image has that the rest don't; concat keeps every image as separate tokens instead of reducing at all, which is multi-reference posing, not style extraction. pca_style finds the dominant axis of variation across the batch, which is the mode I'd poke at if the plain mean comes out muddy.

strength (0–1, default 0.2) is a per-mode dial - outlier fraction for trimmed_mean, agreement ratio for consensus, std gain for spread, anchor-vs-crowd blend for weighted / norm_weighted. For 16 of the 24 modes it does nothing at all and the node forces it to zero internally, so don't stare at it wondering why the image won't change.

The inputs that matter

  • conditioning - the list of encodes. This is the one you wire from the encoder.
  • mode - start on mean. Change it deliberately, one at a time.
  • strength - 0.2 default, ignored by most modes.
  • style_boost - 0–20, default 0 (off). The tooltip is accurate for once: gain per token scales with how much the images agree along the style direction, so shared features get pushed and noise doesn't, and energy is renormalised back. 1–2 is the sensible starting range; 4–10 is the "I want this to hurt" range.
  • conditioning_2 (optional) - a second input, folded into the same reduction stream. Odd shape for a list node, but it's there.
  • harmonic_sign (optional) - only meaningful in harmonic_mean.

Outputs: a conditioning (a list) plus five diagnostics - coherence, energy, contrast, distinct, coverage. coherence is the one to watch: mean cosine similarity of each image's span to the merged style, so near 1.0 means your reference set is genuinely consistent and a low number means you're trying to average unrelated things. coverage tells you how sparse the resulting signature is. Wire them to a PreviewAny while you're building the set.

Install

cd ComfyUI/custom_nodes
git clone https://github.com/nova452/Rebalance-Pack.git

Restart, or install "Rebalance Pack" from Manager. No requirements file, no extra weights beyond the Qwen3-VL text encoder you already need for Krea 2. Both this and its Qwen VL Image Embeds Encode sibling come out of the pack's conditioning module.

Where people get burned

Feeding it a mean of leftovers. If your reference folder has one photoreal portrait and thirty anime sketches, coherence will tell you the truth and the output will look like neither. Curate, then check the metric.

Expecting concat to be a normal merge. It stacks every image's tokens one after another, so the sequence grows to text + N×T tokens. Great for multi-reference posing, terrible VRAM-wise, and a completely different tool from the reducer modes next to it in the dropdown.

Forgetting the output is a list. Downstream nodes that want a plain conditioning need the single-element list unwrapped by Comfy, which the node handles - but if you're feeding a custom node that chokes, check your wiring before blaming the node.

CategoryRebalance-Pack/conditioning

Inputs (6)

NameTypeDefaultDescription
conditioningCONDITIONING—
modeCOMBOmean24 options: mean, median, trimmed_mean, consensus, dominant, spread, +18
strengthFLOAT0.200–1—
style_boostFLOAT0.000–20Adaptively amplify the merged style. Gain per token scales with how much the images agree along the style direction, so shared features get boosted and noise doesn't. Energy is renormalized. 0 = off; 1-2 is a good starting range; go higher (4-10+) for a hard-hitting style.
conditioning_2optCONDITIONING—
harmonic_signoptCOMBOclamp_positive2 options: clamp_positive, signed

Outputs (6)

NameTypeDescription
conditioningCONDITIONING—
coherenceFLOAT—
energyFLOAT—
contrastFLOAT—
distinctFLOAT—
coverageFLOAT—