K2 Prompt Emphasis
Boost a phrase inside its region without touching token weights
- emphasis
- emphasis
K2 Prompt Emphasis is the fine-control node of the K2 Lab suite in comfyui-FVMtools: it boosts the spatial binding of one exact phrase inside one region. If your character's red dress keeps sliding off its box, or the model keeps downgrading one specific attribute, this is the node that makes that phrase grip harder - while explicitly not doing what (phrase:1.2) weighting does.
That distinction matters. Classic prompt weighting rewrites the token weights the text encoder produced. This node works differently: it adds attention bias between those specific text tokens and the image tokens of the region they're attached to. It strengthens the where of the phrase, not the what of the token. The description is blunt about the constraint too: the phrase must occur literally, case-sensitively, in the scope you name. No fuzzing, no synonyms.
The inputs
phrase- the exact, case-sensitive text to boost. It must appear verbatim in the global prompt or in the target region's prompt.scope-__global__for the global prompt, or a region name/id for a specific region.strength- the additional attention bias, 0..2. 0 disables. Start small; this is a surgical tool.occurrence- which occurrence to target when the phrase appears multiple times in the scope (0 = first, up to 32).
Chain through the emphasis input to stack several emphases - one per phrase or region - and feed the chain into K2 Compose's emphasis slot. Output is a single emphasis object.
When it's the right tool
Regional routing gets a phrase "inside" a box, but it doesn't make every attribute equally sticky. When one specific attribute keeps bleeding out or getting ignored while the rest of the region obeys, that's the textbook use for this node: pick the phrase, point it at the region, nudge strength. It's also the polite alternative to cranking inside_strength globally - emphasis is per-phrase, so it can't flatten the whole region the way a global routing boost can. If you find yourself adding more than two or three emphases to the same region, the region prompt itself is probably the problem.
Install
Same as the whole pack:
cd ComfyUI/custom_nodes
git clone https://github.com/ping1979ping/comfyui-FVMtools
Restart ComfyUI, find it under FVM Tools/K2. No extra dependencies.
The failure mode to remember: a phrase that isn't literally in the scope does nothing. If you "boost" something and nothing changes, check spelling and punctuation first - this node is exact, and it's the exactness that makes it safe to use.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| phrase | STRING | Case-sensitive exact phrase. | |
| scope | STRING | __global__ | '__global__' for the global prompt, otherwise the region name or region id. |
| strength | FLOAT | 0.500–2 | Additional attention bias. 0 disables. |
| occurrence | INT | 00–32 | Which occurrence to target when the phrase appears multiple times (0 = first). |
| emphasisopt | K2_EMPHASIS | Chain input: previously defined emphases. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| emphasis | K2_EMPHASIS | — |