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-klein-edit-composite

ComfyUI Extension: comfyui-klein-edit-composite

Repo Name

comfyui-klein-edit-composite

Author
supermansundies (Account age: 1178 days)
Nodes
View all nodes(1)
Latest Updated
2026-03-23
Github Stars
0.08K

How to Install comfyui-klein-edit-composite

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

comfyui-klein-edit-composite Description

The comfyui-klein-edit-composite is a ComfyUI node designed to seamlessly integrate AI-edited images with original ones. It detects changes between the images and blends the generated content smoothly, ensuring a clean composite.

comfyui-klein-edit-composite Introduction

The comfyui-klein-edit-composite is a powerful extension designed for AI artists who work with image editing and compositing. This extension is a custom node for ComfyUI, a user interface that facilitates the manipulation of images using AI. The primary function of this extension is to seamlessly integrate AI-generated edits back into the original image. It intelligently identifies and blends only the altered parts of the image, ensuring that the original background remains untouched wherever it hasn't been significantly changed. This capability is particularly useful for artists who want to enhance specific areas of an image without affecting the entire composition, thus preserving the integrity and authenticity of the original artwork.

How comfyui-klein-edit-composite Works

The extension operates through a series of sophisticated processes that ensure precise alignment and blending of images. Here's a simplified breakdown of how it works:

  1. Alignment (Two-Pass SIFT + Homography): The process begins by aligning the original and edited images. It uses a technique called SIFT (Scale-Invariant Feature Transform) to match features between the two images. This step corrects any shifts in perspective or camera angle. A second pass focuses on aligning the background pixels to refine the alignment further.
  2. Optical Flow (DIS): After alignment, the extension uses dense optical flow to detect and correct any minor movements or shifts at a sub-pixel level between the images. This ensures that even the smallest changes are accounted for.
  3. Difference Detection: The extension calculates a difference map that highlights changes between the images. It combines color differences and structural differences to accurately detect real content changes while ignoring minor lighting variations.
  4. Mask Refinement: The initial change mask is refined to remove noise and fill in gaps. This step ensures that only meaningful changes are highlighted, and any unnecessary artifacts are eliminated.
  5. Color Matching: To ensure a cohesive look, the extension can adjust the colors of the edited image to match the original. This is done using a technique called Reinhard color transfer, which uses background pixels to maintain consistency in lighting and color.
  6. Compositing: Finally, the extension uses a guided filter to smoothly blend the edited image over the original, creating a seamless composite that looks natural and cohesive.

comfyui-klein-edit-composite Features

The extension offers several features that enhance its functionality and flexibility:

  • Composited Image Output: The final result is a beautifully blended image that incorporates the AI-generated edits seamlessly into the original.
  • Change Mask Output: This feature provides a visual representation of the areas that were altered, allowing artists to see exactly what changes were made.
  • Report Generation: A detailed report summarizing all parameters and statistics used during the process is generated, providing valuable insights into the editing process.
  • Debug Gallery: For those interested in the technical details, an optional gallery showcases intermediate steps such as SIFT matches, flow maps, and difference maps.

Troubleshooting comfyui-klein-edit-composite

While using the extension, you might encounter some common issues. Here are solutions to help you resolve them:

  • Alignment Issues: If the images are not aligning correctly, ensure that the original and edited images are of the same resolution and orientation. Double-check the SIFT settings for optimal feature matching.
  • Color Mismatch: If the colors of the composited image appear off, try adjusting the Reinhard color transfer settings to better match the lighting and color of the original image.
  • Unexpected Artifacts: If you notice unwanted artifacts in the final image, refine the mask settings to improve noise removal and hole filling.

Learn More about comfyui-klein-edit-composite

To further explore the capabilities of the comfyui-klein-edit-composite extension, consider visiting community forums and tutorials where AI artists share their experiences and tips. Engaging with these resources can provide additional insights and support, helping you make the most of this powerful tool in your creative projects.

comfyui-klein-edit-composite Related Nodes

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.

comfyui-klein-edit-composite detailed guide | ComfyUI