Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate uniform masks with specified values for image processing tasks, controlling transparency and intensity effectively.
The SolidMask node is designed to generate a uniform mask with a specified value across its entire area. This node is particularly useful when you need a consistent mask for various image processing tasks, such as masking out certain regions or applying uniform effects. By creating a mask with a single value, you can easily control the transparency or intensity of the effect applied to the masked area. The SolidMask node is straightforward to use and provides a reliable way to generate masks with precise dimensions and values, making it an essential tool for AI artists working with image manipulation and compositing.
The value
parameter determines the intensity of the mask, ranging from 0.0 to 1.0. A value of 0.0 represents complete transparency, while a value of 1.0 represents full opacity. The default value is set to 1.0, ensuring the mask is fully opaque unless specified otherwise. Adjusting this parameter allows you to control the strength of the mask's effect on the image.
The width
parameter specifies the width of the mask in pixels. It accepts integer values with a minimum of 1 and a maximum defined by MAX_RESOLUTION
. The default width is set to 512 pixels. This parameter allows you to define the horizontal size of the mask, ensuring it fits the dimensions of the target image or region.
The height
parameter defines the height of the mask in pixels. Similar to the width parameter, it accepts integer values ranging from 1 to MAX_RESOLUTION
, with a default value of 512 pixels. This parameter controls the vertical size of the mask, allowing you to match the mask's dimensions to the specific requirements of your project.
The output of the SolidMask node is a MASK
, which is a tensor filled with the specified value across the defined width and height. This mask can be used in various image processing tasks to uniformly apply effects or isolate regions within an image. The consistent value across the mask ensures predictable and controlled results when used in conjunction with other nodes or image manipulation techniques.
value
parameter to control the opacity of the mask, setting it to 1.0 for full opacity or lower values for partial transparency.width
and height
parameters to match the dimensions of the image or region you want to mask, ensuring the mask fits perfectly.width
or height
parameters are set to values less than 1. - Solution: Ensure that both the width
and height
parameters are set to positive integers, with a minimum value of 1.value
parameter is set outside the range of 0.0 to 1.0.value
parameter to be within the valid range, ensuring it is between 0.0 and 1.0.width
or height
parameters exceed the maximum allowed resolution.width
and height
parameters do not exceed the MAX_RESOLUTION
limit and adjust them accordingly.© Copyright 2024 RunComfy. All Rights Reserved.