GALIAIS-Nodes Tag Blacklist
Keep the tags you hate out of the entire workflow
- Tag黑名单
- 规范化Tags
- 元信息JSON
- 数量
Every anime-tag workflow has tags you're sick of seeing: bangs when you want swept_bangs, solo when you want a crowd, that one pose tag that never renders right. The Tag Blacklist is the pack's way of codifying "not these, ever." You type the tags you want gone, and the node hands you a typed blacklist object plus the normalized list, ready to feed into the pack's DB Loader so tag selectors skip your banned entries.
The inputs
Only two, and both obvious:
黑名单Tags- the blacklist, multiline. This field gets the pack's dedicated Danbooru blacklist widget in the UI, so you can paste tags and manage them visually.启用- on by default. Flip it off and the node returns an empty blacklist, which is a neat way to A/B test "with vs without the filters" without deleting your list.
What comes out
Tag黑名单- the typedGALIAIS_NODES_TAG_BLACKLISTobject. This is the output that matters: wire it into the Danbooru DB Loader'sTag黑名单input and the whole downstream dictionary/search path starts filtering those tags.规范化Tags- the tags after normalization, comma-joined.元信息JSON- a peek at the payload.数量- how many tags survived normalization.
The part people miss
This node isn't a free-floating filter - it's a normalization station. Every tag gets lowercased, spaces become underscores, (parenthetical) suffixes are stripped, and duplicate or | option variants collapse. That's a feature: long Hair and long_hair are the same tag by the time it leaves, so the blacklist actually matches what's in the dictionary. The 规范化Tags output is your receipt - if a tag shows up mangled there, fix it before you ship the list downstream, or you'll silently filter nothing.
How it fits
It's a config node, so it earns its place at the top of the graph. Build one blacklist node, wire it into the DB Loader, and every tag selector, random pool, and DB-backed node downstream inherits your constraints without you pasting exclusions into each one. One list, one place, whole workflow filtered. It's the unglamorous node that saves you from repeating yourself.
Installing
cd ComfyUI/custom_nodes
git clone https://github.com/GALIAIS/GALIAIS-Nodes.git
Restart ComfyUI. No dependencies. The blacklist only bites when you actually wire it into the DB Loader and have a DB loaded - on its own it's just a well-formatted string. And yes, the labels are Chinese: 黑名单Tags is "blacklist tags", 启用 is "enabled". Takes one run to get used to.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| 黑名单Tags | STRING | — | |
| 启用 | BOOLEAN | true | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| Tag黑名单 | GALIAIS_NODES_TAG_BLACKLIST | — |
| 规范化Tags | STRING | — |
| 元信息JSON | STRING | — |
| 数量 | INT | — |