Visit ComfyUI Online for ready-to-use ComfyUI environment
Filter segments based on labels to isolate specific types within AI art projects.
The ImpactSEGSLabelFilter node is designed to filter segments (SEGS) based on specified labels, allowing you to isolate and work with specific types of segments within your AI art projects. This node is particularly useful when you need to focus on certain elements within a segmented image, such as filtering out unwanted segments or highlighting specific areas of interest. By providing a list of labels, the node will return only those segments that match the given labels, making it easier to manage and manipulate your segmented data. This functionality is essential for tasks that require precise control over the segments being processed, ensuring that only relevant segments are included in subsequent operations.
This parameter represents the segments (SEGS) that you want to filter. It is a required input and should be provided in the SEGS format. The segments are the primary data that will be processed by the node to filter out the desired labels.
This parameter allows you to select a preset from a predefined list of segment types. The available options include all
and other detection labels defined in the system. The preset helps in quickly applying a common filter without manually specifying each label. The default value is all
.
This parameter is a string that contains the list of labels you want to filter, separated by commas. It allows you to specify the exact types of segments you are interested in. For example, you might list labels like car, person, tree
to filter out only those segments. This input is essential for customizing the filter to match your specific needs.
The output parameter is the filtered segments (SEGS) that match the specified labels. This output retains the original SEGS format but includes only those segments that meet the filtering criteria. It allows you to proceed with further processing or analysis on a refined set of segments, ensuring that only relevant data is used in subsequent steps.
preset
parameter with the all
option to include all available labels.labels
parameter, ensure they are separated by commas and match the exact label names used in your segmentation data.{len(labels)}
) != length of segs ({len(segs[1])}
)labels
parameter matches the number of segments in your SEGS data. Adjust the labels list accordingly to resolve this mismatch.labels
parameter.labels
parameter to ensure they are correct and match the labels used in your segmentation data. Adjust the labels as needed to include valid segment types.© Copyright 2024 RunComfy. All Rights Reserved.