Model
Trends
.ai
Model
Trends
.ai
de bästa AI-modellerna med öppen källkod

Noden Conditioning (Combine) and (Concat) i ComfyUI

Conditioning (Combine) merges two conditionings so the sampler is guided by both at once; Conditioning (Concat) joins the token sequences into one longer prompt. Related nodes set area, mask and timestep ranges.
Nodpaket: ComfyUI core
Kategori: Conditioning och prompter
Den här sidan har inte översatts ännu, så den visas på engelska.

Vad Conditioning (Combine) and (Concat) gör

ComfyUI treats prompts as data, so they can be mixed after encoding. Conditioning (Combine) takes two CONDITIONING inputs and outputs a list containing both; the sampler evaluates each and averages the guidance, which blends two ideas (for example two styles) more evenly than writing them in one prompt. Conditioning (Concat) appends the second prompt tokens to the first, which behaves like a long single prompt.
The same family includes Conditioning (Average) with a weight slider, Conditioning (Set Area) and (Set Mask) to apply a prompt only to a region, and ConditioningSetTimestepRange to apply a prompt only during part of the sampling. Together they make regional prompting and prompt scheduling possible without custom nodes.

Ingångar

Namn
Typ
Vad det är
conditioning_1
CONDITIONING
First encoded prompt.
conditioning_2
CONDITIONING
Second encoded prompt (Concat: appended; Combine: evaluated alongside).

Utgångar

Namn
Typ
Vad det är
CONDITIONING
CONDITIONING
The merged conditioning for the sampler positive or negative input.
AD
Hoppa över installationen: ComfyUI-arbetsflöden förinstallerade i molnet
BitVector kör färdiga ComfyUI-arbetsflöden på sina egna GPU:er. Ingen installation, inga saknade noder, inga röda rutor. Öppna det på telefonen eller datorn och generera inom en minut.

Så använder du Conditioning (Combine) and (Concat)

  1. Encode two prompts with two CLIP Text Encode nodes.
  2. Feed both into Conditioning (Combine) or (Concat).
  3. Connect the output to the KSampler positive input.
  4. For a region, pass one prompt through Conditioning (Set Mask) with a MASK first, then combine with the full-image prompt.

Inställningar och tips

  • Combine doubles the sampler work per step for the positive side; Concat does not.
  • Set Area with strength 1.0 and set_cond_area "default" is the classic two-subjects-left-and-right technique.
  • Use ConditioningSetTimestepRange 0.0-0.3 for a composition prompt and 0.3-1.0 for a detail prompt.
  • Conditioning (Average) with conditioning_to_strength 0.5 gives a true midpoint between two prompts.

Felsökning av Conditioning (Combine) and (Concat)

Subjects bleed into each other with Set Area or Set Mask

Varför det händer
The regional prompts overlap or there is no general prompt covering the whole canvas, so the model fills gaps from either region.

Så löser du det
Add a third, general prompt for the whole image, combine all three, and keep the regions from overlapping. Lower the regional strength to 0.8.

Error: cond shapes do not match when using Concat

Varför det händer
The two prompts come from different text encoders (for example SD 1.5 CLIP and SDXL CLIP) or one includes pooled output the other lacks.

Så löser du det
Encode both prompts with the same CLIP object from the same loader.

Nothing changes when combining

Varför det händer
Both inputs are the same conditioning, or the combined output is not the one wired into the sampler.

Så löser du det
Check the wire into KSampler positive comes from the combine node and that the two inputs differ.

AD
Kör detta arbetsflöde från telefonen
Varje arbetsflöde på den här sidan är förinstallerat på BitVector med sina modeller och anpassade noder. Välj, skriv en prompt, klart. Noll installation, inget att ladda ner.

Frågor om Conditioning (Combine) and (Concat)

Combine or Concat for two styles?

Combine blends two separately evaluated guidances; Concat is like a longer prompt. Try Combine first for styles, Concat for added detail words.

Can I do this on the negative side?

Yes, all conditioning nodes work for negative prompts too.

Relaterade noder

AD
Trött på att laga noder? Låt molnet göra det
BitVector håller hundratals ComfyUI-arbetsflöden installerade, uppdaterade och testade på snabba moln-GPU:er. Ingen Python, inga CUDA-fel, inga VRAM-gränser. Fungerar från vilken webbläsare som helst.

Fler ComfyUI-noder

ComfyUI Manager
ComfyUI-Manager
ComfyUI Manager is the extension that installs, updates and fixes custom node packs and models from inside the interface, resolves missing nodes in imported workflows and snapshots your setup.
Load Checkpoint
ComfyUI core
Load Checkpoint (CheckpointLoaderSimple) opens a .safetensors or .ckpt model file and hands out the three parts every workflow needs: the diffusion MODEL, the CLIP text encoder and the VAE.
Save Image
ComfyUI core
Save Image writes the IMAGE tensor to ComfyUI/output as a PNG, with the whole workflow embedded in the file metadata so the picture can be dragged back into ComfyUI to restore the graph.
VAE Decode
ComfyUI core
VAE Decode converts the sampled LATENT into a pixel IMAGE with the VAE; VAE Decode (Tiled) does the same in tiles for very large images.
Empty Latent Image
ComfyUI core
Empty Latent Image creates the blank latent canvas (width, height, batch_size) that text-to-image sampling starts from; dimensions must be multiples of 8 and match the model family.
Load Image
ComfyUI core
Load Image reads a picture from the ComfyUI input folder (or an upload) and outputs an IMAGE tensor plus a MASK taken from the alpha channel, the starting point for img2img, inpainting, ControlNet and IP-Adapter graphs.