ComfyUI  >  Nodes  >  ComfyUI-Image-Filters >  Frequency Combine

ComfyUI Node: Frequency Combine

Class Name

FrequencyCombine

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

Frequency Combine Description

Merge high and low-frequency image components for artistic effects and detail manipulation in image processing.

Frequency Combine:

The FrequencyCombine node is designed to merge high-frequency and low-frequency components of images, allowing you to create unique visual effects by manipulating these frequency layers. This node is particularly useful for enhancing or altering specific details in an image, such as sharpening edges or blending textures. By combining the high-frequency and low-frequency images using either subtraction or division methods, you can achieve a variety of artistic effects that can enhance the overall aesthetic of your work. The node provides flexibility in how the frequencies are combined, making it a powerful tool for image processing and creative experimentation.

Frequency Combine Input Parameters:

high_frequency

This parameter accepts an image that represents the high-frequency components, which typically include fine details and edges. The high-frequency image is crucial for adding or enhancing details in the final output.

low_frequency

This parameter accepts an image that represents the low-frequency components, which generally include the broader, smoother areas of the image. The low-frequency image helps to maintain the overall structure and color gradients in the final output.

mode

This parameter determines the method used to combine the high-frequency and low-frequency images. It can be set to either "subtract" or "divide". The "subtract" mode will subtract the low-frequency image from the high-frequency image, while the "divide" mode will divide the high-frequency image by the low-frequency image, adjusted by a small epsilon value to prevent division by zero. This choice significantly impacts the resulting image's appearance.

eps

This parameter is a small floating-point value used in the "divide" mode to prevent division by zero. It has a default value of 0.1, with a minimum of 0.01 and a maximum of 0.99, adjustable in steps of 0.01. The epsilon value ensures numerical stability during the division process and can subtly influence the final image.

Frequency Combine Output Parameters:

IMAGE

The output is a single image that results from the combination of the high-frequency and low-frequency input images. This image will reflect the chosen combination method and the specific details and structures from both input images, providing a unique visual effect.

Frequency Combine Usage Tips:

  • Experiment with both "subtract" and "divide" modes to see which method best suits your artistic vision for the image.
  • Adjust the eps parameter in small increments to fine-tune the results when using the "divide" mode, ensuring that the image does not suffer from artifacts due to division by zero.
  • Use high-quality high-frequency and low-frequency images to achieve the best results, as the quality of the input images directly affects the output.

Frequency Combine Common Errors and Solutions:

Image size mismatch

  • Explanation: The high-frequency and low-frequency images must be of the same dimensions.
  • Solution: Ensure that both input images are resized to the same dimensions before using the FrequencyCombine node.

Invalid mode selection

  • Explanation: The mode parameter must be set to either "subtract" or "divide".
  • Solution: Double-check the mode parameter to ensure it is correctly set to one of the allowed values.

Division by zero artifacts

  • Explanation: When using the "divide" mode, very small values in the low-frequency image can cause artifacts.
  • Solution: Increase the eps parameter slightly to prevent division by zero and reduce artifacts in the output image.

Frequency Combine 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.