carbon225 commited on
Commit
7235ccf
Β·
1 Parent(s): 6ceac46

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +124 -0
README.md CHANGED
@@ -1,3 +1,127 @@
1
  ---
2
  license: odbl
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: odbl
3
+ task_categories:
4
+ - image-classification
5
+ tags:
6
+ - art
7
+ - not-for-all-audiences
8
+ - anime
9
+ - visual-novel
10
+ - nsfw
11
+ - vndb
12
+ size_categories:
13
+ - 100K<n<1M
14
  ---
15
+ # Dataset Card for VNDB IMG
16
+
17
+ ## Dataset Description
18
+
19
+ This is a πŸ€— Datasets loader for the [vndb.org](https://vndb.org) image database dump.
20
+
21
+ It contains anime-style images flagged by users according to these categories:
22
+
23
+ * sexual content: safe/suggestive/explicit
24
+ * violence: tame/violent/brutal
25
+
26
+ ## Loading Instructions
27
+
28
+ For licensing and "moral" reasons, the database dump has to be downloaded manually.
29
+
30
+ Please download the vndb.org database dump manually from <https://vndb.org/d14>.
31
+ Download the "Near-complete database" `vndb-db-latest.tar.zst` file.
32
+ Use `rsync` to download the 'Images' collection.
33
+
34
+ Create the following directory structure:
35
+
36
+ ```
37
+ my/dataset/path
38
+ β”œβ”€β”€ db
39
+ β”‚ └── vndb-db-latest.tar.zst
40
+ └── vndb-img # this is the directory you downloaded with rsync
41
+ β”œβ”€β”€ ch
42
+ β”œβ”€β”€ cv
43
+ β”œβ”€β”€ sf
44
+ β”œβ”€β”€ st
45
+ └── ...
46
+ ```
47
+
48
+ Inside `my/dataset/path/db` run
49
+
50
+ ```
51
+ zstd -d vndb-db-latest.tar.zst
52
+ ```
53
+
54
+ and
55
+
56
+ ```
57
+ tar -xf vndb-db-latest.tar
58
+ ```
59
+
60
+ The final directory structure should look like this:
61
+
62
+ ```
63
+ my/dataset/path
64
+ β”œβ”€β”€ db
65
+ β”‚ β”œβ”€β”€ vndb-db-latest.tar
66
+ β”‚ β”œβ”€β”€ vndb-db-latest.tar.zst
67
+ β”‚ β”œβ”€β”€ db
68
+ β”‚ └── ...
69
+ └── vndb-img
70
+ β”œβ”€β”€ ch
71
+ β”œβ”€β”€ cv
72
+ β”œβ”€β”€ sf
73
+ β”œβ”€β”€ st
74
+ └── ...
75
+ ```
76
+
77
+ Finally, load the dataset
78
+
79
+ ```python
80
+ datasets.load_dataset('carbon225/vndb_img', data_dir='my/dataset/path')
81
+ ```
82
+
83
+ ## Dataset Structure
84
+
85
+ The following fields are provided:
86
+ ```python
87
+ {
88
+ 'index': datasets.Value('int32'),
89
+ 'id': datasets.Value('string'),
90
+ 'width': datasets.Value('int32'),
91
+ 'height': datasets.Value('int32'),
92
+ 'c_votecount': datasets.Value('int32'),
93
+ 'c_sexual_avg': datasets.Value('int32'),
94
+ 'c_sexual_stddev': datasets.Value('int32'),
95
+ 'c_violence_avg': datasets.Value('int32'),
96
+ 'c_violence_stddev': datasets.Value('int32'),
97
+ 'c_weight': datasets.Value('int32'),
98
+ 'type': datasets.ClassLabel(names=['character', 'cover', 'screenshot_full', 'screenshot_thumb']),
99
+ 'sexual_class': datasets.ClassLabel(names=['safe', 'suggestive', 'explicit']),
100
+ 'violence_class': datasets.ClassLabel(names=['tame', 'violent', 'brutal']),
101
+ 'file_name': datasets.Value('string'),
102
+ 'full_path': datasets.Value('string'),
103
+ 'image': datasets.Image(),
104
+ }
105
+ ```
106
+
107
+ ## Supported Tasks
108
+
109
+ With a few modifications the data can be used for:
110
+ * image classification of NSFW material
111
+ * image generation/super-resolution/...
112
+ * ...
113
+
114
+ ## Considerations for Using the Data
115
+
116
+ The images are ***hardcore***, to say the least. I recommend not looking.
117
+
118
+ ## Licensing Information
119
+
120
+ Using this dataset requires the user to download data manually from vndb.org.
121
+
122
+ All information on VNDB is made available under the Open Database License.
123
+ Any rights in individual contents of the database are licensed under the Database Contents License.
124
+
125
+ With the following exceptions:
126
+ * Anime data is obtained from the AniDB.net UDP API and is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0.
127
+ * Images, visual novel descriptions and character descriptions are gathered from various online sources and may be subject to separate license conditions.