ComfyUI  >  Nodes  >  comfyui-mixlab-nodes >  FeatheredMask

ComfyUI Node: FeatheredMask

Class Name

FeatheredMask

Category
♾️Mixlab/Mask
Author
shadowcz007 (Account age: 3323 days)
Extension
comfyui-mixlab-nodes
Latest Updated
6/23/2024
Github Stars
0.9K

How to Install comfyui-mixlab-nodes

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

FeatheredMask Description

Apply feathering effect to masks for smooth transitions and blending edges, enhancing visual quality.

FeatheredMask:

The FeatheredMask node is designed to apply a feathering effect to a given mask, which helps in creating smooth transitions and blending edges. This node is particularly useful in scenarios where you need to soften the boundaries of a mask to achieve a more natural and seamless integration with other elements in your artwork. By adjusting the feathering parameters, you can control the extent and intensity of the feathering effect, allowing for precise customization to suit your specific needs. The main goal of this node is to enhance the visual quality of your masks by reducing harsh edges and creating a more polished and professional look.

FeatheredMask Input Parameters:

mask

The mask parameter is the primary input for the FeatheredMask node. It represents the mask that you want to apply the feathering effect to. This input is essential as it serves as the base for the feathering process. The mask should be in a format that the node can process, typically a binary or grayscale image where the feathering will be applied to the edges.

left

The left parameter controls the feathering effect on the left edge of the mask. It is an integer value with a default of 0, a minimum of 0, and a maximum defined by MAX_RESOLUTION. Increasing this value will extend the feathering effect further into the mask from the left edge, creating a smoother transition.

top

The top parameter controls the feathering effect on the top edge of the mask. Similar to the left parameter, it is an integer value with a default of 0, a minimum of 0, and a maximum defined by MAX_RESOLUTION. Adjusting this value will determine how far the feathering effect reaches from the top edge into the mask.

The right parameter controls the feathering effect on the right edge of the mask. It is an integer value with a default of 0, a minimum of 0, and a maximum defined by MAX_RESOLUTION. By increasing this value, you can extend the feathering effect from the right edge into the mask, softening the transition.

bottom

The bottom parameter controls the feathering effect on the bottom edge of the mask. This integer value has a default of 0, a minimum of 0, and a maximum defined by MAX_RESOLUTION. Modifying this value will affect how far the feathering effect extends from the bottom edge into the mask, ensuring a smooth blend.

FeatheredMask Output Parameters:

MASK

The output parameter MASK is the resulting mask after the feathering effect has been applied. This output retains the original dimensions of the input mask but with softened edges as specified by the feathering parameters. The feathered mask can then be used in further processing or compositing tasks to achieve a more refined and visually appealing result.

FeatheredMask Usage Tips:

  • To achieve a subtle feathering effect, start with small values for the left, top, right, and bottom parameters and gradually increase them until you reach the desired smoothness.
  • Use the FeatheredMask node in combination with other masking and compositing nodes to create complex and polished visual effects.
  • Experiment with different feathering values on each edge to create unique and customized transitions that suit your specific artistic needs.

FeatheredMask Common Errors and Solutions:

"Input mask is not in the correct format"

  • Explanation: This error occurs when the input mask is not in a format that the FeatheredMask node can process.
  • Solution: Ensure that the input mask is a binary or grayscale image and that it meets the required specifications for the node.

"Feathering values exceed mask dimensions"

  • Explanation: This error happens when the feathering values for left, top, right, or bottom exceed the dimensions of the input mask.
  • Solution: Adjust the feathering values to be within the dimensions of the input mask to avoid this error.

"Invalid parameter value"

  • Explanation: This error is triggered when one or more of the feathering parameters are set to invalid values, such as negative numbers or values exceeding the maximum resolution.
  • Solution: Check and correct the parameter values to ensure they fall within the valid range specified by the node's constraints.

FeatheredMask Related Nodes

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