Visit ComfyUI Online for ready-to-use ComfyUI environment
Extracts mask dimensions and batch size without altering the mask, aiding AI artists in workflow optimization.
The GetMaskSizeAndCount node is designed to provide essential information about a given mask, including its width, height, and batch size, while passing the mask through unchanged. This node is particularly useful for AI artists who need to understand the dimensions and batch size of their masks for further processing or analysis. By extracting and returning these key attributes, the node helps streamline workflows and ensures that subsequent operations can be tailored to the specific characteristics of the mask.
The mask
parameter is the primary input for this node. It represents the mask or batch of masks whose dimensions and batch size you want to retrieve. The mask should be provided in a format that the node can process, typically as a tensor or array. This parameter is crucial as it directly influences the output values of width, height, and count.
The mask
output is the same mask that was input into the node. It is passed through unchanged, allowing you to use it in subsequent nodes or processes without any modifications.
The width
output represents the width of the mask. This value is extracted from the mask's shape and indicates the number of columns in the mask.
The height
output represents the height of the mask. This value is extracted from the mask's shape and indicates the number of rows in the mask.
The count
output represents the batch size of the mask. This value is extracted from the mask's shape and indicates the number of individual masks in the batch.
© Copyright 2024 RunComfy. All Rights Reserved.