Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance mask quality with smoothing effect for polished AI art masks.
The SmoothMask node is designed to enhance the quality of mask images by applying a smoothing effect. This node is particularly useful for AI artists who need to refine the edges of their masks, ensuring a more polished and professional look. By converting the mask to a grayscale image and applying a Gaussian blur, the SmoothMask node softens the transitions between masked and unmasked areas, reducing harsh edges and creating a more natural blend. This can be especially beneficial in scenarios where masks are used for compositing or blending different image elements, as it helps to achieve a seamless integration.
The mask
parameter is the input mask image that you want to smooth. This should be provided in a format that the node can process, typically as a tensor. The mask defines the areas of the image that are to be affected by the smoothing operation.
The smoothness
parameter controls the intensity of the smoothing effect applied to the mask. It is an integer value with a default of 1, a minimum of 0, and a maximum of 150. The higher the value, the more pronounced the smoothing effect will be. Adjusting this parameter allows you to fine-tune the level of blur to achieve the desired softness in the mask's edges.
The output mask
is the smoothed version of the input mask. This output retains the same dimensions as the input but with softened edges, making it more suitable for high-quality compositing and blending tasks. The smoothing effect helps to create a more natural transition between masked and unmasked areas.
smoothness
value and gradually increase it until you reach the desired level of softness.smoothness
values for masks with very jagged or harsh edges to create a more natural blend.smoothness
parameter is set to a value outside the allowed range (0 to 150).smoothness
value to be within the specified range. Use the slider to select a value between 0 and 150.© Copyright 2024 RunComfy. All Rights Reserved.