ComfyUI Node
K2 Latent Pin (outside regions)
Replaces everything outside the region union with a reference latent — hard spatial locality. Why this exists: token-gated regional LoRAs stop the DELTA at the box edge, but image-to-image attention stays continuous (on purpose — otherwise you get tile seams). A regional LoRA therefore still nudges the trajectory outside its box a little. Sample the same seed twice — once with and once without the regional LoRAs — and pin the outside to the clean run to remove that residual drift. feather_tokens softens the boundary in latent space; 0 is a hard cut.
K2 Latent Pin (outside regions)
- regional
- base
- mask
- latent
◄strength1.00►
◄feather_tokens2►
CategoryFVM Tools/K2
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| regional | LATENT | Result of the run WITH regional LoRAs. | |
| base | LATENT | Result of the same seed WITHOUT them. | |
| mask | MASK | Region union mask from K2 Compose. | |
| strength | FLOAT | 1.000–1 | 1.0 pins the outside completely to the base run, 0 returns the regional result unchanged. |
| feather_tokens | INT | 20–32 | Soft boundary width in latent cells. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| latent | LATENT | — |