ComfyUI  >  Nodes  >  ComfyUI-Image-Filters >  Difference Checker

ComfyUI Node: Difference Checker

Class Name

DifferenceChecker

Category
image/filters
Author
spacepxl (Account age: 295 days)
Extension
ComfyUI-Image-Filters
Latest Updated
6/22/2024
Github Stars
0.1K

How to Install ComfyUI-Image-Filters

Install this extension via the ComfyUI Manager by searching for  ComfyUI-Image-Filters
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Image-Filters 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Difference Checker Description

Node highlights differences between images for quality control, image comparison, and visual effects by amplifying discrepancies.

Difference Checker:

The DifferenceChecker node is designed to compare two sets of images and highlight the differences between them. This node is particularly useful for identifying changes or discrepancies between two images, which can be beneficial in various image processing tasks such as quality control, image comparison, and visual effect creation. By calculating the absolute difference between corresponding pixels in the two images and applying a multiplier, the node amplifies the differences, making them more noticeable. This can help you quickly spot even minor changes that might otherwise go unnoticed.

Difference Checker Input Parameters:

images1

This parameter represents the first set of images to be compared. It is essential to provide images that you want to use as the baseline for comparison. The images should be in a compatible format that the node can process.

images2

This parameter represents the second set of images to be compared against the first set. These images will be compared pixel-by-pixel with the images provided in the images1 parameter. Ensure that the images in this set correspond to the images in the images1 set in terms of dimensions and format.

multiplier

The multiplier parameter is a floating-point value that amplifies the differences between the two sets of images. The default value is 1.0, with a minimum value of 0.01 and a maximum value of 1000.0. Adjusting this value allows you to control the sensitivity of the difference detection. A higher multiplier will make even small differences more pronounced, while a lower multiplier will make the node less sensitive to minor changes.

Difference Checker Output Parameters:

IMAGE

The output of the DifferenceChecker node is a set of images that highlight the differences between the input images. The differences are calculated as the absolute difference between corresponding pixels in the two input sets, multiplied by the specified multiplier. The resulting images are clamped to ensure that pixel values remain within a valid range, making the differences visually discernible.

Difference Checker Usage Tips:

  • To effectively use the DifferenceChecker node, ensure that the images in images1 and images2 are aligned and of the same dimensions. Misaligned or differently sized images can lead to inaccurate difference detection.
  • Experiment with the multiplier parameter to find the optimal value for your specific use case. Start with the default value and adjust as needed to either amplify or reduce the sensitivity of the difference detection.
  • Use the DifferenceChecker node in quality control workflows to automatically detect changes or defects in a series of images, saving time and improving accuracy.

Difference Checker Common Errors and Solutions:

"Invalid image file: <filename>"

  • Explanation: This error occurs when the provided image file cannot be found or is not in a valid format.
  • Solution: Ensure that the image file exists at the specified path and is in a supported format. Verify the file path and try again.

"Mismatched image dimensions"

  • Explanation: This error occurs when the images in images1 and images2 do not have the same dimensions.
  • Solution: Ensure that all images in both sets have the same width and height. Resize or crop the images as necessary to match their dimensions.

"Unsupported image format"

  • Explanation: This error occurs when the provided images are in a format that the node does not support.
  • Solution: Convert the images to a supported format, such as PNG or JPEG, and try again. Use image editing software or tools to change the format if needed.

Difference Checker Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Image-Filters
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.