Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-DanbooruSearcher > Danbooru Related Tags

ComfyUI Node: Danbooru Related Tags

Class Name

DanbooruRelated

Category
utils/prompt
Author
SuzumiyaAkizuki (Account age: 1891days)
Extension
ComfyUI-DanbooruSearcher
Latest Updated
2026-05-30
Github Stars
0.05K

How to Install ComfyUI-DanbooruSearcher

Install this extension via the ComfyUI Manager by searching for ComfyUI-DanbooruSearcher
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-DanbooruSearcher 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

Danbooru Related Tags Description

Enhances creative process by providing co-occurrence tag recommendations for expanding tag pool in projects.

The DanbooruRelated node is designed to enhance your creative process by providing co-occurrence recommendations for tags. This node takes the top tag from each segment of a search result and uses it as a seed to query a co-occurrence table. The purpose is to identify related tags that frequently appear together with the seed tags, thereby expanding the pool of tags available for further processing. This expanded pool can then be used for downstream tasks, such as filtering by a language model (LLM). By leveraging co-occurrence data, DanbooruRelated helps you discover new and relevant tags that you might not have considered, enriching your creative projects with a broader range of ideas and associations.

search_result

The search_result parameter is a required input that represents the output from a previous DanbooruTagSearch operation. It serves as the foundation for identifying related tags, as it contains the initial set of tags from which the top tags per segment are selected as seeds for co-occurrence analysis.

limit

The limit parameter controls the maximum number of co-occurrence recommendations that the node will generate. It allows you to specify how many related tags you want to retrieve, with a default value of 50. The minimum value is 10, and the maximum is 200, adjustable in steps of 10. This parameter helps manage the breadth of the tag pool expansion, balancing between comprehensiveness and specificity.

show_nsfw

The show_nsfw parameter is a boolean option that determines whether or not to include tags that are considered not safe for work (NSFW) in the recommendations. By default, this is set to True, allowing NSFW tags to be part of the results. This parameter gives you control over the content sensitivity of the tags being recommended, ensuring that the output aligns with your project's requirements.

The related_tags output provides a string of tags that are related to the initial search result. These tags are derived from the co-occurrence analysis and represent additional concepts or themes that frequently appear with the seed tags. This output is valuable for expanding your creative palette with new and potentially inspiring tag combinations.

combined_tags

The combined_tags output is a string that merges the original search result tags with the newly identified related tags. This comprehensive list offers a broader set of tags for further exploration or filtering, enhancing the richness and diversity of your creative work.

debug_info

The debug_info output is a string containing detailed information about the co-occurrence analysis process. It includes data such as tag scores, sources, and other metrics that can help you understand how the related tags were determined. This output is particularly useful for troubleshooting or refining the tag recommendation process.

  • To maximize the effectiveness of the DanbooruRelated node, start with a well-defined search result from the DanbooruTagSearch node, as this will provide a strong foundation for identifying meaningful related tags.
  • Adjust the limit parameter based on your project's needs; a higher limit can provide more diverse tag suggestions, while a lower limit can help maintain focus on the most relevant tags.
  • Use the show_nsfw parameter to control the inclusion of sensitive content, ensuring that the tag recommendations align with your project's content guidelines.
  • Explanation: This error occurs when the node is unable to find any tags that co-occur with the seed tags from the search result.
  • Solution: Ensure that the search_result input is correctly provided and contains valid tags. You may also try increasing the limit parameter to allow for a broader search.

Invalid search_result input

  • Explanation: This error indicates that the search_result input is not in the expected format or is missing.
  • Solution: Verify that the search_result is correctly generated by the DanbooruTagSearch node and is properly passed to the DanbooruRelated node.

Danbooru Related Tags Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-DanbooruSearcher
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.

Danbooru Related Tags