Nodes/comfyui-krea2-two-character-composer/Krea2 Two Character Composer
ComfyUI Node

Krea2 Two Character Composer

Two regional prompts and character LoRAs for Krea 2. Split the image left/right or top/bottom, place two free boxes or connect masks. Negative prompts use the NegPiP Prompt pack when it is installed.

By cyberdeliaAI·Created 6 days ago·Updated 6 days ago· 0
Krea2 Two Character Composer
  • model
  • clip
  • latent
  • character_1_mask
  • character_2_mask
  • model
  • positive
  • latent
  • region_masks
  • negative
  • prompts
◄base_prompt►
◄negative_prompt►
◄character_1_trigger►
◄character_1_prompt►
◄character_1_loraNone►
◄character_1_strength1.00►
◄character_2_trigger►
◄character_2_prompt►
◄character_2_loraNone►
◄character_2_strength1.00►
◄directionLeft / Right►
◄character_1_percent50►
◄separationBalanced►
◄boxes5, 10, 42, 85; 53, 10, 42, 85►
◄lora_edge_softness0►
◄base_strength1.00►
◄preview_ratioAuto►
◄width—►
◄height—►
Categoryconditioning/krea2_regional

Inputs (24)

NameTypeDefaultDescription
modelMODEL—
clipCLIP—
latentLATENT—
base_promptSTRINGRead by the whole image. A placement sentence for both characters is added automatically.
negative_promptSTRINGCompiled to negative weights by the installed NegPiP Prompt pack (comfyui-negpip-zimage). Works at CFG 1. Leave empty if you don't use NegPiP.
character_1_triggerSTRINGGoes first in this character's prompt and is kept out of the shared scene prompt, so Krea 2 doesn't render it as text.
character_1_promptSTRINGOnly this region reads this prompt. With NegPiP installed, negative weights like (beard:-0.6) apply to this character only.
character_1_loraCOMBONone1 options: None
character_1_strengthFLOAT1.00-10–10—
character_2_triggerSTRINGGoes first in this character's prompt and is kept out of the shared scene prompt, so Krea 2 doesn't render it as text.
character_2_promptSTRINGOnly this region reads this prompt. With NegPiP installed, negative weights like (beard:-0.6) apply to this character only.
character_2_loraCOMBONone1 options: None
character_2_strengthFLOAT1.00-10–10—
directionCOMBOLeft / RightSplit left/right or top/bottom, or place two Free boxes. A connected character mask replaces that character's area.
character_1_percentINT501–99Image area for Character 1 (left or top). Character 2 gets 100 minus this value.
separationCOMBOBalancedBalanced preserves scene interaction. Strong also restricts cross-region image attention for the first half of sampling. Soft (experimental) lets the whole image read both character prompts for the last 40% of sampling.
boxesoptSTRING5, 10, 42, 85; 53, 10, 42, 85Free boxes: 'x, y, width, height; x, y, width, height' in percent of the image, Character 1 first. Drag them in the preview. Character 1 is in front where boxes overlap.
lora_edge_softnessoptINT00–256Pixels over which the two character LoRAs fade into each other at their boundary. The prompts stay separated. 0 = hard edge.
base_strengthoptFLOAT1.000.05–2Experimental. How strongly the characters' areas follow the base prompt compared to their own prompt. 1.0 = unchanged.
character_1_maskoptMASKOptional. Replaces Character 1's area. Of a batch, the first mask is used.
character_2_maskoptMASKOptional. Replaces Character 2's area. Of a batch, the first mask is used.
preview_ratiooptCOMBOAutoPreview only: choose a fixed ratio before sampling, or Auto to read connected width/height or a recognizable latent resolution. Generation dimensions come from the LATENT.
widthoptINTOptional preview width. Connect together with height. Does not resize the latent.
heightoptINTOptional preview height. Connect together with width. Does not resize the latent.

Outputs (6)

NameTypeDescription
modelMODELPatched Krea 2 model. Connect directly to the sampler.
positiveCONDITIONINGRegional positive conditioning.
latentLATENTThe input latent, passed through.
region_masksMASKThe two region masks as a batch, for previewing.
negativeCONDITIONINGMatching empty negative for the sampler (only used at CFG > 1).
promptsSTRINGThe scene and character prompts exactly as encoded.