ComfyUI > Nodes > comfyui_tag_filter

ComfyUI Extension: comfyui_tag_filter

Repo Name

comfyui_tag_filter

Author
sugarkwork (Account age: 1516 days)
Nodes
View all nodes(25)
Latest Updated
2026-03-21
Github Stars
0.08K

How to Install comfyui_tag_filter

Install this extension via the ComfyUI Manager by searching for comfyui_tag_filter
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfyui_tag_filter in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

comfyui_tag_filter Description

ComfyUI Extension comfyui_tag_filter enhances user experience by allowing efficient filtering of tags within the ComfyUI interface. It streamlines navigation and organization by enabling users to easily sort and manage tags.

comfyui_tag_filter Introduction

The comfyui_tag_filter is a versatile extension designed to enhance your experience with AI-generated art by organizing and filtering tags into specific categories. This extension is particularly useful for AI artists who work with tag-based systems like WD14Tagger. By categorizing tags, it allows you to filter, remove, replace, or enhance tags based on your creative needs. Whether you're looking to refine the details of an image or ensure certain elements are included or excluded, comfyui_tag_filter provides a suite of tools to help you achieve your artistic vision with precision and ease.

How comfyui_tag_filter Works

At its core, comfyui_tag_filter operates by sorting tags into predefined categories, such as expressions, colors, or clothing. This categorization allows you to apply filters that include or exclude specific categories, tailoring the output to your preferences. For example, if you want to focus on facial expressions in your artwork, you can filter to include only tags related to expressions. Conversely, if you wish to exclude color tags from a clothing-focused piece, you can do so with ease. The extension uses a JSON file, tag_category_v2.json, to determine the category of each tag, which can be manually adjusted for accuracy.

comfyui_tag_filter Features

TagFilter

Extracts tags belonging to specified categories. For instance, tags like "smile" or "grin" fall under the "expression" category. You can specify categories to include or exclude, allowing for precise control over the tags used in your project.

TagRemover

Allows you to remove specific tags from your prompt. This feature is useful when you want to eliminate certain elements, such as removing all color-related tags while retaining others.

TagReplace

Enables the replacement of tags within the same category. For example, you can replace "long hair" with "twintails" in your prompt. The degree of similarity required for replacement can be adjusted, providing flexibility in how closely tags must match.

TagSwitcher

This feature allows you to switch between images based on the presence of specific tags. For example, if a tag like "cat_ears" is detected, you can choose to output an image with those elements removed.

TagMerger

Simply merges tags, ignoring duplicates. This is useful for consolidating tags without redundancy.

TagSelector

Selects or excludes tags based on categories. It includes a whitelist option to allow only known tags, removing any that are not listed in tag_category.json.

TagEnhance / TagCategoryEnhance

Adjusts the strength of specific tags or entire categories, allowing for emphasis or de-emphasis of certain elements in your artwork.

TagIf

Outputs specific strings based on the presence of certain tags, enabling conditional logic in your tag processing.

TagComparator

Compares two sets of tags, identifying unique and common tags between them.

TagWildcardFilter

Filters tags using wildcards, allowing for flexible matching patterns.

TagCategory

Outputs the category names of input tags, providing insight into how tags are classified.

TagRandomCategory

Randomly selects a specified number of tags from a given category, adding an element of surprise to your creative process.

TagDetector

Automatically detects tag-like strings within arbitrary text, with adjustable settings for tag complexity.

TagColorChanger

Randomly changes the color of input tags, offering experimental color variations for your characters.

Troubleshooting comfyui_tag_filter

If you encounter issues while using comfyui_tag_filter, here are some common problems and solutions:

  • Tags Not Categorizing Correctly: Check the tag_category_v2.json file to ensure tags are correctly categorized. You may need to manually adjust entries for accuracy.
  • Unexpected Tag Replacements: If tags are not replacing as expected, try adjusting the similarity threshold to a lower value.
  • Image Switching Not Working: Ensure that the correct tags are specified in the tag1 or tag2 fields and that the images are properly set in default_image and image1.

Learn More about comfyui_tag_filter

To further explore the capabilities of comfyui_tag_filter, consider visiting community forums or tutorials where AI artists share their experiences and tips. Engaging with these resources can provide valuable insights and inspiration for your projects. Additionally, reviewing the JSON files used by the extension can offer a deeper understanding of how tags are categorized and managed.

comfyui_tag_filter Related Nodes

RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.