Nodes/ComfyCollectorNodes/Hyper Remap (CCN)
ComfyUI Node

Hyper Remap (CCN)

Unified four-phase remapping pipeline. comma (,) = text replacement. arrow (->) = token embedding blend. fat arrow (=>) = concept direction nudge. double tilde (~~) = additive residual delta. blend / sharpness / threshold are shared defaults for all operators. sharpness and threshold govern incoming-conditioning similarity weighting for => and ~~. ~~ additionally supports sx / tx overrides for intrinsic delta weighting. Per-pair (b:X, s:X, t:X, sx:X, tx:X) overrides in parentheses take precedence over globals.

By valkymaera·Created 3 months ago·Updated 4 days ago· 1
Hyper Remap (CCN)
  • clip
  • conditioning
  • untouched_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
normalize_deltatrue
case_sensitivetrue
debugfalse
CategoryCCN/conditioning

Inputs (9)

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.
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 (4)

NameTypeDescription
conditioningCONDITIONING
untouched_conditioningCONDITIONING
original_promptSTRING
modified_promptSTRING