ComfyUI > Nodes > ComfyUI > FeatherMask

ComfyUI Node: FeatherMask

Class Name

FeatherMask

Category
mask
Author
ComfyAnonymous (Account age: 598days)
Extension
ComfyUI
Latest Updated
2024-08-12
Github Stars
45.85K

How to Install ComfyUI

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

FeatherMask Description

Softens mask edges for smooth transitions, blending elements seamlessly in image processing and compositing tasks.

FeatherMask:

The FeatherMask node is designed to soften the edges of a given mask, creating a smooth transition between the masked and unmasked areas. This process, known as feathering, is particularly useful in image processing and compositing tasks where you want to blend elements seamlessly. By adjusting the feathering parameters, you can control the extent and direction of the feathering effect, ensuring that the mask integrates naturally with the surrounding image. This node is essential for achieving professional-quality results in your AI-generated artwork, as it helps to eliminate harsh edges and create more visually appealing compositions.

FeatherMask Input Parameters:

mask

The mask parameter is the input mask that you want to apply the feathering effect to. This mask defines the areas of the image that are affected by the feathering process. The mask should be provided in a format that the node can interpret, typically as a binary or grayscale image where different values represent different levels of masking.

left

The left parameter specifies the number of pixels to feather from the left edge of the mask. The feathering effect will gradually decrease from the edge towards the center of the mask. The minimum value is 0, the maximum value is determined by the MAX_RESOLUTION, and the default value is 0.

top

The top parameter specifies the number of pixels to feather from the top edge of the mask. Similar to the left parameter, this controls the feathering effect from the top edge towards the center. The minimum value is 0, the maximum value is determined by the MAX_RESOLUTION, and the default value is 0.

The right parameter specifies the number of pixels to feather from the right edge of the mask. This parameter works in the same way as the left parameter but applies to the right edge. The minimum value is 0, the maximum value is determined by the MAX_RESOLUTION, and the default value is 0.

bottom

The bottom parameter specifies the number of pixels to feather from the bottom edge of the mask. This parameter works similarly to the top parameter but applies to the bottom edge. The minimum value is 0, the maximum value is determined by the MAX_RESOLUTION, and the default value is 0.

FeatherMask Output Parameters:

MASK

The output of the FeatherMask node is a modified mask with the feathering effect applied. This output mask will have softened edges based on the specified feathering parameters, creating a smooth transition between the masked and unmasked areas. The feathered mask can then be used in subsequent image processing or compositing tasks to achieve more natural and visually appealing results.

FeatherMask 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 achieve the desired smoothness.
  • Use the FeatherMask node in combination with other masking nodes to refine and enhance your masks, ensuring that your final composition looks seamless and professional.
  • Experiment with different feathering values on each edge to create custom feathering effects that suit your specific artistic needs.

FeatherMask Common Errors and Solutions:

"Mask shape mismatch"

  • Explanation: This error occurs when the input mask does not have the expected shape or dimensions.
  • Solution: Ensure that the input mask is correctly formatted and has the appropriate dimensions for the FeatherMask node to process.

"Feathering value out of range"

  • Explanation: This error occurs when the feathering values for left, top, right, or bottom exceed the maximum allowed resolution.
  • Solution: Check the feathering values and ensure they are within the allowed range, which is from 0 to MAX_RESOLUTION.

"Invalid mask input"

  • Explanation: This error occurs when the provided mask is not in a recognizable format or contains invalid data.
  • Solution: Verify that the input mask is a valid binary or grayscale image and that it conforms to the expected input format for the node.

FeatherMask Related Nodes

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