Nodes/ComfyCollectorNodes/Hyper Remap Krea2 Edit (CCN)
ComfyUI Node

Hyper Remap Krea2 Edit (CCN)

Four-phase remapping pipeline fused with the krea2_edit image-grounded encode. comma (,) = text replacement. arrow (->) = token embedding blend. fat arrow (=>) = concept direction nudge (cosine mode when grounded). double tilde (~~) = additive residual delta (pooled when grounded). Per-pair (b:X, s:X, t:X, sx:X, tx:X) overrides in parentheses take precedence over globals. Connect image (and optionally image_b) to ground the encode; empty remappings = plain grounded encode.

By valkymaera·Created 3 months ago·Updated 4 days ago· 1
Hyper Remap Krea2 Edit (CCN)
  • clip
  • image
  • image_b
  • conditioning
  • original_prompt
  • modified_prompt
text
remappings# string replace: find, replace # token remap: source -> target # token remap: source -> target (0.8) # concept remap: source => target # concept remap: source => target (b:0.8, s:2.0, t:0.1) # delta remap: base ~~ subtracted # delta remap: base ~~ subtracted (b:0.5, s:1.0, sx:2.0)
blend1.000
sharpness1.00
threshold0.000
grounding_px768
normalize_deltatrue
case_sensitivetrue
debugfalse
CategoryCCN/conditioning

Inputs (12)

NameTypeDefaultDescription
clipCLIP
textSTRING
remappingsSTRING# string replace: find, replace # token remap: source -> target # token remap: source -> target (0.8) # concept remap: source => target # concept remap: source => target (b:0.8, s:2.0, t:0.1) # delta remap: base ~~ subtracted # delta remap: base ~~ subtracted (b:0.5, s:1.0, sx:2.0)
blendFLOAT1.000-100–100Default blend for all operators. For ->: lerp between original and remapped embeddings. For => and ~~: magnitude of the nudge vector. >1 overshoots, negative inverts direction. Per-pair (b:X) overrides take precedence.
sharpnessFLOAT1.00-100–100Default incoming-conditioning sharpness for => and ~~. Controls how sharply positions are weighted by their cosine similarity to the source/base concept. 0 = uniform across all positions. Higher = concentrated on most-similar positions. Negative = favour least-similar positions. Ignored by ->. Per-pair (s:X) overrides take precedence.
thresholdFLOAT0.000-1–1Default incoming-conditioning threshold for => and ~~. Masks out positions whose similarity weight falls below this value after sharpness is applied. 0 = all positions eligible. Ignored by ->. Per-pair (t:X) overrides take precedence.
imageoptIMAGESource image to ground the encode on (krea2_edit semantic path). Leave disconnected for a text-only encode.
image_boptIMAGE2nd reference (subject) for multi-ref LoRAs; vision blocks in training order: scene first, subject second.
grounding_pxoptINT7680–4096Cap the longest side fed to Qwen3-VL; 0 = native resolution.
normalize_deltaoptBOOLEANtrueL2-normalise the delta tensor before blending for ~~ entries. When on, blend has a consistent magnitude regardless of how different the two prompts are. When off, larger semantic differences produce stronger effects at the same blend value.
case_sensitiveoptBOOLEANtrueCase sensitivity for string replacement pairs.
debugoptBOOLEANfalsePrint phase diagnostics to console.

Outputs (3)

NameTypeDescription
conditioningCONDITIONING
original_promptSTRING
modified_promptSTRING