Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-RefineNode > RefineNode Paste Back

ComfyUI Node: RefineNode Paste Back

Class Name

RefineNodePasteBack

Category
RefineNode
Author
1Kynx (Account age: 102days)
Extension
ComfyUI-RefineNode
Latest Updated
2026-05-10
Github Stars
0.02K

How to Install ComfyUI-RefineNode

Install this extension via the ComfyUI Manager by searching for ComfyUI-RefineNode
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-RefineNode in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

RefineNode Paste Back Description

Seamlessly integrate refined images back into original context for AI artists.

RefineNode Paste Back:

The RefineNodePasteBack node is designed to seamlessly integrate generated images back into their original context, ensuring that the refined outputs align perfectly with the source images. This node is particularly beneficial for AI artists who work with image refinement processes, as it allows for the precise placement of enhanced or modified image sections back into their original positions. By utilizing various modes and parameters, the node ensures that the transition between the original and generated images is smooth and visually coherent. The primary goal of this node is to maintain the integrity of the original image while incorporating the enhancements made by AI models, thus providing a powerful tool for creating polished and professional-looking images.

RefineNode Paste Back Input Parameters:

generated_image

The generated_image parameter accepts a tensor representing the image(s) generated by an AI model. This input is crucial as it provides the refined image data that will be integrated back into the original image context. The parameter can handle both single images and batches, allowing for flexibility in processing multiple images simultaneously.

info

The info parameter is a dictionary containing metadata and additional information required for the paste-back process. This includes details about the original image, model image, and any masks used during the refinement process. The information provided here is essential for ensuring that the generated images are correctly aligned and integrated with their corresponding original images.

paste_back_mode

The paste_back_mode parameter determines the method used to integrate the generated image back into the original context. It can be set to different modes such as "mask" or "bbox," which dictate how the paste mask is created and applied. This parameter is critical for controlling the blending and alignment of the generated image with the original.

mask_grow

The mask_grow parameter specifies the amount by which the mask should be expanded. This is useful for ensuring that the edges of the generated image blend smoothly with the original image, preventing harsh lines or visible seams. The value can be adjusted to achieve the desired level of blending.

blend_blur

The blend_blur parameter controls the amount of blur applied to the edges of the mask. This helps in creating a smooth transition between the generated and original images, enhancing the visual coherence of the final output. Adjusting this parameter allows for fine-tuning the softness of the blend.

RefineNode Paste Back Output Parameters:

result

The result output is the final image that combines the original and generated images. It reflects the successful integration of the refined image back into its original context, with all adjustments and blending applied as specified by the input parameters.

combined_mask

The combined_mask output provides the mask used during the paste-back process. This mask shows the areas where the generated image was integrated into the original, offering insight into the blending and alignment achieved by the node.

RefineNode Paste Back Usage Tips:

  • Ensure that the info parameter contains all necessary metadata about the original and model images to avoid alignment issues.
  • Experiment with the mask_grow and blend_blur parameters to achieve the desired level of blending between the generated and original images.

RefineNode Paste Back Common Errors and Solutions:

Missing original image.

  • Explanation: This error occurs when the original image is not provided in the info dictionary.
  • Solution: Ensure that the info parameter includes a valid origin_image entry.

Missing model image.

  • Explanation: This error indicates that the model image is not present in the info dictionary.
  • Solution: Verify that the info parameter contains a model_image entry.

Missing model mask.

  • Explanation: This error arises when the model mask is not included in the info dictionary.
  • Solution: Check that the info parameter has a model_mask entry.

Missing RefineNode Preprocess Mask info.

  • Explanation: This error suggests that the necessary preprocessing information is not available.
  • Solution: Ensure that the info parameter includes all required preprocessing details.

Missing generated images.

  • Explanation: This error occurs when no generated images are provided for processing.
  • Solution: Confirm that the generated_image parameter contains valid image data.

Requires one generated image per RefineNode info item.

  • Explanation: This error indicates a mismatch between the number of generated images and the number of info items.
  • Solution: Make sure that there is a one-to-one correspondence between generated images and info items.

RefineNode Paste Back Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-RefineNode
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

RefineNode Paste Back