ComfyUI > Nodes > KJNodes for ComfyUI > Create Fade Mask Advanced

ComfyUI Node: Create Fade Mask Advanced

Class Name

CreateFadeMaskAdvanced

Category
KJNodes/masking/generate
Author
kijai (Account age: 2192days)
Extension
KJNodes for ComfyUI
Latest Updated
2024-06-25
Github Stars
0.35K

How to Install KJNodes for ComfyUI

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

Create Fade Mask Advanced Description

Generate advanced fade masks with smooth transitions and gradients for AI art projects, offering precise control and customization options.

Create Fade Mask Advanced:

CreateFadeMaskAdvanced is a sophisticated node designed to generate advanced fade masks for your AI art projects. This node allows you to create smooth transitions and gradients within your masks, providing greater control over the blending and fading effects. It is particularly useful for creating complex masking effects that require precise adjustments and fine-tuning. The node supports various parameters that let you customize the mask's behavior, such as expanding or contracting the mask, flipping the input, and applying decay factors. By leveraging these capabilities, you can achieve more dynamic and visually appealing results in your AI-generated artwork.

Create Fade Mask Advanced Input Parameters:

frames

This parameter specifies the number of frames to be processed. It determines the batch size for the mask generation, allowing you to create a sequence of masks over multiple frames. The minimum value is 0, the maximum value is 255, and the default value is 0.

width

This parameter defines the width of the mask in pixels. It controls the horizontal dimension of the generated mask. The minimum value is 16, the maximum value is 4096, and the default value is 256.

height

This parameter defines the height of the mask in pixels. It controls the vertical dimension of the generated mask. The minimum value is 16, the maximum value is 4096, and the default value is 256.

invert

This boolean parameter determines whether the mask should be inverted. When set to True, the mask values are flipped, creating an inverse effect. The default value is False.

interpolation

This parameter controls the interpolation method used for blending the mask values. It affects the smoothness and transition of the mask gradients. The specific options and default value are not provided in the context.

start_level

This parameter sets the initial intensity level of the mask. It defines the starting point for the gradient transition. The specific range and default value are not provided in the context.

midpoint_level

This parameter sets the intensity level of the mask at the midpoint of the transition. It allows you to control the gradient's behavior at the halfway point. The specific range and default value are not provided in the context.

end_level

This parameter sets the final intensity level of the mask. It defines the endpoint for the gradient transition. The specific range and default value are not provided in the context.

midpoint_frame

This parameter specifies the frame at which the midpoint level should be applied. It allows you to control the timing of the gradient transition within the sequence of frames. The specific range and default value are not provided in the context.

expand

This parameter controls the expansion or contraction of the mask. Positive values expand the mask, while negative values contract it. The specific range and default value are not provided in the context.

tapered_corners

This boolean parameter determines whether the corners of the mask should be tapered. When set to True, the corners are smoothed out, creating a more rounded effect. The default value is not provided in the context.

flip_input

This boolean parameter determines whether the input mask should be flipped. When set to True, the mask values are inverted before processing. The default value is not provided in the context.

blur_radius

This parameter sets the radius for blurring the mask. It controls the amount of blur applied to the mask edges, creating a smoother transition. The specific range and default value are not provided in the context.

incremental_expandrate

This parameter controls the rate at which the mask expands or contracts incrementally. It affects the gradual change in the mask size over the sequence of frames. The specific range and default value are not provided in the context.

lerp_alpha

This parameter sets the alpha value for linear interpolation between frames. It controls the blending of the current frame with the previous frame, creating a smoother transition. The specific range and default value are not provided in the context.

decay_factor

This parameter sets the decay factor for the mask values. It controls the gradual reduction in intensity over the sequence of frames, creating a fading effect. The specific range and default value are not provided in the context.

fill_holes

This boolean parameter determines whether holes in the mask should be filled. When set to True, any gaps or holes in the mask are filled, creating a more solid mask. The default value is False.

Create Fade Mask Advanced Output Parameters:

MASK

The output parameter is a tensor representing the generated fade mask. This mask can be used in various AI art applications to create smooth transitions and blending effects. The mask values range from 0 to 1, where 0 represents complete transparency and 1 represents full opacity.

Create Fade Mask Advanced Usage Tips:

  • Experiment with different values for the expand parameter to achieve the desired mask size and shape.
  • Use the lerp_alpha parameter to create smooth transitions between frames, especially when working with animations.
  • Adjust the decay_factor to control the fading effect over the sequence of frames, creating a more dynamic mask.
  • Enable the fill_holes parameter to ensure a solid mask without any gaps or holes.

Create Fade Mask Advanced Common Errors and Solutions:

"Invalid frame size"

  • Explanation: The specified width or height is outside the allowed range.
  • Solution: Ensure that the width and height values are within the range of 16 to 4096 pixels.

"Interpolation method not supported"

  • Explanation: The specified interpolation method is not recognized.
  • Solution: Verify that the interpolation method is correctly specified and supported by the node.

"Mask expansion failed"

  • Explanation: The mask expansion or contraction process encountered an error.
  • Solution: Check the expand and incremental_expandrate parameters for valid values and ensure they are within the acceptable range.

"Invalid alpha value"

  • Explanation: The lerp_alpha parameter is set to an invalid value.
  • Solution: Ensure that the lerp_alpha value is within the valid range and correctly specified.

"Decay factor out of range"

  • Explanation: The decay_factor parameter is set to an invalid value.
  • Solution: Verify that the decay_factor is within the acceptable range and correctly specified.

Create Fade Mask Advanced Related Nodes

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