Nodes/ComfyUI-BFSNodes/BFS Head Swap Paste Back
ComfyUI Node

BFS Head Swap Paste Back

Composites processed crops back into the original frames, with edge-aware feathering and optional mask confinement. The other half of the sampler's paste_back: off, for refining a crop before it goes home.

By alisson-anjos·Created 6 months ago·Updated about 7 hours ago· 108
BFS Head Swap Paste Back
  • cropped_images
  • original_images
  • crop_bboxes
  • confine_mask
  • images
feather16
CategoryBFS/video

Inputs (5)

NameTypeDefaultDescription
cropped_imagesIMAGEProcessed crops, at any resolution.
original_imagesIMAGEThe frames to paste into.
crop_bboxesBOUNDING_BOXConnect the sampler's crop_bboxes output -- one box per frame. This is a socket, not something to fill in: typing a single box by hand would paste every frame into the same fixed rectangle.
featherINT160–256
confine_maskoptMASKConfines the paste to the mask instead of the whole box, in the crop's space.

Outputs (1)

NameTypeDescription
imagesIMAGE