Visit ComfyUI Online for ready-to-use ComfyUI environment
ResizeMask node standardizes mask dimensions, maintains aspect ratio for uniform sizing in processing tasks.
The ResizeMask node is designed to adjust the dimensions of a given mask or a batch of masks to a specified width and height. This node is particularly useful when you need to standardize the size of masks for further processing or analysis. One of the key features of this node is its ability to maintain the aspect ratio of the original mask if desired, ensuring that the resized mask does not become distorted. By leveraging this node, you can ensure that your masks are consistently sized, which is crucial for tasks that require uniform input dimensions.
The mask parameter represents the input mask or a batch of masks that you want to resize. This is the primary input on which the resizing operation will be performed.
The width parameter specifies the desired width of the resized mask. It accepts integer values with a default of 512, a minimum of 0, and a maximum defined by MAX_RESOLUTION
. The step size for this parameter is 8. If the keep_proportions parameter is set to True, this value will be adjusted to maintain the aspect ratio of the original mask.
The height parameter specifies the desired height of the resized mask. Similar to the width parameter, it accepts integer values with a default of 512, a minimum of 0, and a maximum defined by MAX_RESOLUTION
. The step size for this parameter is 8. If the keep_proportions parameter is set to True, this value will be adjusted to maintain the aspect ratio of the original mask.
The keep_proportions parameter is a boolean that determines whether the aspect ratio of the original mask should be preserved during resizing. The default value is False. When set to True, the node will adjust the width and height to ensure that the resized mask maintains the same proportions as the original.
The mask output is the resized version of the input mask. This output will have the dimensions specified by the width and height parameters, or adjusted dimensions if keep_proportions is set to True.
The width output represents the actual width of the resized mask. This value may differ from the input width if keep_proportions is set to True.
The height output represents the actual height of the resized mask. This value may differ from the input height if keep_proportions is set to True.
MAX_RESOLUTION
.MAX_RESOLUTION
.© Copyright 2024 RunComfy. All Rights Reserved.