ComfyUI Extension: ComfyUI-Dart

Authored by nkchocoai

Created

Updated

22 stars

Add nodes that generates danbooru tags by a/Dart(Danbooru Tags Transformer).

README

ComfyUI-Dart

Dart Preview
日本語版READMEはこちら

Installation

cd <ComfyUI directory>/custom_nodes
git clone https://github.com/nkchocoai/ComfyUI-Dart.git

Nodes

Dart Generate

  • Generate danbooru tags by Dart(Danbooru Tags Transformer).
  • See the following URL for the syntax of prompt.
    • https://huggingface.co/p1atdev/dart-v1-sft#prompt-guidde
  • Tags specified with remove_tags will not be output.

Dart Compose Prompt

  • Output input "prompt" of Dart Generate node (dart-v1).

Dart Compose Prompt V2

  • Output input "prompt" of Dart Generate node (dart-v2).

Dart Get Aspect Ratio

  • Output aspect ratio tags for dart-v2 prompts from width and height.

Dart Generation Config

  • Output input "config" of Dart Generate node.

Dart Ban Tags From Regex

  • Output input "ban tags" of Dart Generate node from regular expressions.
  • Search with multiple regular expressions by splitting into multiple lines.

Dart Generate(Advanced)

  • Output a token ID sequence of danbooru tags generated by Dart(Danbooru Tags Transformer).
  • See the following URL for the syntax of prompt.
    • https://huggingface.co/p1atdev/dart-v1-sft#prompt-guidde

Dart Decode

  • Decode the token ID sequence.

Dart Rearranged By Animagine

  • Rearrange the token ID sequence in the order of Animagine prompt.

Dart Decode By Splited Parts

  • Output decoded strings of the token ID sequence split by part.

Dart Remove Tag Token

  • Remove the specified tag from the token ID sequence.