GALIAIS-Nodes Danbooru Style Select
Seven Slots, Per-Field Toggles, and Random Styles Without the Fuss
- DB
- AI服务商
- 提示词
- 元信息JSON
Style is the layer of an anime prompt that people iterate on most and organize least. The Danbooru Style Select is GALIAIS-Nodes' attempt to fix that: it gives you seven named style slots - rendering style, medium, color, lighting, post-processing, design style, quality detail - each with its own on/off toggle, so you build one style node and reuse it across every character instead of hand-tweaking a wall of tags.
It's the biggest node in the pack, and honestly it's two nodes in one: a tidy manual style composer, and a randomization engine for generating variations. Start with the first half and graduate to the second.
The manual half - what a beginner actually sets
Seven fields (all Chinese labels, as with the whole pack):
- 渲染风格 (rendering style), 媒介 (medium), 色彩 (color), 光照 (lighting), 后期效果 (post-processing), 设计风格 (design style), 质量细节 (quality detail).
Each field has a matching 使用… (use this field) toggle right next to it, and there's a free 追加到提示词 (append to prompt) field for anything that doesn't fit a slot. The 插入位置 dropdown (append / prepend / only) decides whether this block goes at the end, the front, or replaces everything else. 去重 (dedupe, on by default) stops duplicate tags leaking through.
Outputs are two: 提示词 (the joined style block - wire this into your composer) and 元信息JSON (what the node assembled). That's genuinely all you need for day one.
The random half - where the power is
Flip 启用随机Tag on and the node can fill empty (or every) field from the dictionary, keeping manual and random selections separate per the pack's design. There's a 随机策略 (only fill empty fields vs. append to fields), 每字段随机数 (count per field, with per-field overrides), 随机种子 for reproducibility, plus NSFW and heat floors. It re-runs on seed change, so it's a variation machine: same characters, different style each run, deterministic when you want it to be.
Beyond that there's a full AI-assisted mode - Tag生成模式 with options like "AI协同选择" and "AI意图定向选择" that need an AI服务商 wired in and use AI意图方向 (a rough description of the direction you want) plus RAG modes. The tooltip is honest about the constraint: the AI only picks from the enabled fields' candidate tags, and it writes the direction as natural language. Useful, but it's the advanced tier - get the manual and random layers working first.
Installing it
It's part of the GALIAIS-Nodes pack:
cd ComfyUI/custom_nodes
git clone https://github.com/GALIAIS/GALIAIS-Nodes.git
Restart ComfyUI, or grab it via ComfyUI Manager ("GALIAIS-Nodes"). No Python dependencies. It needs a dictionary (DB路径 or wired DB from the Danbooru DB Loader) for random fills, and an AI服务商 only if you're using the AI modes. The fields' tooltips on per-field random counts are worth reading in the UI - the -1 means "inherit the per-field default," 0 means "no random for this field."
The gotcha
The trap here is scope creep. With seven fields, eight toggles, random counts, AI modes and RAG knobs, it's easy to configure yourself into confusion. Keep it boring at first: fill the slots, leave random and AI off. Add randomization per field when you trust the output, and only then wire an AI provider. Style consistency is the point - if the node makes every run wildly different, you've turned on more layers than you meant to.
Inputs (49)
| Name | Type | Default | Description |
|---|---|---|---|
| 渲染风格 | STRING | — | |
| 媒介 | STRING | — | |
| 色彩 | STRING | — | |
| 光照 | STRING | — | |
| 后期效果 | STRING | — | |
| 设计风格 | STRING | — | |
| 质量细节 | STRING | — | |
| 追加到提示词 | STRING | — | |
| 插入位置 | COMBO | append | 3 options: append, prepend, only |
| 去重 | BOOLEAN | true | — |
| 使用渲染风格 | BOOLEAN | true | — |
| 使用媒介 | BOOLEAN | true | — |
| 使用色彩 | BOOLEAN | true | — |
| 使用光照 | BOOLEAN | true | — |
| 使用后期效果 | BOOLEAN | true | — |
| 使用设计风格 | BOOLEAN | true | — |
| 使用质量细节 | BOOLEAN | true | — |
| 使用追加到提示词 | BOOLEAN | true | — |
| 启用随机Tag | BOOLEAN | false | — |
| Tag生成模式 | COMBO | 规则随机 | 5 options: 规则随机, AI协同选择, AI协同选择+规则兜底, AI意图定向选择, AI意图定向选择+规则兜底 |
| AI自由度 | FLOAT | 0.350–1 | — |
| AI意图方向 | STRING | 粗略描述你想要的风格方向;AI只会从当前启用字段的候选tag中选择,并把方向扩写成自然语言。 | |
| AI扩写强度 | COMBO | 标准 | 3 options: 精简, 标准, 完整 |
| AI是否写入补充 | COMBO | 只放元信息 | 3 options: 只放元信息, 写入本节点补充, 关闭 |
| AI RAG模式 | COMBO | 关闭 | 4 options: 关闭, 轻量语义, 示例增强, 混合增强 |
| RAG候选数 | INT | 120–200 | — |
| RAG示例数 | INT | 30–20 | — |
| 随机策略 | COMBO | 只补空字段 | 2 options: 只补空字段, 追加到字段 |
| 每字段随机数 | INT | 1 | — |
| 随机数渲染风格 | INT | -1 | -1=沿用每字段随机数,0=关闭本字段随机,正数=该字段最多随机数量;AI协同会按合理性少选 |
| 随机数媒介 | INT | -1 | -1=沿用每字段随机数,0=关闭本字段随机,正数=该字段最多随机数量;AI协同会按合理性少选 |
| 随机数色彩 | INT | -1 | -1=沿用每字段随机数,0=关闭本字段随机,正数=该字段最多随机数量;AI协同会按合理性少选 |
| 随机数光照 | INT | -1 | -1=沿用每字段随机数,0=关闭本字段随机,正数=该字段最多随机数量;AI协同会按合理性少选 |
| 随机数后期效果 | INT | -1 | -1=沿用每字段随机数,0=关闭本字段随机,正数=该字段最多随机数量;AI协同会按合理性少选 |
| 随机数设计风格 | INT | -1 | -1=沿用每字段随机数,0=关闭本字段随机,正数=该字段最多随机数量;AI协同会按合理性少选 |
| 随机数质量细节 | INT | -1 | -1=沿用每字段随机数,0=关闭本字段随机,正数=该字段最多随机数量;AI协同会按合理性少选 |
| 随机种子 | INT | 00–4294967295 | — |
| 随机允许NSFW | BOOLEAN | false | — |
| 随机最低热度 | INT | 00–100000000 | — |
| 最低热度渲染风格 | INT | -1-1–100000000 | -1=沿用随机最低热度,0=本字段不限热度,正数=该字段最低热度 |
| 最低热度媒介 | INT | -1-1–100000000 | -1=沿用随机最低热度,0=本字段不限热度,正数=该字段最低热度 |
| 最低热度色彩 | INT | -1-1–100000000 | -1=沿用随机最低热度,0=本字段不限热度,正数=该字段最低热度 |
| 最低热度光照 | INT | -1-1–100000000 | -1=沿用随机最低热度,0=本字段不限热度,正数=该字段最低热度 |
| 最低热度后期效果 | INT | -1-1–100000000 | -1=沿用随机最低热度,0=本字段不限热度,正数=该字段最低热度 |
| 最低热度设计风格 | INT | -1-1–100000000 | -1=沿用随机最低热度,0=本字段不限热度,正数=该字段最低热度 |
| 最低热度质量细节 | INT | -1-1–100000000 | -1=沿用随机最低热度,0=本字段不限热度,正数=该字段最低热度 |
| DBopt | GALIAIS_NODES_DANBOORU_DB | — | |
| AI服务商opt | GALIAIS_NODES_AI_PROVIDER | — | |
| 上游上下文opt | STRING | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| 提示词 | STRING | — |
| 元信息JSON | STRING | — |