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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| clip | CLIP | — | |
| text | STRING | — | |
| remappings | STRING | # 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) | — |
| blend | FLOAT | 1.000-100–100 | Default 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. |
| sharpness | FLOAT | 1.00-100–100 | Default 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. |
| threshold | FLOAT | 0.000-1–1 | Default 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_deltaopt | BOOLEAN | true | L2-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_sensitiveopt | BOOLEAN | true | Case sensitivity for string replacement pairs. |
| debugopt | BOOLEAN | false | Print phase diagnostics to console. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| conditioning | CONDITIONING | — |
| untouched_conditioning | CONDITIONING | — |
| original_prompt | STRING | — |
| modified_prompt | STRING | — |