Visit ComfyUI Online for ready-to-use ComfyUI environment
Streamline processing of multiple mask images, resize, crop, and concatenate into a single batch for AI artists.
The Mask Batch Manager (SuperBeasts.AI) is a powerful tool designed to streamline the process of managing and processing multiple mask images in a batch. This node is particularly useful for AI artists who need to handle several mask images simultaneously, ensuring they are resized and cropped to a specified width and height. The primary function of this node is to take multiple mask inputs, process them according to the specified dimensions, and concatenate them into a single batch. This helps in maintaining consistency across all mask images and simplifies the workflow by automating the resizing and cropping tasks. The node also allows for reordering of masks based on a specified sequence, providing flexibility in how the masks are processed and combined.
The width
parameter specifies the desired width to which all input masks will be resized. This ensures that all masks in the batch have a uniform width, which is crucial for consistent processing. The default value is 512, and it must be a positive integer. Adjusting this value will directly impact the aspect ratio and the final appearance of the masks.
The height
parameter defines the target height for the resized masks. Similar to the width
parameter, this ensures uniformity in the height of all masks in the batch. The default value is 768, and it must be a positive integer. This parameter is essential for maintaining the aspect ratio and ensuring that the masks fit the desired dimensions.
The new_order
parameter is an optional string that allows you to specify a new sequence for the masks. This string should contain comma-separated indices indicating the desired order of the masks. For example, "3,1,2" would reorder the masks such that the third mask is first, followed by the first and second masks. If left empty, the masks will be processed in their original order. This parameter provides flexibility in how the masks are combined and processed.
These optional parameters represent the individual mask inputs that you want to process. You can provide up to 12 masks, and each mask will be resized and cropped according to the specified width
and height
. If fewer than 12 masks are provided, the node will process only the available masks. These parameters allow you to input multiple masks for batch processing, making it easier to handle large sets of mask images.
The MASK
output parameter is the final concatenated batch of processed masks. This output contains all the input masks resized, cropped, and combined into a single tensor. The resulting batch will have a consistent width and height as specified by the input parameters, ensuring uniformity across all masks. This output is essential for further processing or analysis, as it provides a standardized set of mask images ready for use.
width
and height
parameters are set to the desired dimensions before processing the masks to maintain consistency.new_order
parameter to reorder the masks if a specific sequence is required for your project.new_order
parameter exceed the number of provided masks.new_order
string to ensure that all indices are within the range of the provided masks. Adjust the indices to match the available masks.© Copyright 2024 RunComfy. All Rights Reserved.