Nodes/comfyui-gg-krea2/Krea2 Edit Prep (gg)
ComfyUI Node

Krea2 Edit Prep (gg)

Prepares model and conditioning for KSampler from zero, one or two reference images: no image = plain text-to-image, one image = single-reference edit, two = scene + subject. A boost of 0 leaves that image out.

By xducer·Created 6 days ago·Updated a day ago· 1
Krea2 Edit Prep (gg)
  • model
  • clip
  • vae
  • latent
  • image
  • image_b
  • image_mask
  • image_b_mask
  • model
  • positive
  • negative
◄prompt►
◄grounding_px1024►
◄fit_modefit►
◄image_boost1.00►
◄image_b_boost1.00►
◄negativezero (CFG 1)►
◄image_positionaligned (trained)►
◄image_b_positionbeside (right of target)►
◄rebalancefalse►
◄rebalance_multiplier1.00►
◄image_usegrounding + pixels►
◄image_b_usegrounding + pixels►
Categorykrea2/gg

Inputs (20)

NameTypeDefaultDescription
modelMODELKrea 2 with an edit LoRA (identity or general) applied
clipCLIP—
vaeVAE—
latentLATENTthe same latent you feed KSampler.latent_image
promptSTRING—
grounding_pxINT10240–4096lower = stronger edit adherence, higher = stronger identity; 0 = native
fit_modeCOMBOfit2 options: fit, crop (legacy)
image_boostFLOAT1.000–1000fidelity to image; 0 leaves image out
image_b_boostFLOAT1.000–1000fidelity to image_b; 0 leaves image_b out
negativeCOMBOzero (CFG 1)grounded = empty prompt on the same images, the trained unconditional for CFG > 1
image_positionCOMBOaligned (trained)aligned = pinned to the output layout; beside = identity without the layout pin, restages more freely; bag of features = experimental
image_b_positionCOMBObeside (right of target)beside keeps the person's identity but copies much less of the photo's pose and lighting
imageoptIMAGEscene, or the only reference
image_boptIMAGEsubject; used as the only reference when image is absent
image_maskoptMASKregion of image its boost applies to, e.g. a face; used only when image is the only reference
image_b_maskoptMASKregion of image_b its boost applies to, e.g. the face
rebalanceoptBOOLEANfalseapplies Conditioning Krea2 Rebalance's default per-layer weights to positive and a grounded negative
rebalance_multiplieroptFLOAT1.000–10scales every layer; about 0.7-0.8 with the V2 LoRAs, 1.0 with the V1.2 LoRA or no edit LoRA
image_useoptCOMBOgrounding + pixelsgrounding = the text encoder sees the image (objects, outfit, scene, by meaning); pixels = the image itself goes into the model (faces, layout when aligned)
image_b_useoptCOMBOgrounding + pixelsthe same choice for image_b

Outputs (3)

NameTypeDescription
modelMODEL—
positiveCONDITIONING—
negativeCONDITIONING—