Teaching TensorFlow the Danbooru Tag Taxonomy
DeepDanbooru trains TensorFlow models to auto-tag anime illustrations using the sprawling, crowdsourced taxonomy of the Danbooru image board.

What it does
DeepDanbooru is a multi-label classification system that estimates descriptive tags for anime-style illustrations, with a focus on the character-centric taxonomy of the Danbooru image board. It uses TensorFlow to predict labels—such as 1girl, ahoge, or long_hair—drawn from that ecosystem. The tool is built around a full training pipeline rather than a simple inference API.
The interesting bit The project treats Danbooru’s crowdsourced metadata as a formal ground-truth database. It enforces a rigid dataset structure—SQLite tables with a specific schema and images sorted into subfolders by MD5 prefix—and can sync live tag vocabularies directly from Danbooru’s API. That tight coupling is either a dependency or a feature, depending on your patience.
Key highlights
- Multi-label tag estimation for anime illustrations via TensorFlow
- Dataset schema strictly mirrors Danbooru’s metadata model
- Can download current tag lists directly from Danbooru using an API key
- Live web demo available for testing
- TensorFlow is an optional extra, not included in the default installation
Caveats
- Dataset preparation is manual and exacting: you must provide a SQLite file with a specific
poststable and organize images into MD5-prefix subfolders - The README documents the training pipeline extensively but does not clarify whether pre-trained model weights are included
- Fetching the latest tags requires a Danbooru account and API key
Verdict Useful if you are building tools around anime image corpora and want to replicate the Danbooru tagging vocabulary with your own models. Not the right choice if you need a zero-config classifier.
Frequently asked
- What is KichangKim/DeepDanbooru?
- DeepDanbooru trains TensorFlow models to auto-tag anime illustrations using the sprawling, crowdsourced taxonomy of the Danbooru image board.
- Is DeepDanbooru open source?
- Yes — KichangKim/DeepDanbooru is open source, released under the MIT license.
- What language is DeepDanbooru written in?
- KichangKim/DeepDanbooru is primarily written in Python.
- How popular is DeepDanbooru?
- KichangKim/DeepDanbooru has 2.9k stars on GitHub.
- Where can I find DeepDanbooru?
- KichangKim/DeepDanbooru is on GitHub at https://github.com/KichangKim/DeepDanbooru.