Run ComfyUI Easily with InstaSD

Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:

  • One-click deployment
  • Any model, any node
  • Powerful GPUs for rapid iteration
Get Started

AILab_ImageCompare

AILab_ImageCompare Node Documentation

Overview

The AILab_ImageCompare node is part of the ComfyUI-RMBG custom node repository. It is designed to seamlessly compare two images by aligning them side-by-side and adding customizable text annotations. This node is ideal for visual comparison tasks where highlighting differences between two images is essential.

Functionality

What This Node Does

The AILab_ImageCompare node takes two images as inputs, optionally adds descriptive text annotations below each image, and combines them into a single image. It offers the ability to align images side-by-side with custom padding and text options for easy comparison.

Inputs

Required Inputs

  1. image1:

    • Type: IMAGE
    • Description: The first image to be used in the comparison.
  2. image2:

    • Type: IMAGE
    • Description: The second image to be compared against the first image.
  3. text1:

    • Type: STRING
    • Default: "image 1"
    • Description: Text annotation for the first image. This text will be displayed below the first image.
  4. text2:

    • Type: STRING
    • Default: "image 2"
    • Description: Text annotation for the second image. This text will appear below the second image.

Outputs

  • IMAGE:
    • Type: IMAGE
    • Description: A single composite image containing both input images aligned side-by-side. Descriptive text annotations are shown below each respective image.

Usage in ComfyUI Workflows

The AILab_ImageCompare node can be integrated into ComfyUI workflows where visual comparison between two images is required. Typical use cases include:

  • Quality Assessment: Compare output images from different processing nodes or models to evaluate performance and visual quality.
  • Version Tracking: Visualize differences between iterations of an image, aiding in version control and iterative design processes.
  • Annotative Feedback: Provide descriptive context to images, useful in presentations or reports that require annotated visual data.

In a ComfyUI workflow, this node would be typically placed after processing nodes that output images intended for comparison. It can be combined with other nodes like the AILab_LoadImage nodes to load and prepare images, or with the AILab_ImageMaskResize node to ensure image dimensions are compatible.

Special Features and Considerations

  • Customizable Text Annotations: Users can specify custom text annotations for each image, making comparisons clearer and more informative.
  • Automatic Resizing: If the input images have different dimensions, the node will align them effectively for direct comparison without distortion.
  • Universal Font Support: It supports text rendering across different operating systems by utilizing default system fonts.

Overall, the AILab_ImageCompare node is a powerful tool for image-based comparisons within ComfyUI, allowing for detailed visual analyses and presentations.