Visit ComfyUI Online for ready-to-use ComfyUI environment
Filter images based on mask pixel value average of at least 0.5 to optimize workflow and focus on relevant data.
The Prune By Mask node is designed to filter out images in a batch that do not meet a specific masking criterion. Specifically, it evaluates the average pixel value of the associated mask for each image and retains only those images whose masks have an average pixel value of at least 0.5. This functionality is particularly useful in scenarios where you need to ensure that only images with significant masked regions are processed further, thereby optimizing the workflow and focusing on relevant data. By using this node, you can streamline your image processing tasks and ensure that only the most pertinent images are included in subsequent operations.
This parameter represents the batch of images that you want to filter. Each image in the batch will be evaluated based on its associated mask to determine if it meets the pruning criteria. The images should be in a format compatible with the node's processing capabilities.
This parameter represents the batch of masks corresponding to the images. Each mask is used to evaluate the average pixel value, and only those images whose masks have an average pixel value of at least 0.5 will be retained. The masks should be in a format compatible with the node's processing capabilities.
The output is a batch of images that have passed the pruning criteria. These are the images whose associated masks have an average pixel value of at least 0.5. This filtered batch can then be used for further processing or analysis.
© Copyright 2024 RunComfy. All Rights Reserved.