ComfyUI > Nodes > ComfyUI Resynthesizer > Resynthesize

ComfyUI Node: Resynthesize

Class Name

Resynthesize

Category
None
Author
brayevalerien (Account age: 2258days)
Extension
ComfyUI Resynthesizer
Latest Updated
2025-07-25
Github Stars
0.03K

How to Install ComfyUI Resynthesizer

Install this extension via the ComfyUI Manager by searching for ComfyUI Resynthesizer
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Resynthesizer 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

Resynthesize Description

The Resynthesize node fills missing image areas using advanced synthesis for seamless inpainting.

Resynthesize:

The Resynthesize node is designed to intelligently fill in missing or masked areas of an image, leveraging advanced image synthesis techniques. This node is particularly useful for tasks such as image inpainting, where parts of an image need to be reconstructed in a visually coherent manner. By utilizing a variety of context matching strategies, the Resynthesize node can seamlessly blend the filled areas with the surrounding image, ensuring a natural and aesthetically pleasing result. This capability is beneficial for artists and designers looking to enhance or repair images without leaving noticeable artifacts. The node's flexibility in handling different context types and its ability to make images tileable further enhance its utility in creative workflows.

Resynthesize Input Parameters:

image

This parameter represents the input image that you want to process. It should be provided as a tensor in the BHWC format, which is a common format used in image processing tasks. The image serves as the base upon which the resynthesis will be performed.

mask

The mask parameter is a tensor that indicates the areas of the image that need to be filled or reconstructed. Areas marked in the mask will be the focus of the resynthesis process, guiding the node on where to apply its inpainting techniques.

makeTileable

This boolean parameter determines whether the resulting image should be seamlessly tileable. When set to true, the node will adjust the synthesis process to ensure that the edges of the image can be repeated without visible seams, which is particularly useful for creating textures.

context

The context parameter specifies the strategy used for matching the surrounding areas of the masked region. It can take values from a predefined list of strategies such as "Patching," "Shuffle," "Brushfire (inward)," and others. Each strategy offers a different approach to how the node interprets and fills the masked areas, affecting the final appearance of the image.

mapWeight

This parameter controls the influence of the context map on the resynthesis process. A higher mapWeight will give more importance to the context map, potentially leading to more coherent results in complex images.

sensitivityToOutliers

This parameter adjusts the node's sensitivity to outliers in the image data. By tuning this value, you can control how aggressively the node handles unusual or unexpected data points, which can affect the smoothness and realism of the filled areas.

patchSize

PatchSize determines the size of the patches used in the synthesis process. Larger patches may result in faster processing but can lead to less detailed results, while smaller patches can capture more detail but may increase processing time.

maxProbeCount

This parameter sets the maximum number of probes or attempts the node will make to find a suitable match for the masked area. Increasing this value can improve the quality of the synthesis at the cost of longer processing times.

Resynthesize Output Parameters:

result

The result is a tensor representing the processed image with the masked areas filled in. This output is the final product of the resynthesis process, ready for further use or analysis. The filled areas should blend seamlessly with the original image, reflecting the chosen context and parameters.

Resynthesize Usage Tips:

  • Experiment with different context strategies to find the one that best suits your image and desired outcome. Each strategy can produce significantly different results.
  • Adjust the patchSize and maxProbeCount parameters to balance between processing time and the level of detail in the filled areas. Smaller patches and higher probe counts can yield more detailed results but may require more computational resources.

Resynthesize Common Errors and Solutions:

"Invalid mask format"

  • Explanation: This error occurs when the mask provided is not in the expected format or dimensions.
  • Solution: Ensure that the mask is a tensor with the same height and width as the input image and is properly formatted.

"Context type not recognized"

  • Explanation: The context parameter value does not match any of the predefined strategies.
  • Solution: Verify that the context value is one of the supported types, such as "Patching" or "Shuffle," and correct any typos.

"Image tensor conversion failed"

  • Explanation: This error indicates a problem with converting the input image tensor to a PIL image.
  • Solution: Check that the input image tensor is in the correct BHWC format and that all necessary libraries are properly installed and imported.

Resynthesize Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Resynthesizer
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.

Resynthesize