ComfyUI > Nodes > comfyui_face_parsing > MaskBorderDissolve(FaceParsing)

ComfyUI Node: MaskBorderDissolve(FaceParsing)

Class Name

MaskBorderDissolve(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

MaskBorderDissolve(FaceParsing) Description

Refines mask edges in face parsing using Gaussian blur for smooth, natural transitions.

MaskBorderDissolve(FaceParsing):

The MaskBorderDissolve(FaceParsing) node is designed to refine the edges of a mask by applying a border dissolve effect. This node is particularly useful in face parsing tasks where smooth transitions between different facial regions are desired. By leveraging a Gaussian blur technique, it softens the hard edges of a mask, creating a more natural blend between the masked and unmasked areas. This process enhances the visual quality of the mask, making it more suitable for applications that require seamless integration of facial features. The node's primary goal is to improve the aesthetic appeal of masks by reducing harsh boundaries, thus providing a more polished and professional output.

MaskBorderDissolve(FaceParsing) Input Parameters:

mask

The mask parameter is a tensor that represents the input mask to be processed. It serves as the foundation for the border dissolve effect, where each element in the tensor corresponds to a pixel in the mask. The quality of the input mask directly impacts the effectiveness of the border dissolve, as a well-defined mask will yield better results. There are no specific minimum or maximum values for this parameter, but it should be a valid tensor representing a mask.

size

The size parameter determines the width of the border area that will be affected by the dissolve effect. It defines how far into the mask the dissolve effect will penetrate, with larger values resulting in a wider transition area. This parameter allows you to control the extent of the border dissolve, providing flexibility in achieving the desired level of smoothness. The minimum value is 0, and there is no strict maximum, but it should be chosen based on the dimensions of the mask.

kernel_size

The kernel_size parameter specifies the size of the kernel used in the Gaussian blur operation. It must be an odd integer to ensure proper blurring. This parameter influences the degree of blurring applied to the mask's border, with larger kernel sizes producing a more pronounced blur effect. The minimum value is 1, and it should be an odd number to maintain the integrity of the Gaussian blur process.

sigma

The sigma parameter controls the standard deviation of the Gaussian blur, affecting the smoothness of the transition. A higher sigma value results in a softer and more gradual dissolve effect, while a lower value produces a sharper transition. This parameter provides fine-tuning capabilities for the blur effect, allowing you to achieve the desired level of smoothness. The minimum value is 0, which effectively disables the blur, and there is no strict maximum, but it should be chosen based on the desired effect.

MaskBorderDissolve(FaceParsing) Output Parameters:

results

The results parameter is a tensor that contains the processed mask with the border dissolve effect applied. This output represents the refined mask, where the edges have been softened to create a more natural transition between masked and unmasked areas. The results tensor maintains the same dimensions as the input mask, ensuring compatibility with subsequent processing steps. This output is crucial for applications that require high-quality masks with smooth edges, enhancing the overall visual appeal of the final output.

MaskBorderDissolve(FaceParsing) Usage Tips:

  • To achieve a subtle border dissolve effect, start with a small size and gradually increase it until the desired smoothness is achieved.
  • Experiment with different kernel_size and sigma values to find the optimal balance between blur intensity and transition smoothness for your specific application.
  • Ensure that the kernel_size is always an odd number to maintain the effectiveness of the Gaussian blur operation.

MaskBorderDissolve(FaceParsing) Common Errors and Solutions:

Kernel size must be odd

  • Explanation: The kernel_size parameter must be an odd integer to ensure the Gaussian blur is applied correctly.
  • Solution: If you encounter this error, increase the kernel_size by 1 to make it an odd number.

Invalid mask tensor

  • Explanation: The input mask parameter must be a valid tensor representing a mask.
  • Solution: Verify that the input mask is correctly formatted as a tensor and contains valid data before passing it to the node.

MaskBorderDissolve(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.

MaskBorderDissolve(FaceParsing)