Visit ComfyUI Online for ready-to-use ComfyUI environment
Combine and normalize tags from different sources, removing duplicates and offering underscore control for standardized tagging.
The TagMerger node is designed to combine two sets of tags into a single, unified list. This node is particularly useful for AI artists who need to manage and merge tags from different sources, ensuring that the resulting list is clean, consistent, and free of duplicates. The TagMerger node processes the input tags by normalizing them (e.g., converting to lowercase, replacing spaces with underscores) and then merging them while removing any duplicates. Additionally, it offers an option to control whether underscores are used in the final output. This functionality is essential for maintaining a standardized tagging system, which can significantly enhance the organization and retrieval of tagged content.
This parameter accepts a string of tags separated by commas, periods, or new lines. It represents the first set of tags to be merged. Each tag will be normalized by converting it to lowercase and replacing spaces with underscores. The default value is an empty string.
Similar to tags1
, this parameter accepts a string of tags separated by commas, periods, or new lines. It represents the second set of tags to be merged with the first set. Each tag will undergo the same normalization process. The default value is an empty string.
This boolean parameter determines whether underscores should be used in the final merged tags. If set to True
, spaces in the tags will be replaced with underscores. If set to False
, underscores will be replaced with spaces. The default value is True
.
The output parameter result
is a string that contains the merged and normalized list of tags, separated by commas. This output is the result of combining tags1
and tags2
, removing duplicates, and applying the specified underscore setting. The resulting string is ready for use in tagging systems or further processing.
under_score
parameter to control the appearance of your tags based on your preference or the requirements of your tagging system.tags1
and tags2
are empty, the result will be an empty string.tags1
or tags2
) contains valid tags.under_score
parameter is not set correctly, the tags may not appear as expected.under_score
parameter setting to ensure it matches your desired output format (True for underscores, False for spaces).© Copyright 2024 RunComfy. All Rights Reserved.