trojblue commited on
Commit
acbf778
·
verified ·
1 Parent(s): c9d431f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +28 -68
README.md CHANGED
@@ -8,89 +8,68 @@
8
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/636982a164aad59d4d42714b/7uop34hyFIuPixkl4zMzJ.png)
9
 
10
 
 
11
 
12
- # Sakugabooru2025: Curated Animation clips from the Enthusiasts
13
 
14
- [Sakugabooru.com](https://www.sakugabooru.com/post) is a booru-style imageboard site dedicated to the collection and sharing of note-worthy animation clips, with an emphasis on Japanese anime but also open to creators from around the world. For years the site has collected over 240,000 pieces of animation clips in their database, as well as creating informative and educating [blog posts](https://blog.sakugabooru.com/) for anime fans around the world.
15
-
16
- With the growing interest on generative video models and AI animations, the scarcity of proper animation-related video datasets <becomes a problem>/
17
-
18
- The dataset was created as an attempt to provide handy information both for animation enthusiasts as well as industry researchers, to advance the growing frontier of animation-video research.
19
-
20
- The dataset could be useful in areas such as:
21
-
22
- - Animation-related text-to-video training
23
- - Animation understanding for multimodal models
24
- - Video quality/aesthetics analysis
25
 
 
26
 
 
 
 
27
 
28
  ## Dataset Details
29
 
30
- This dataset contains all the available posts of SakugaBooru as of Dec29, 2024, with over 155,238 video clips and 8,680 images of unique or note-worthy animation clips:
31
 
32
- ```
33
- all files: 404160
34
  image files: 8680, video files: 155238, json files: 240242
35
  total unique files: 404160
36
  last post id: 273264
37
  ```
38
 
39
- It's worth nothing that the current collection of clips on sakugabooru has been heavily reduced due to years of DMCA strikes. Clips from popular anime series such as [Mob Psycho 100](https://www.reddit.com/r/AnimeSakuga/comments/10du14k/alternatives_to_sakugabooru_for_mob_psycho_100/) may not be availble in this dataset, because they were taken down from the sakugabooru site.
40
 
41
  - **Curated by:** [trojblue](https://huggingface.co/trojblue)
42
- - **Language(s) (NLP):** EN, JP
43
- - **License:** MIT
44
-
45
-
46
 
47
  ## Dataset Structure
48
 
49
- The tar files are generated by splitting the Sakugabooru post IDs into **modulos of 1,000**:
50
 
51
- - For example, a post ID of **42** goes to `0000.tar`, and a post ID of **5306** goes to `0005.tar`.
52
- - The modulo of 1,000 makes each tar file around 1GB in size, which comes in handy when processing data in large batches.
53
 
54
-
55
-
56
- The dataset itself follows the [WebDataset](https://github.com/webdataset/webdataset) conventions, where each tar contains media files of around 1GB, along with their metadata:
57
 
58
  ```bash
59
  ./media/0.tar
60
  # ./train/0.tar/{sakuga_5306.webm}
61
  # ./train/0.tar/{sakuga_5306.json}
62
-
63
  ```
64
 
65
- The index file `./sakugabooru-index.json` is generated with the `widsindex` command (see webdataset [FAQ](https://github.com/webdataset/webdataset/blob/main/FAQ.md)):
66
 
67
  ```bash
68
  widsindex *.tar > mydataset-index.json
69
  ```
70
 
71
-
72
-
73
-
74
-
75
  ## Dataset Creation
76
 
77
- ### Source Data
78
-
79
- The dataset is sourced directly from Sakugabooru by quering ids from 0 to latest:
80
 
81
  ```bash
82
  https://www.sakugabooru.com/post/show/{id}
83
  ```
84
 
 
85
 
 
86
 
87
- #### Data Collection and Processing
88
-
89
- Since Sakugabooru doesn't have danbooru-like direct json support, metadata are collected and formatted by visiting the site and retrieving relevant parts from the page.
90
-
91
- For future references, the scraper code has also been released here: [arot-devs/sakuga-scraper: SakugaBooru scraper](https://github.com/arot-devs/sakuga-scraper/tree/main)
92
-
93
- Each post's metadata json contains information in format similar to:
94
 
95
  ```json
96
  {
@@ -98,41 +77,22 @@ Each post's metadata json contains information in format similar to:
98
  "post_url": "https://www.sakugabooru.com/post/show/100112",
99
  "image_url": null,
100
  "tags": {},
101
- "id": "100112",
102
- "posted": "Mon Sep 30 00:41:05 2019",
103
- "timestamp": "2019-09-30T00:41:05",
104
- "width": 808,
105
- "height": 808,
106
- "pixels": 652864,
107
- "rating": "Safe",
108
- "score": "0",
109
- "favorited_by": [],
110
- "favorite_count": 0,
111
  "status_notice": [
112
- "This post was deleted.\n\n Reason: https://www.sakugabooru.com/user/show/9611. MD5: c97dbe1d0d467af199402f0ca7b8bb02"
113
- ],
114
- "status_notice_parsed": {}
115
  }
116
  ```
117
 
118
-
119
-
120
- No additional processings are done to the data other than collecting metadata from the page.
121
-
122
-
123
 
124
  ## Bias, Risks, and Limitations
125
 
126
- Due to DMCA concerns, duplicates or other factors, only around 60% (163,918 out of 273,264) of all post IDs have media attached, and the posts may bias toward older japanese animations.
127
-
128
-
129
 
130
  ### Recommendations
131
 
132
- The Sakugabooru has maintained an excellent blog for animation related news and informations:
133
-
134
- - [Sakuga Blog – The Art of Japanese Animation](https://blog.sakugabooru.com/)
135
 
136
- You can also support the Sakugabooru team by becoming a Patreon member:
137
 
138
- - [Sakugabooru | Patreon](https://www.patreon.com/Sakugabooru)
 
8
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/636982a164aad59d4d42714b/7uop34hyFIuPixkl4zMzJ.png)
9
 
10
 
11
+ # Sakugabooru2025: Curated Animation Clips from Enthusiasts
12
 
13
+ [Sakugabooru.com](https://www.sakugabooru.com/post) is a booru-style imageboard dedicated to collecting and sharing noteworthy animation clips, emphasizing Japanese anime but open to creators worldwide. Over the years, it has amassed more than 240,000 animation clips, alongside informative [blog posts](https://blog.sakugabooru.com/) for anime fans everywhere.
14
 
15
+ With the growing interest in generative video models and AI animations, the scarcity of proper animation-related video datasets has become a challenge. This dataset was created to provide resources for animation enthusiasts and industry researchers, to help advancing the frontier of animation-video research.
 
 
 
 
 
 
 
 
 
 
16
 
17
+ Potential uses include:
18
 
19
+ - text-to-video training
20
+ - multimodal animation research
21
+ - video quality/aesthetics analysis
22
 
23
  ## Dataset Details
24
 
25
+ This dataset includes over 155,238 video clips and 8,680 images of unique or noteworthy animation:
26
 
27
+ ```yaml
 
28
  image files: 8680, video files: 155238, json files: 240242
29
  total unique files: 404160
30
  last post id: 273264
31
  ```
32
 
33
+ Note that Sakugabooru’s archives have been reduced by DMCA strikes over the years. Popular titles like [Mob Psycho 100](https://www.reddit.com/r/AnimeSakuga/comments/10du14k/alternatives_to_sakugabooru_for_mob_psycho_100/) may not appear because they were removed from the site.
34
 
35
  - **Curated by:** [trojblue](https://huggingface.co/trojblue)
36
+ - **Language(s) (NLP):** English, Japanese
37
+ - **License:** MIT
 
 
38
 
39
  ## Dataset Structure
40
 
41
+ Files are split into tar archives by post ID **modulo 1,000**:
42
 
43
+ - Example: post ID **42** goes to `0000.tar`, post ID **5306** goes to `0005.tar`.
44
+ - Each tar is about 1GB, suitable for large-batch data processing.
45
 
46
+ The dataset follows [WebDataset](https://github.com/webdataset/webdataset) conventions, with each tar containing media files (~1GB) plus metadata:
 
 
47
 
48
  ```bash
49
  ./media/0.tar
50
  # ./train/0.tar/{sakuga_5306.webm}
51
  # ./train/0.tar/{sakuga_5306.json}
 
52
  ```
53
 
54
+ The index file `./sakugabooru-index.json` is generated using `widsindex` (see [WebDataset FAQ](https://github.com/webdataset/webdataset/blob/main/FAQ.md)):
55
 
56
  ```bash
57
  widsindex *.tar > mydataset-index.json
58
  ```
59
 
 
 
 
 
60
  ## Dataset Creation
61
 
62
+ This dataset is sourced directly from Sakugabooru by querying IDs from 0 up to the latest, by Dec.28, 2024:
 
 
63
 
64
  ```bash
65
  https://www.sakugabooru.com/post/show/{id}
66
  ```
67
 
68
+ ### Data Collection and Processing
69
 
70
+ Since Sakugabooru lacks a direct JSON API, metadata were gathered by visiting each page and extracting relevant parts. The scraper code is available here: [arot-devs/sakuga-scraper](https://github.com/arot-devs/sakuga-scraper/tree/main).
71
 
72
+ Each post’s JSON metadata follows a format like:
 
 
 
 
 
 
73
 
74
  ```json
75
  {
 
77
  "post_url": "https://www.sakugabooru.com/post/show/100112",
78
  "image_url": null,
79
  "tags": {},
80
+ ...
 
 
 
 
 
 
 
 
 
81
  "status_notice": [
82
+ "This post was deleted.\n\n Reason: ..."
83
+ ]
 
84
  }
85
  ```
86
 
87
+ No additional processing was performed beyond metadata collection.
 
 
 
 
88
 
89
  ## Bias, Risks, and Limitations
90
 
91
+ Owing to DMCA takedowns, duplicates, or other factors, only about 60% (163,918 of 273,264) post IDs have attached media. The selection also tends to favor older Japanese animations.
 
 
92
 
93
  ### Recommendations
94
 
95
+ For more interesting reads about animation, visit: [Sakuga Blog The Art of Japanese Animation](https://blog.sakugabooru.com/)
 
 
96
 
97
+ You can support Sakugabooru through: [Sakugabooru | Patreon](https://www.patreon.com/Sakugabooru)
98