Extensions/ComfyUI-Danbooru-Gallery
ComfyUI Extension

ComfyUI-Danbooru-Gallery

A danbooru gallery for ComfyUI

By Aaalice233·Created 11 months ago·Updated 18 days ago· 224
Aaalice233/ComfyUI-Danbooru-Gallery
Nodes24
On cloudLocal install
Categorydanbooru, utils/Resolution Master
Stars224
Updated18 days ago

Nodes (24)

角色特征交换 (Character Feature Swap)

Transplant one character's hair, eyes, and body shape onto a different prompt

danbooru
D站画廊 (Danbooru Gallery)

Browse Danbooru from inside ComfyUI, pull the image and its tags straight into your graph

danbooru
枚举切换 (Enum Switch)

Route the graph based on a dropdown value from your control panel

danbooru
从Krita获取数据 (Fetch From Krita)

The other node with this exact job — same pack, same schema as Open In Krita

danbooru
组忽略管理器 (Group Ignore Manager)

Bypass whole groups instead of muting them

danbooru
组是否启用 (Group Is Enabled)

Turn a group's mute toggle into a boolean you can actually wire up

danbooru
组静音管理器 (Group Mute Manager)

A dashboard for switching whole groups of nodes off

danbooru
模型名称提取器 (Model Name Extractor)

Pull the checkpoint filename back out of a MODEL, for Save Image Plus

danbooru
多角色编辑器 (Multi Character Editor)

Lay characters out on a canvas, get back Attention Couple or Regional Prompter syntax

danbooru
从Krita获取数据 (Fetch From Krita)

Pause the graph, touch up the image by hand in Krita, resume with your edit

danbooru
参数展开 (Parameter Break)

Unpack a control-panel bundle back into up to 32 individual wires

danbooru
参数控制面板 (Parameter Control Panel)

Build one dashboard of controls, drive the rest of your graph from it

danbooru
提示词清洁女仆 (Prompt Cleaning Maid)

Tidy up messy, copy-pasted tag strings before they hit your encoder

danbooru
提示词选择器 (Prompt Selector)

Glue a prefix onto whatever prompt you're currently juggling

danbooru
分辨率大师简化版 (Resolution Master Simplify)

A stripped-down width/height pair, not the real Resolution Master

utils/Resolution Master
保存图像增强版 (Save Image Plus)

A Save Image node that also writes A1111-readable metadata

danbooru
简易Checkpoint加载器 (Simple Checkpoint Loader)

Checkpoint, VAE, and CLIP skip in one node, plus the filenames as strings

danbooru
简易图像对比 (Simple Image Compare)

A slider to eyeball two images against each other, right on the canvas

image
简易加载图像 (Simple Load Image)

A bare-bones Load Image, bundled with the Danbooru Gallery pack

danbooru
简易通知 (Simple Notify)

Get pinged the moment your ComfyUI run actually hits this node

danbooru
简易字符串分隔 (Simple String Split)

Turn one comma-separated tag string into a clean list

danbooru
简易值切换 (Simple Value Switch)

Return the first input that actually has something in it

danbooru
VAE 图像批次修复 (VAE Image Batch Fix)

Stops Wan/Qwen-Image VAEs from treating your image batch as a video

danbooru
工作流说明 (Workflow Description)

A Markdown note node that ships versioned popups with your workflow

danbooru
Readme

🎨 ComfyUI-Danbooru-Gallery

🇨🇳 本节点专为 ShiQi_Workflow 工作流打造,聚焦中文用户的实际使用场景与体验。

✨ 面向 ComfyUI 的实用节点集合,重点覆盖 Danbooru 图像检索、提示词编辑/清洗、缓存管理、Krita 联动与工作流辅助工具。

📌 当前状态

  • ✅ 当前注册节点数:23
  • 🧩 前端扩展:包含若干 JS 面板与交互增强(如快速组导航)
  • 🗂️ 已移除的旧节点不再列出

🚀 安装

  1. 进入 ComfyUI 自定义节点目录:
cd ComfyUI/custom_nodes
  1. 克隆仓库:
git clone https://github.com/Aaalice233/ComfyUI-Danbooru-Gallery.git
  1. 安装依赖:
cd ComfyUI-Danbooru-Gallery
pip install -r requirements.txt
  1. 重启 ComfyUI。

🛠️ 依赖与环境

  • Python >=3.8
  • 主要依赖:requestsaiohttpaiosqlitepsutilPillowtorchnumpy

🧠 节点清单(当前有效)

🖼️ 图像与提示词核心

  • DanbooruGalleryNode:D站画廊 (Danbooru Gallery)
  • PromptSelector:提示词选择器 (Prompt Selector)
  • PromptCleaningMaid:提示词清洁女仆 (Prompt Cleaning Maid)
  • CharacterFeatureSwapNode:角色特征交换 (Character Feature Swap)
  • MultiCharacterEditorNode:多角色编辑器 (Multi Character Editor)

📂 图像输入输出与文件

  • SimpleLoadImage:简易加载图像 (Simple Load Image)
  • SaveImagePlus:保存图像增强版 (Save Image Plus)
  • SimpleImageCompare:简易图像对比 (Simple Image Compare)
  • SimpleCheckpointLoaderWithName:简易Checkpoint加载器 (Simple Checkpoint Loader)
  • ModelNameExtractor:模型名称提取器 (Model Name Extractor)

🔧 工作流控制与字符串工具

  • ParameterControlPanel:参数控制面板 (Parameter Control Panel)
  • ParameterBreak:参数展开 (Parameter Break)
  • SimpleStringSplit:简易字符串分隔 (Simple String Split)
  • SimpleValueSwitch:简易值切换 (Simple Value Switch)
  • EnumSwitch:枚举切换 (Enum Switch)
  • WorkflowDescription:工作流说明 (Workflow Description)
  • SimpleNotify:简易通知 (Simple Notify)
  • ResolutionMasterSimplify:分辨率大师简化版 (Resolution Master Simplify)

🧷 组管理相关

  • GroupMuteManager:组静音管理器 (Group Mute Manager)
  • GroupIgnoreManager:组忽略管理器 (Group Ignore Manager)
  • GroupIsEnabled:组是否启用 (Group Is Enabled)

🎨 Krita 联动

  • OpenInKrita:从Krita获取数据 (Fetch From Krita)
  • FetchFromKrita:从Krita获取数据 (Fetch From Krita)

🧩 非节点型前端扩展

以下功能以 JS 扩展形态存在,不会在节点列表中单独占一个节点名:

  • Quick Group Navigation(快速组导航)
  • 部分节点的设置弹窗、缓存面板、多语言与日志上报能力

📎 兼容与说明

  • 本项目是 ShiQi_Workflow 的配套节点集,也可独立使用。
  • 部分节点(如多角色编辑相关)可能依赖额外生态插件,请按节点 UI 提示安装。
  • 若从旧版本升级,请以本 README 的“节点清单(当前有效)”为准,旧文档中的已删除节点不再维护。

❓ 常见问题

1. 🔍 节点没出现

  • 确认仓库路径为 ComfyUI/custom_nodes/ComfyUI-Danbooru-Gallery
  • 确认依赖安装完成后重启 ComfyUI
  • 查看 ComfyUI 控制台是否有导入异常日志

2. 🖥️ 前端面板没加载

  • 检查 WEB_DIRECTORY 是否成功注册(插件初始化日志会输出)
  • 清理浏览器缓存后刷新 ComfyUI 页面

3. 🧪 Krita 功能不可用

  • 检查 Krita 插件安装状态
  • 查看节点内的安装/重装按钮日志提示

🧑‍💻 开发

  • 代码入口:__init__.py
  • Python 节点:py/
  • 前端扩展:js/
  • 工具脚本:tools/

📄 许可证

MIT