File size: 1,778 Bytes
c6bd403
 
 
 
24edffe
c6bd403
3330ff4
24edffe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3330ff4
24edffe
3330ff4
24edffe
3330ff4
c6bd403
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
size_categories:
- 1M<n<10M
---

# Danbooru2023_metadata

Lastest update: `2024-01-12`
Latest post #: `7081619`

Metadata of posts from [Danbooru](https://danbooru.donmai.us), into a single sqlite3 file.

[Looking for parquet files?](https://huggingface.co/datasets/Jakaline/Danbooru2023_metadata/tree/refs%2Fconvert%2Fparquet/default/train)
Looking for images? [nyanko7/danbooru2023](https://huggingface.co/datasets/nyanko7/danbooru2023)

## Columns

`id, md5, created_at, updated_at, score, up_score, down_score, rating, image_width, image_height, file_ext, parent_id, pixiv_id, duration, pixel_hash, tag_string_general, tag_string_character, tag_string_copyright, tag_string_artist, tag_string_meta`

## Specifics of Danbooru

### Status

Every danbooru posts could be categorized to four types of status.

1. Active: Approved posts.
2. Pending: Posts that are waiting to be approved. If a post is pending for more than 3 days without a moderator's approval, it is deleted. 
3. Deleted: Posts that do not meet danbooru's criteria (Non-anime, low quality, etc)
4. Banned: Posts that are copyright-claimed or off-limit content.

Therefore, we should only use images from active posts. (Banned posts cannot be downloaded by normal users.)

Sadly, the [Danbooru2021 dataset](https://gwern.net/danbooru2021) did not filter any deleted posts, and a lot of text-to-image models were trained with those trash.

This metadata only contains active posts.

## Misc

- If you aim to create your own anime-based image dataset from danbooru posts, you should definitely exclude posts with the following tags: `cosplay_photo third-party_edit text-only_page`
- Also consider excluding posts with the following tags, if you are aiming for high quality: `photo_(medium) 3d no_humans comic`