trojblue commited on
Commit
f974dff
·
verified ·
1 Parent(s): c6a53ac

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +694 -0
README.md CHANGED
@@ -130,4 +130,698 @@ configs:
130
  data_files:
131
  - split: train
132
  path: data/train-*
 
 
 
 
 
 
 
 
 
 
133
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  data_files:
131
  - split: train
132
  path: data/train-*
133
+ license: mit
134
+ task_categories:
135
+ - text-to-image
136
+ - image-classification
137
+ language:
138
+ - en
139
+ - ja
140
+ pretty_name: Danbooru 2025 Metadata
141
+ size_categories:
142
+ - 1M<n<10M
143
  ---
144
+
145
+ # Dataset Card for Danbooru 2025 Metadata
146
+
147
+ This dataset repo provides comprehensive, up-to-date metadata for the Danbooru booru site. All metadata was freshly scraped starting on **January 2, 2025**, resulting in more extensive tag annotations for older posts, fewer errors, and reduced occurrences of non-labelled AI-generated images in the data.
148
+
149
+ ## Dataset Details
150
+
151
+ **What is this?**
152
+ A refreshed, Parquet-formatted metadata dump of Danbooru, current as of January 2, 2025.
153
+
154
+ **Why this over other Danbooru scrapes?**
155
+ - **Fresh Metadata:** Coverage includes post IDs from 1 through ~8.6M, with the newest vocabulary and tag annotations.
156
+ - **Maximized Tag Count:** Many historical tag renames and additions are accurately reflected, reducing duplications for downstream tasks.
157
+ - **Reduced Noise:** Fewer untagged or mislabeled AI images compared to older scrapes.
158
+
159
+ **Tag Comparisons**
160
+ [TODO: Contrast the tag counts, deleted entries, etc. with other Danbooru metadata scrapes.]
161
+
162
+ - **Shared by:** [trojblue](https://huggingface.co/trojblue)
163
+ - **Language(s) (NLP):** English, Japanese
164
+ - **License:** MIT
165
+
166
+ ## Uses
167
+
168
+
169
+ This dataset can be used to:
170
+ - Retrieve the full Danbooru image set via the metadata’s URLs
171
+ - Train or fine-tune an image tagger
172
+ - Compare against previous metadata versions to track changes, tag evolution, and historical trends
173
+
174
+ This dataset can be loaded or filtered with the Huggingface `datasets` library:
175
+
176
+ ```python
177
+ from datasets import Dataset, load_dataset
178
+
179
+ danbooru_dataset = load_dataset("trojblue/danbooru2025-metadata", split="train")
180
+ df = danbooru_dataset.to_pandas()
181
+ ```
182
+
183
+
184
+ ## Dataset Structure
185
+
186
+ Below is a partial overview of the DataFrame columns, derived directly from the Danbooru JSONs:
187
+
188
+ **column values preview:**
189
+
190
+ ```python
191
+ import unibox as ub
192
+ ub.peeks(df)
193
+ ```
194
+
195
+ ```
196
+ (8616173, 59)
197
+ Index(['approver_id', 'bit_flags', 'created_at', 'down_score', 'fav_count',
198
+ 'file_ext', 'file_size', 'file_url', 'has_active_children',
199
+ 'has_children', 'has_large', 'has_visible_children', 'id',
200
+ 'image_height', 'image_width', 'is_banned', 'is_deleted', 'is_flagged',
201
+ 'is_pending', 'large_file_url', 'last_comment_bumped_at',
202
+ 'last_commented_at', 'last_noted_at', 'md5', 'media_asset_created_at',
203
+ 'media_asset_duration', 'media_asset_file_ext', 'media_asset_file_key',
204
+ 'media_asset_file_size', 'media_asset_id', 'media_asset_image_height',
205
+ 'media_asset_image_width', 'media_asset_is_public', 'media_asset_md5',
206
+ 'media_asset_pixel_hash', 'media_asset_status',
207
+ 'media_asset_updated_at', 'media_asset_variants', 'parent_id',
208
+ 'pixiv_id', 'preview_file_url', 'rating', 'score', 'source',
209
+ 'tag_count', 'tag_count_artist', 'tag_count_character',
210
+ 'tag_count_copyright', 'tag_count_general', 'tag_count_meta',
211
+ 'tag_string', 'tag_string_artist', 'tag_string_character',
212
+ 'tag_string_copyright', 'tag_string_general', 'tag_string_meta',
213
+ 'up_score', 'updated_at', 'uploader_id'],
214
+ dtype='object')
215
+ ```
216
+
217
+ <div>
218
+ <style scoped>
219
+ .dataframe tbody tr th:only-of-type {
220
+ vertical-align: middle;
221
+ }
222
+
223
+ .dataframe tbody tr th {
224
+ vertical-align: top;
225
+ }
226
+
227
+ .dataframe thead th {
228
+ text-align: right;
229
+ }
230
+ </style>
231
+ <table border="1" class="dataframe">
232
+ <thead>
233
+ <tr style="text-align: right;">
234
+ <th></th>
235
+ <th>approver_id</th>
236
+ <th>bit_flags</th>
237
+ <th>created_at</th>
238
+ <th>down_score</th>
239
+ <th>fav_count</th>
240
+ <th>file_ext</th>
241
+ <th>file_size</th>
242
+ <th>file_url</th>
243
+ <th>has_active_children</th>
244
+ <th>has_children</th>
245
+ <th>...</th>
246
+ <th>tag_count_meta</th>
247
+ <th>tag_string</th>
248
+ <th>tag_string_artist</th>
249
+ <th>tag_string_character</th>
250
+ <th>tag_string_copyright</th>
251
+ <th>tag_string_general</th>
252
+ <th>tag_string_meta</th>
253
+ <th>up_score</th>
254
+ <th>updated_at</th>
255
+ <th>uploader_id</th>
256
+ </tr>
257
+ </thead>
258
+ <tbody>
259
+ <tr>
260
+ <th>0</th>
261
+ <td>NaN</td>
262
+ <td>0</td>
263
+ <td>2015-08-07T23:23:45.072-04:00</td>
264
+ <td>0</td>
265
+ <td>66</td>
266
+ <td>jpg</td>
267
+ <td>4134797</td>
268
+ <td>https://cdn.donmai.us/original/a1/b3/a1b3d0fa9...</td>
269
+ <td>False</td>
270
+ <td>False</td>
271
+ <td>...</td>
272
+ <td>3</td>
273
+ <td>1girl absurdres ass bangle bikini black_bikini...</td>
274
+ <td>kyouka.</td>
275
+ <td>marie_(splatoon)</td>
276
+ <td>splatoon_(series) splatoon_1</td>
277
+ <td>1girl ass bangle bikini black_bikini blush bra...</td>
278
+ <td>absurdres commentary_request highres</td>
279
+ <td>15</td>
280
+ <td>2024-06-25T15:32:44.291-04:00</td>
281
+ <td>420773</td>
282
+ </tr>
283
+ <tr>
284
+ <th>1</th>
285
+ <td>NaN</td>
286
+ <td>0</td>
287
+ <td>2008-03-05T01:52:28.194-05:00</td>
288
+ <td>0</td>
289
+ <td>7</td>
290
+ <td>jpg</td>
291
+ <td>380323</td>
292
+ <td>https://cdn.donmai.us/original/d6/10/d6107a13b...</td>
293
+ <td>False</td>
294
+ <td>False</td>
295
+ <td>...</td>
296
+ <td>2</td>
297
+ <td>1girl aqua_hair bad_id bad_pixiv_id guitar hat...</td>
298
+ <td>shimeko</td>
299
+ <td>hatsune_miku</td>
300
+ <td>vocaloid</td>
301
+ <td>1girl aqua_hair guitar instrument long_hair so...</td>
302
+ <td>bad_id bad_pixiv_id</td>
303
+ <td>4</td>
304
+ <td>2018-01-23T00:32:10.080-05:00</td>
305
+ <td>1309</td>
306
+ </tr>
307
+ <tr>
308
+ <th>2</th>
309
+ <td>85307.0</td>
310
+ <td>0</td>
311
+ <td>2015-08-07T23:26:12.355-04:00</td>
312
+ <td>0</td>
313
+ <td>10</td>
314
+ <td>jpg</td>
315
+ <td>208409</td>
316
+ <td>https://cdn.donmai.us/original/a1/2c/a12ce629f...</td>
317
+ <td>False</td>
318
+ <td>False</td>
319
+ <td>...</td>
320
+ <td>1</td>
321
+ <td>1boy 1girl blush boots carrying closed_eyes co...</td>
322
+ <td>yuuryuu_nagare</td>
323
+ <td>jon_(pixiv_fantasia_iii) race_(pixiv_fantasia)</td>
324
+ <td>pixiv_fantasia pixiv_fantasia_3</td>
325
+ <td>1boy 1girl blush boots carrying closed_eyes da...</td>
326
+ <td>commentary_request</td>
327
+ <td>3</td>
328
+ <td>2022-05-25T02:26:06.588-04:00</td>
329
+ <td>95963</td>
330
+ </tr>
331
+ </tbody>
332
+ </table>
333
+ </div>
334
+
335
+
336
+ **memory size preview**:
337
+
338
+ <div>
339
+ <style scoped>
340
+ .dataframe tbody tr th:only-of-type {
341
+ vertical-align: middle;
342
+ }
343
+ .dataframe tbody tr th {
344
+ vertical-align: top;
345
+ }
346
+ .dataframe thead th {
347
+ text-align: right;
348
+ }
349
+ </style>
350
+ <table border="1" class="dataframe">
351
+ <thead>
352
+ <tr style="text-align: right;">
353
+ <th></th>
354
+ <th>Column</th>
355
+ <th>Memory Usage</th>
356
+ <th>Readable Memory Usage</th>
357
+ <th>Dtype</th>
358
+ </tr>
359
+ </thead>
360
+ <tbody>
361
+ <tr>
362
+ <th>37</th>
363
+ <td>media_asset_variants</td>
364
+ <td>6504773310</td>
365
+ <td>6.06 GB</td>
366
+ <td>object</td>
367
+ </tr>
368
+ <tr>
369
+ <th>50</th>
370
+ <td>tag_string</td>
371
+ <td>4010312632</td>
372
+ <td>3.73 GB</td>
373
+ <td>object</td>
374
+ </tr>
375
+ <tr>
376
+ <th>54</th>
377
+ <td>tag_string_general</td>
378
+ <td>3219096004</td>
379
+ <td>3.00 GB</td>
380
+ <td>object</td>
381
+ </tr>
382
+ <tr>
383
+ <th>19</th>
384
+ <td>large_file_url</td>
385
+ <td>1120901064</td>
386
+ <td>1.04 GB</td>
387
+ <td>object</td>
388
+ </tr>
389
+ <tr>
390
+ <th>7</th>
391
+ <td>file_url</td>
392
+ <td>1091768146</td>
393
+ <td>1.02 GB</td>
394
+ <td>object</td>
395
+ </tr>
396
+ <tr>
397
+ <th>40</th>
398
+ <td>preview_file_url</td>
399
+ <td>1083377159</td>
400
+ <td>1.01 GB</td>
401
+ <td>object</td>
402
+ </tr>
403
+ <tr>
404
+ <th>43</th>
405
+ <td>source</td>
406
+ <td>1028480196</td>
407
+ <td>980.84 MB</td>
408
+ <td>object</td>
409
+ </tr>
410
+ <tr>
411
+ <th>34</th>
412
+ <td>media_asset_pixel_hash</td>
413
+ <td>766839397</td>
414
+ <td>731.32 MB</td>
415
+ <td>object</td>
416
+ </tr>
417
+ <tr>
418
+ <th>33</th>
419
+ <td>media_asset_md5</td>
420
+ <td>749456967</td>
421
+ <td>714.74 MB</td>
422
+ <td>object</td>
423
+ </tr>
424
+ <tr>
425
+ <th>23</th>
426
+ <td>md5</td>
427
+ <td>749456967</td>
428
+ <td>714.74 MB</td>
429
+ <td>object</td>
430
+ </tr>
431
+ <tr>
432
+ <th>2</th>
433
+ <td>created_at</td>
434
+ <td>740990878</td>
435
+ <td>706.66 MB</td>
436
+ <td>object</td>
437
+ </tr>
438
+ <tr>
439
+ <th>36</th>
440
+ <td>media_asset_updated_at</td>
441
+ <td>740990878</td>
442
+ <td>706.66 MB</td>
443
+ <td>object</td>
444
+ </tr>
445
+ <tr>
446
+ <th>24</th>
447
+ <td>media_asset_created_at</td>
448
+ <td>740990878</td>
449
+ <td>706.66 MB</td>
450
+ <td>object</td>
451
+ </tr>
452
+ <tr>
453
+ <th>57</th>
454
+ <td>updated_at</td>
455
+ <td>740990878</td>
456
+ <td>706.66 MB</td>
457
+ <td>object</td>
458
+ </tr>
459
+ <tr>
460
+ <th>52</th>
461
+ <td>tag_string_character</td>
462
+ <td>735974700</td>
463
+ <td>701.88 MB</td>
464
+ <td>object</td>
465
+ </tr>
466
+ <tr>
467
+ <th>55</th>
468
+ <td>tag_string_meta</td>
469
+ <td>734235943</td>
470
+ <td>700.22 MB</td>
471
+ <td>object</td>
472
+ </tr>
473
+ <tr>
474
+ <th>53</th>
475
+ <td>tag_string_copyright</td>
476
+ <td>664510146</td>
477
+ <td>633.73 MB</td>
478
+ <td>object</td>
479
+ </tr>
480
+ <tr>
481
+ <th>51</th>
482
+ <td>tag_string_artist</td>
483
+ <td>588454689</td>
484
+ <td>561.19 MB</td>
485
+ <td>object</td>
486
+ </tr>
487
+ <tr>
488
+ <th>27</th>
489
+ <td>media_asset_file_key</td>
490
+ <td>557435694</td>
491
+ <td>531.61 MB</td>
492
+ <td>object</td>
493
+ </tr>
494
+ <tr>
495
+ <th>35</th>
496
+ <td>media_asset_status</td>
497
+ <td>542818899</td>
498
+ <td>517.67 MB</td>
499
+ <td>object</td>
500
+ </tr>
501
+ <tr>
502
+ <th>26</th>
503
+ <td>media_asset_file_ext</td>
504
+ <td>516984380</td>
505
+ <td>493.03 MB</td>
506
+ <td>object</td>
507
+ </tr>
508
+ <tr>
509
+ <th>5</th>
510
+ <td>file_ext</td>
511
+ <td>516984380</td>
512
+ <td>493.03 MB</td>
513
+ <td>object</td>
514
+ </tr>
515
+ <tr>
516
+ <th>41</th>
517
+ <td>rating</td>
518
+ <td>499738034</td>
519
+ <td>476.59 MB</td>
520
+ <td>object</td>
521
+ </tr>
522
+ <tr>
523
+ <th>21</th>
524
+ <td>last_commented_at</td>
525
+ <td>259587166</td>
526
+ <td>247.56 MB</td>
527
+ <td>object</td>
528
+ </tr>
529
+ <tr>
530
+ <th>20</th>
531
+ <td>last_comment_bumped_at</td>
532
+ <td>252905426</td>
533
+ <td>241.19 MB</td>
534
+ <td>object</td>
535
+ </tr>
536
+ <tr>
537
+ <th>22</th>
538
+ <td>last_noted_at</td>
539
+ <td>247393688</td>
540
+ <td>235.93 MB</td>
541
+ <td>object</td>
542
+ </tr>
543
+ <tr>
544
+ <th>1</th>
545
+ <td>bit_flags</td>
546
+ <td>68929384</td>
547
+ <td>65.74 MB</td>
548
+ <td>int64</td>
549
+ </tr>
550
+ <tr>
551
+ <th>49</th>
552
+ <td>tag_count_meta</td>
553
+ <td>68929384</td>
554
+ <td>65.74 MB</td>
555
+ <td>int64</td>
556
+ </tr>
557
+ <tr>
558
+ <th>42</th>
559
+ <td>score</td>
560
+ <td>68929384</td>
561
+ <td>65.74 MB</td>
562
+ <td>int64</td>
563
+ </tr>
564
+ <tr>
565
+ <th>38</th>
566
+ <td>parent_id</td>
567
+ <td>68929384</td>
568
+ <td>65.74 MB</td>
569
+ <td>float64</td>
570
+ </tr>
571
+ <tr>
572
+ <th>39</th>
573
+ <td>pixiv_id</td>
574
+ <td>68929384</td>
575
+ <td>65.74 MB</td>
576
+ <td>float64</td>
577
+ </tr>
578
+ <tr>
579
+ <th>30</th>
580
+ <td>media_asset_image_height</td>
581
+ <td>68929384</td>
582
+ <td>65.74 MB</td>
583
+ <td>int64</td>
584
+ </tr>
585
+ <tr>
586
+ <th>29</th>
587
+ <td>media_asset_id</td>
588
+ <td>68929384</td>
589
+ <td>65.74 MB</td>
590
+ <td>int64</td>
591
+ </tr>
592
+ <tr>
593
+ <th>31</th>
594
+ <td>media_asset_image_width</td>
595
+ <td>68929384</td>
596
+ <td>65.74 MB</td>
597
+ <td>int64</td>
598
+ </tr>
599
+ <tr>
600
+ <th>28</th>
601
+ <td>media_asset_file_size</td>
602
+ <td>68929384</td>
603
+ <td>65.74 MB</td>
604
+ <td>int64</td>
605
+ </tr>
606
+ <tr>
607
+ <th>12</th>
608
+ <td>id</td>
609
+ <td>68929384</td>
610
+ <td>65.74 MB</td>
611
+ <td>int64</td>
612
+ </tr>
613
+ <tr>
614
+ <th>0</th>
615
+ <td>approver_id</td>
616
+ <td>68929384</td>
617
+ <td>65.74 MB</td>
618
+ <td>float64</td>
619
+ </tr>
620
+ <tr>
621
+ <th>4</th>
622
+ <td>fav_count</td>
623
+ <td>68929384</td>
624
+ <td>65.74 MB</td>
625
+ <td>int64</td>
626
+ </tr>
627
+ <tr>
628
+ <th>3</th>
629
+ <td>down_score</td>
630
+ <td>68929384</td>
631
+ <td>65.74 MB</td>
632
+ <td>int64</td>
633
+ </tr>
634
+ <tr>
635
+ <th>6</th>
636
+ <td>file_size</td>
637
+ <td>68929384</td>
638
+ <td>65.74 MB</td>
639
+ <td>int64</td>
640
+ </tr>
641
+ <tr>
642
+ <th>25</th>
643
+ <td>media_asset_duration</td>
644
+ <td>68929384</td>
645
+ <td>65.74 MB</td>
646
+ <td>float64</td>
647
+ </tr>
648
+ <tr>
649
+ <th>14</th>
650
+ <td>image_width</td>
651
+ <td>68929384</td>
652
+ <td>65.74 MB</td>
653
+ <td>int64</td>
654
+ </tr>
655
+ <tr>
656
+ <th>13</th>
657
+ <td>image_height</td>
658
+ <td>68929384</td>
659
+ <td>65.74 MB</td>
660
+ <td>int64</td>
661
+ </tr>
662
+ <tr>
663
+ <th>44</th>
664
+ <td>tag_count</td>
665
+ <td>68929384</td>
666
+ <td>65.74 MB</td>
667
+ <td>int64</td>
668
+ </tr>
669
+ <tr>
670
+ <th>48</th>
671
+ <td>tag_count_general</td>
672
+ <td>68929384</td>
673
+ <td>65.74 MB</td>
674
+ <td>int64</td>
675
+ </tr>
676
+ <tr>
677
+ <th>47</th>
678
+ <td>tag_count_copyright</td>
679
+ <td>68929384</td>
680
+ <td>65.74 MB</td>
681
+ <td>int64</td>
682
+ </tr>
683
+ <tr>
684
+ <th>46</th>
685
+ <td>tag_count_character</td>
686
+ <td>68929384</td>
687
+ <td>65.74 MB</td>
688
+ <td>int64</td>
689
+ </tr>
690
+ <tr>
691
+ <th>56</th>
692
+ <td>up_score</td>
693
+ <td>68929384</td>
694
+ <td>65.74 MB</td>
695
+ <td>int64</td>
696
+ </tr>
697
+ <tr>
698
+ <th>45</th>
699
+ <td>tag_count_artist</td>
700
+ <td>68929384</td>
701
+ <td>65.74 MB</td>
702
+ <td>int64</td>
703
+ </tr>
704
+ <tr>
705
+ <th>58</th>
706
+ <td>uploader_id</td>
707
+ <td>68929384</td>
708
+ <td>65.74 MB</td>
709
+ <td>int64</td>
710
+ </tr>
711
+ <tr>
712
+ <th>10</th>
713
+ <td>has_large</td>
714
+ <td>8616173</td>
715
+ <td>8.22 MB</td>
716
+ <td>bool</td>
717
+ </tr>
718
+ <tr>
719
+ <th>15</th>
720
+ <td>is_banned</td>
721
+ <td>8616173</td>
722
+ <td>8.22 MB</td>
723
+ <td>bool</td>
724
+ </tr>
725
+ <tr>
726
+ <th>16</th>
727
+ <td>is_deleted</td>
728
+ <td>8616173</td>
729
+ <td>8.22 MB</td>
730
+ <td>bool</td>
731
+ </tr>
732
+ <tr>
733
+ <th>17</th>
734
+ <td>is_flagged</td>
735
+ <td>8616173</td>
736
+ <td>8.22 MB</td>
737
+ <td>bool</td>
738
+ </tr>
739
+ <tr>
740
+ <th>11</th>
741
+ <td>has_visible_children</td>
742
+ <td>8616173</td>
743
+ <td>8.22 MB</td>
744
+ <td>bool</td>
745
+ </tr>
746
+ <tr>
747
+ <th>18</th>
748
+ <td>is_pending</td>
749
+ <td>8616173</td>
750
+ <td>8.22 MB</td>
751
+ <td>bool</td>
752
+ </tr>
753
+ <tr>
754
+ <th>8</th>
755
+ <td>has_active_children</td>
756
+ <td>8616173</td>
757
+ <td>8.22 MB</td>
758
+ <td>bool</td>
759
+ </tr>
760
+ <tr>
761
+ <th>9</th>
762
+ <td>has_children</td>
763
+ <td>8616173</td>
764
+ <td>8.22 MB</td>
765
+ <td>bool</td>
766
+ </tr>
767
+ <tr>
768
+ <th>32</th>
769
+ <td>media_asset_is_public</td>
770
+ <td>8616173</td>
771
+ <td>8.22 MB</td>
772
+ <td>bool</td>
773
+ </tr>
774
+ </tbody>
775
+ </table>
776
+ </div>
777
+
778
+ ## Dataset Creation
779
+
780
+ We scraped all post IDs on Danbooru from 1 up to the latest. Some restricted tags (e.g. `loli`) were hidden by the site and require a gold account to access, so they are not present.
781
+ For a more complete (but older) metadata reference, you may wish to combine this with Danbooru2021 or similar previous scrapes.
782
+
783
+ The scraping process used a pool of roughly 400 IPs over six hours, ensuring consistent tag definitions. Below is a simplified example of the process used to convert the metadata into Parquet:
784
+
785
+ ```python
786
+ import pandas as pd
787
+ from pandarallel import pandarallel
788
+
789
+ # Initialize pandarallel
790
+ pandarallel.initialize(nb_workers=4, progress_bar=True)
791
+
792
+ def flatten_dict(d, parent_key='', sep='_'):
793
+ """
794
+ Flattens a nested dictionary.
795
+ """
796
+ items = []
797
+ for k, v in d.items():
798
+ new_key = f"{parent_key}{sep}{k}" if parent_key else k
799
+ if isinstance(v, dict):
800
+ items.extend(flatten_dict(v, new_key, sep=sep).items())
801
+ elif isinstance(v, list):
802
+ items.append((new_key, ', '.join(map(str, v))))
803
+ else:
804
+ items.append((new_key, v))
805
+ return dict(items)
806
+
807
+ def extract_all_illust_info(json_content):
808
+ """
809
+ Parses and flattens Danbooru JSON into a pandas Series.
810
+ """
811
+ flattened_data = flatten_dict(json_content)
812
+ return pd.Series(flattened_data)
813
+
814
+ def dicts_to_dataframe_parallel(dicts):
815
+ """
816
+ Converts a list of dicts to a flattened DataFrame using pandarallel.
817
+ """
818
+ df = pd.DataFrame(dicts)
819
+ flattened_df = df.parallel_apply(lambda row: extract_all_illust_info(row.to_dict()), axis=1)
820
+ return flattened_df
821
+ ```
822
+
823
+
824
+
825
+ ### Recommendations
826
+
827
+ Users should be aware of potential biases and limitations, including the presence of adult content in some tags. More details and mitigations may be needed.