ComfyUI > Nodes > comfyui_face_parsing > GuidedFilter(FaceParsing)

ComfyUI Node: GuidedFilter(FaceParsing)

Class Name

GuidedFilter(FaceParsing)

Category
face_parsing
Author
Ryuukeisyou (Account age: 3084days)
Extension
comfyui_face_parsing
Latest Updated
2025-02-18
Github Stars
0.19K

How to Install comfyui_face_parsing

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

GuidedFilter(FaceParsing) Description

Enhances face parsing by smoothing images, preserving edges, and refining facial features.

GuidedFilter(FaceParsing):

The GuidedFilter(FaceParsing) node is designed to enhance image processing tasks by applying a guided filter, which is particularly useful in face parsing applications. This node leverages the guided filter technique to smooth images while preserving edges, making it ideal for refining facial features in images. The guided filter is a popular method in computer vision for its ability to maintain the structural integrity of an image while reducing noise and enhancing important details. By using this node, you can achieve more accurate and visually appealing results in tasks such as face detection, segmentation, and enhancement. The node operates by taking an input image and optionally a guide image to direct the filtering process, allowing for greater control over the output. This makes it a valuable tool for AI artists looking to improve the quality and precision of their face parsing projects.

GuidedFilter(FaceParsing) Input Parameters:

image

The image parameter is the primary input for the GuidedFilter node, representing the image that you want to process. This parameter is required and must be provided in the form of a tensor. The guided filter will be applied to this image to enhance its features while preserving important edges. The quality of the input image directly affects the output, so using a high-resolution image can yield better results.

radius

The radius parameter determines the size of the window used for filtering. It is an integer value with a default of 3, a minimum of 0, and increments in steps of 1. A larger radius results in a smoother image, as it considers a larger area around each pixel for filtering. However, increasing the radius too much may lead to loss of detail. Adjusting this parameter allows you to control the level of smoothing applied to the image.

eps

The eps parameter is a float that controls the regularization term in the guided filter algorithm. It has a default value of 125, a minimum of 0, and increments in steps of 1. This parameter helps to prevent over-smoothing by maintaining the contrast between different regions in the image. A higher eps value can preserve more details, while a lower value may result in a smoother output. Fine-tuning this parameter is crucial for achieving the desired balance between smoothness and detail preservation.

guide

The guide parameter is an optional input that allows you to provide a separate guide image to direct the filtering process. If not provided, the input image itself is used as the guide. The guide image can be used to influence the filtering outcome, especially when you want to emphasize certain features or areas in the image. This parameter is useful when you have a specific reference image that you want the filtering process to follow.

GuidedFilter(FaceParsing) Output Parameters:

image

The output of the GuidedFilter node is an image, which is the processed version of the input image after applying the guided filter. This output is a tensor that retains the original image's dimensions and format. The filtered image will have enhanced features with reduced noise, making it more suitable for further processing or analysis in face parsing tasks. The output image is expected to have improved clarity and detail, particularly in areas of interest such as facial features.

GuidedFilter(FaceParsing) Usage Tips:

  • Experiment with the radius parameter to find the optimal balance between smoothing and detail preservation for your specific image. A smaller radius may be suitable for images with fine details, while a larger radius can be used for more general smoothing.
  • Adjust the eps parameter to control the level of detail preservation. If your output image appears too smooth or lacks contrast, consider increasing the eps value to maintain more details.
  • Use a guide image if you want to influence the filtering process with a specific reference. This can be particularly useful when working with images that have similar structures or features that you want to emphasize.

GuidedFilter(FaceParsing) Common Errors and Solutions:

Error: "Input image is not a tensor"

  • Explanation: This error occurs when the input image is not provided in the correct tensor format required by the node.
  • Solution: Ensure that the input image is converted to a tensor before passing it to the node. You can use libraries like PyTorch to convert images to tensors.

Error: "Invalid radius value"

  • Explanation: This error indicates that the radius parameter is set to a value outside the allowed range.
  • Solution: Check that the radius value is an integer within the specified range (minimum 0). Adjust the value accordingly to ensure it falls within the acceptable range.

Error: "Guide image dimensions do not match input image"

  • Explanation: This error occurs when the guide image provided does not have the same dimensions as the input image.
  • Solution: Ensure that the guide image is resized or cropped to match the dimensions of the input image before using it as a guide.

GuidedFilter(FaceParsing) Related Nodes

Go back to the extension to check out more related nodes.
comfyui_face_parsing
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.