Nodes/comfyui-fvmtools/K2 Latent Pin (outside regions)
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.

By ping1979ping·Created 5 months ago·Updated 21 days ago· 0
K2 Latent Pin (outside regions)
  • regional
  • base
  • mask
  • latent
strength1.00
feather_tokens2
CategoryFVM Tools/K2

Inputs (5)

NameTypeDefaultDescription
regionalLATENTResult of the run WITH regional LoRAs.
baseLATENTResult of the same seed WITHOUT them.
maskMASKRegion union mask from K2 Compose.
strengthFLOAT1.000–11.0 pins the outside completely to the base run, 0 returns the regional result unchanged.
feather_tokensINT20–32Soft boundary width in latent cells.

Outputs (1)

NameTypeDescription
latentLATENT