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 Smart Search

ComfyUI Node: Danbooru Smart Search

Class Name

DanbooruTagSearch

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 Smart Search Description

Semantic search tool for Danbooru tags based on natural language input, streamlining art asset organization for AI artists.

The DanbooruTagSearch node is a powerful semantic search tool designed to enhance your creative workflow by allowing you to input a natural language description and receive a pool of matched Danbooru tags. This node leverages advanced semantic search capabilities to interpret your input text and identify relevant tags from the Danbooru database, which is widely used for categorizing and searching anime-style artwork. By providing a bridge between natural language and structured tag data, DanbooruTagSearch helps streamline the process of finding and organizing art assets, making it an invaluable tool for AI artists looking to efficiently manage and utilize large collections of visual content.

Danbooru Smart Search Input Parameters:

text

This parameter represents the natural language description you provide to the node. It is the core input that the node uses to perform the semantic search and generate a list of relevant Danbooru tags. The quality and specificity of the description can significantly impact the relevance of the tags returned.

model_path

The model_path parameter specifies the file path to the semantic model used for tag searching. If provided, it sets the environment variable DANBOORU_MODEL_PATH to the specified path, ensuring the node uses the correct model for processing. This parameter is crucial for ensuring that the node operates with the intended model configuration.

top_k

This parameter determines the number of top results to consider during the search process. It influences the breadth of the search results, with higher values potentially returning more diverse tags. Adjusting this parameter allows you to control the granularity of the search output.

limit

The limit parameter sets the maximum number of tags to return from the search. It acts as a cap on the number of results, helping to manage the volume of data processed and returned by the node. This is useful for focusing on the most relevant tags and avoiding information overload.

popularity_weight

This parameter adjusts the influence of tag popularity on the search results. A higher weight increases the likelihood of popular tags being included in the results, which can be beneficial for finding widely recognized tags. Balancing this parameter helps tailor the search to your specific needs, whether you prioritize popularity or specificity.

use_segmentation

The use_segmentation parameter determines whether the input text should be segmented into smaller parts for more detailed analysis. Enabling this option can enhance the precision of the search by allowing the node to consider different segments of the input separately, potentially leading to more accurate tag matches.

show_nsfw

This boolean parameter controls whether NSFW (Not Safe For Work) tags are included in the search results. Setting it to true allows NSFW tags to be returned, while false restricts the results to safe-for-work content. This parameter is essential for maintaining content appropriateness based on your project requirements.

Danbooru Smart Search Output Parameters:

response

The response output contains the full search result object, which includes detailed information about the search process and results. This object is useful for debugging and understanding the internal workings of the node.

tags_sfw or tags_all

Depending on the show_nsfw parameter, this output provides either the safe-for-work tags (tags_sfw) or all tags including NSFW (tags_all). This output is the primary result of the node, offering a curated list of tags that match your input description.

debug_info

The debug_info output is a string that provides a detailed breakdown of the search process, including segmentation keywords, sentence segments, and a formatted list of tags with their scores and sources. This information is valuable for understanding how the node arrived at its results and for fine-tuning your input parameters.

Danbooru Smart Search Usage Tips:

  • Use clear and specific natural language descriptions to improve the relevance of the tags returned by the node.
  • Adjust the top_k and limit parameters to balance between the breadth and focus of the search results, depending on your project's needs.
  • Consider enabling use_segmentation for complex descriptions to enhance the precision of the search results.
  • Set the popularity_weight parameter according to whether you prioritize popular tags or more niche, specific tags.

Danbooru Smart Search Common Errors and Solutions:

Model path not found

  • Explanation: This error occurs when the specified model_path does not point to a valid file.
  • Solution: Ensure that the model_path is correctly set to the location of the semantic model file on your system.

Invalid input text

  • Explanation: This error arises when the input text is empty or not properly formatted.
  • Solution: Provide a valid natural language description as input to the node.

NSFW content not allowed

  • Explanation: This error occurs if NSFW tags are returned when show_nsfw is set to false.
  • Solution: Set show_nsfw to true if NSFW content is acceptable, or refine your input to avoid NSFW tags.

Danbooru Smart Search 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 Smart Search