ComfyUI  >  Nodes  >  ComfyUI-Image-Filters

ComfyUI Extension: ComfyUI-Image-Filters

Repo Name

ComfyUI-Image-Filters

Author
spacepxl (Account age: 295 days)
Nodes
View all nodes (46)
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

ComfyUI-Image-Filters Description

ComfyUI-Image-Filters provides image and matte filtering nodes for ComfyUI, enabling advanced image processing and enhancement within the ComfyUI framework.

ComfyUI-Image-Filters Introduction

ComfyUI-Image-Filters is an extension designed to enhance your image processing capabilities within the ComfyUI framework. This extension provides a variety of nodes that allow you to apply different filters and effects to images, masks, and latents. Whether you are looking to clean up image edges, blur images, enhance details, or normalize colors, ComfyUI-Image-Filters offers tools that can help you achieve professional-quality results with ease.

For AI artists, this extension can be particularly useful in refining and perfecting images generated by AI models. It helps solve common problems such as noise, color mismatches, and edge artifacts, making your final output more polished and visually appealing.

How ComfyUI-Image-Filters Works

ComfyUI-Image-Filters works by providing a set of nodes that you can integrate into your ComfyUI workflows. Each node performs a specific image processing task, such as blurring, enhancing details, or normalizing colors. By connecting these nodes in different ways, you can create complex image processing pipelines tailored to your specific needs.

Think of each node as a tool in a digital artist's toolkit. Just as you might use different brushes and techniques to create a painting, you can use different nodes to process and refine your images. For example, you might use a blur node to soften an image, followed by a detail enhancement node to bring out fine textures.

ComfyUI-Image-Filters Features

Alpha Clean

Cleans up holes and near-solid areas in a matte, making it useful for refining masks and ensuring smooth edges.

Alpha Matte

Refines the edges of an image using an alpha or trimap. It can also extract foreground and background colors, making it ideal for cleaning up segments or hand-drawn masks.

Blur Image (Fast)

Applies a fast Gaussian blur to images, significantly faster than the default ComfyUI blur. It supports larger blur radii and separate x/y controls.

Blur Mask (Fast)

Similar to Blur Image (Fast), but specifically designed for masks.

Dilate/Erode Mask

Allows you to dilate or erode masks using either a box or circle filter, useful for adjusting the thickness of mask edges.

Enhance Detail

Increases or decreases details in an image using a guided filter, which is more effective than traditional Gaussian blur-based sharpening.

Guided Filter Alpha

Feathers the edges of a matte based on similar RGB colors, working best with strong color separation between foreground and background.

Remap Range

Adjusts the color range of an image to fit a new blackpoint and whitepoint, useful for clamping or thresholding soft mattes.

Clamp Outliers

Clamps latents that are more than a specified number of standard deviations away from 0, helping to reduce noise and artifacts.

AdaIN Latent/Image

Normalizes latents or images to match the mean and standard deviation of a reference input, useful for correcting color shifts.

Batch Normalize Latent/Image

Normalizes each frame in a batch to the overall mean and standard deviation, reducing brightness flickering.

Difference Checker

Calculates the absolute value of the difference between inputs, making it easier to view dark values by boosting them.

Image Constant (RGB/HSV)

Creates an empty image of any color, either in RGB or HSV color space.

Offset Latent Image

Creates an empty latent image with custom values, allowing for offset noise with per-channel control.

Latent Stats

Prints statistics about the latents, including dimensions and per-channel mean, standard deviation, minimum, and maximum values.

Tonemap / UnTonemap

Applies or removes a log + contrast curve tonemap, useful for adjusting image contrast dynamically.

Exposure Adjust

Adjusts the exposure of an image linearly in f-stops, with an optional tonemap.

Convert Normals

Converts between different normal map color spaces, with optional normalization and black region fixes.

Batch Average Image

Returns the average image of a batch, useful for creating composite images.

Normal Map (Simple)

Generates a simple high-frequency normal map using the Scharr operator.

Keyer

Provides various keying options, including luma, saturation, channel, and greenscreen keying.

JitterImage, UnJitterImage, BatchAverageUnJittered

Tools for supersampling and antialiasing workflows.

Shuffle

Allows you to rearrange image channels as needed.

ColorMatch

Matches the color of an image to a reference image using mean or blur, similar to AdaIN.

RestoreDetail

Transfers details from one image to another using frequency separation techniques, useful for restoring details lost in img2img workflows.

BetterFilmGrain

Applies realistic film grain to images, with a natural luminance and intensity response, and is significantly faster than other options.

Troubleshooting ComfyUI-Image-Filters

Common Issues and Solutions

Import Errors with OpenCV

If you encounter import errors related to OpenCV or cv2, it may be due to having multiple or incorrect versions of OpenCV installed. Use the provided import_error_install.bat file to uninstall all versions of OpenCV and reinstall the correct version, opencv-contrib-python.

Blurry or Unclear Images

Ensure that you are using the appropriate blur radius and settings for your specific needs. Adjust the x/y controls in the Blur Image (Fast) node to achieve the desired effect.

Color Mismatches

Use the AdaIN Latent/Image or ColorMatch nodes to normalize colors and match them to a reference image. This can help correct any color shifts that may occur during processing.

Frequently Asked Questions

Q: How do I install ComfyUI-Image-Filters? A: Installation instructions are provided in the extension's repository. Follow the steps to install the required dependencies and set up the extension.

Q: Can I use ComfyUI-Image-Filters with other image processing tools? A: Yes, ComfyUI-Image-Filters is designed to be flexible and can be integrated with other image processing tools and workflows.

Q: What should I do if a node is not working as expected? A: Check the node settings and ensure that all inputs are correctly connected. Refer to the documentation for specific node usage instructions.

Learn More about ComfyUI-Image-Filters

To learn more about ComfyUI-Image-Filters and how to use it effectively, you can explore the following resources:

  • : The official repository contains the latest updates, installation instructions, and additional documentation.
  • ComfyUI Community Forums : Join the community to ask questions, share your work, and get support from other AI artists and developers.
  • Tutorials and Guides : Access step-by-step tutorials and guides to help you get started with ComfyUI-Image-Filters and make the most of its features. By leveraging these resources, you can enhance your understanding of ComfyUI-Image-Filters and improve your image processing skills, leading to more polished and professional results in your AI art projects.

ComfyUI-Image-Filters Related Nodes

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.