Nodes/ComfyUI-RedNodeStudio/RedNode Refine Paste
ComfyUI Node

RedNode Refine Paste

Put the refined crop back so only the masked region changed

By RedNodeAI·Created 26 days ago·Updated 15 days ago· 0
RedNode Refine Paste
  • image
  • crop
  • IMAGE

RedNode Refine Paste is the other half of a hand-built detailer loop, and it has exactly one job: take the image that a sampler produced from your refined crop and composite it back into the original frame. Outside the mask, the original pixels are untouched. That's the entire contract, and it's worth stating so plainly because it's the thing that separates a detailer from an image edit that rewrites your whole picture.

You'll pair it with RedNode Refine Crop, which cut the region out, upscaled it, and encoded it. The flow reads like a sentence: Crop cuts a masked region and hands you a latent and a crop handle; your sampler of choice - any sampler, this is deliberately sampler-agnostic - re-renders it; you VAEd-decode that and feed the result here with the crop handle; this node composites through the feathered mask and hands back the finished frame. A face gets its own high-resolution pass and everything else in the image keeps the exact pixels you already liked.

The inputs

  • image - the refined crop: the sampler's output after VAEDecode.
  • crop - the RN_CROP handle from RedNode Refine Crop. It carries the geometry - where the region was, its size, and the mask with its feathering - so paste knows exactly where to put the new pixels back.

The single output is IMAGE, the original frame with the refined region composited in. The feather applied at paste time (set on the Crop node) is what softens the seam: inside the mask, new pixels; at the edges, a feathered blend; outside, the original untouched.

Installing it

Same pack, same one-liner:

git clone https://github.com/RedNodeAI/ComfyUI-RedNodeStudio.git ComfyUI/custom_nodes/ComfyUI-RedNodeStudio

Restart ComfyUI, or use ComfyUI Manager (search RedNode Studio). No pip dependencies, no model files.

The gotchas

Two things actually matter with this node, and neither is on it. First, the paste is only as good as the crop handle's feather - if the seam shows, go back to the Crop node and raise feather, or widen context_margin so the refinement has surroundings to blend. Second, compositing a region that's been through a VAE encode/decode can shift its colour relative to the untouched frame (this is the same mechanism that produces grey-box faces in automatic detailers). When that happens, it's not this node misbehaving - it's the encode cycle, and a colour-match step or a light feathered touch-up of the seam is the usual remedy. Outside those two, this is the most boring node in the pair, and that's exactly what you want from the paste end of a detailer.

CategoryRedNode/Image

Inputs (2)

NameTypeDefaultDescription
imageIMAGEthe REFINED crop - the sampler's output after VAEDecode
cropRN_CROPfrom RedNode Refine Crop

Outputs (1)

NameTypeDescription
IMAGEIMAGE