narugo1992 commited on
Commit
9b61817
·
verified ·
1 Parent(s): 3a2c574

Auto-update README.md via abstractor, on 2025-11-18 02:04:05 CST

Browse files
Files changed (1) hide show
  1. README.md +99 -0
README.md ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories: [image-classification]
3
+ language: [en, multilingual]
4
+ license: cc-by-4.0
5
+ tags: [image-classification, computer-vision, anime, danbooru, rating-classification]
6
+ size_categories: [1M<n<10M]
7
+ source_datasets: [original]
8
+ ---
9
+
10
+ # Anime Danbooru Rating Dataset
11
+
12
+ ## Summary
13
+
14
+ This dataset provides comprehensive **danbooru rating** classifications for anime-style images, organized into four distinct categories based on content safety levels. The dataset contains over 1.2 million images distributed across explicit, general, questionable, and sensitive rating classes, making it ideal for training **content moderation** systems and **image classification** models specifically tailored for anime and manga-style artwork.
15
+
16
+ The rating system follows the established **danbooru tagging** conventions, where images are categorized based on their content appropriateness. This hierarchical classification enables fine-grained control over content filtering, with clear distinctions between safe-for-work and not-safe-for-work material. The dataset's large scale and well-balanced distribution across rating categories make it particularly valuable for developing robust **automated moderation** tools in anime-focused platforms and applications.
17
+
18
+ Each image in the dataset is associated with its corresponding danbooru rating tag, providing reliable ground truth labels for supervised learning tasks. The dataset structure facilitates both multi-class classification (predicting exact rating) and binary classification (SFW vs NSFW) tasks, offering flexibility for different application requirements. The comprehensive coverage of anime art styles and diverse content types ensures models trained on this dataset can generalize effectively across various anime and manga artwork.
19
+
20
+ ## Dataset Structure
21
+
22
+ The dataset is organized into four main categories based on danbooru rating tags:
23
+
24
+ - **explicit_278119.zip**: Contains 278,119 images with explicit content
25
+ - **general_341506.zip**: Contains 341,506 images with general/safe content
26
+ - **questionable_320107.zip**: Contains 320,107 images with questionable content
27
+ - **sensitive_341769.zip**: Contains 341,769 images with sensitive content
28
+
29
+ ### Rating Categories
30
+
31
+ The danbooru rating system follows this classification:
32
+
33
+ - **safe + sensitive = SFW (Safe For Work)**
34
+ - **questionable + explicit = NSFW (Not Safe For Work)**
35
+
36
+ ## Usage
37
+
38
+ This dataset can be used with the `dghs-imgutils` library for efficient loading and processing:
39
+
40
+ ```python
41
+ from dghs_imgutils import load_danbooru_rating_dataset
42
+
43
+ # Load the entire dataset
44
+ dataset = load_danbooru_rating_dataset('deepghs/anime_dbrating')
45
+
46
+ # Or load specific rating categories
47
+ sfw_dataset = load_danbooru_rating_dataset(
48
+ 'deepghs/anime_dbrating',
49
+ ratings=['safe', 'sensitive']
50
+ )
51
+
52
+ nsfw_dataset = load_danbooru_rating_dataset(
53
+ 'deepghs/anime_dbrating',
54
+ ratings=['questionable', 'explicit']
55
+ )
56
+ ```
57
+
58
+ For basic usage without specialized libraries:
59
+
60
+ ```python
61
+ import zipfile
62
+ import os
63
+
64
+ # Extract and load specific rating category
65
+ with zipfile.ZipFile('general_341506.zip', 'r') as zip_ref:
66
+ zip_ref.extractall('general_images/')
67
+
68
+ # The extracted directory will contain the image files
69
+ # organized by their danbooru rating classification
70
+ ```
71
+
72
+ ## Applications
73
+
74
+ This dataset is particularly useful for:
75
+
76
+ - Training content moderation systems for anime art platforms
77
+ - Developing SFW/NSW classification models
78
+ - Research in anime image understanding and classification
79
+ - Building automated tagging systems for anime artwork
80
+ - Content filtering applications for anime communities
81
+
82
+ ## Original Content
83
+
84
+ dbrating == danbooru rating, use danbooru rating tags and danbooru subsets as training dataset
85
+ safe - sensitive - questionable - explicit, safe + sensitive == sfw, questionable + explicit == nsfw
86
+
87
+ ## Citation
88
+
89
+ ```bibtex
90
+ @misc{anime_dbrating,
91
+ title = {Anime Danbooru Rating Dataset},
92
+ author = {deepghs},
93
+ howpublished = {\url{https://huggingface.co/datasets/deepghs/anime_dbrating}},
94
+ year = {2023},
95
+ note = {Large-scale dataset for anime image rating classification using danbooru tagging system},
96
+ abstract = {This dataset provides comprehensive danbooru rating classifications for anime-style images, organized into four distinct categories based on content safety levels. The dataset contains over 1.2 million images distributed across explicit, general, questionable, and sensitive rating classes, making it ideal for training content moderation systems and image classification models specifically tailored for anime and manga-style artwork. The rating system follows the established danbooru tagging conventions, where images are categorized based on their content appropriateness.},
97
+ keywords = {image-classification, computer-vision, anime, danbooru, rating-classification}
98
+ }
99
+ ```