Kohaku-Blueleaf
commited on
Commit
•
5e62f71
1
Parent(s):
974865b
fix readme
Browse files
README.md
CHANGED
@@ -12,10 +12,10 @@ Danbooru 2023 datasets: https://huggingface.co/datasets/nyanko7/danbooru2023
|
|
12 |
|
13 |
The latest entry of this database is id 7,866,491. Which is newer than nyanko7's dataset.
|
14 |
|
15 |
-
This dataset contains a sqlite db file which have all the tags and posts metadata in it
|
16 |
The Peewee ORM config file is provided too, plz check it for more information. (Especially on how I link posts and tags together)
|
17 |
|
18 |
-
The original data is from the official dump of the posts info
|
19 |
Check this [link](https://console.cloud.google.com/storage/browser/danbooru_public/data) for more info.
|
20 |
|
21 |
## Format
|
@@ -54,8 +54,8 @@ Some fields in Post/Tags use my custom enum field to store type/category or some
|
|
54 |
|
55 |
#### Tag List
|
56 |
|
57 |
-
I use peewee ManyToManyField to implement the Tag List things. Which utilize a through model which have all the pair of Tag and Post
|
58 |
-
Since it is very likely we will want to use Tag to query posts, so many-to-many is better
|
59 |
The con of this design is the database file will be 1.5x larger than before(we have 0.25B entries for the post-tag pairs), but the query speed become 2~3x faster, so I think it is acceptable.
|
60 |
|
61 |
After done some checking, I can ensure that all the "categorical tag list" can be done by full list + filter, and that is how I done it now. Check the db.py for more details.
|
|
|
12 |
|
13 |
The latest entry of this database is id 7,866,491. Which is newer than nyanko7's dataset.
|
14 |
|
15 |
+
This dataset contains a sqlite db file which have all the tags and posts metadata in it.<br>
|
16 |
The Peewee ORM config file is provided too, plz check it for more information. (Especially on how I link posts and tags together)
|
17 |
|
18 |
+
The original data is from the official dump of the posts info.<br>
|
19 |
Check this [link](https://console.cloud.google.com/storage/browser/danbooru_public/data) for more info.
|
20 |
|
21 |
## Format
|
|
|
54 |
|
55 |
#### Tag List
|
56 |
|
57 |
+
I use peewee ManyToManyField to implement the Tag List things. Which utilize a through model which have all the pair of Tag and Post<br>
|
58 |
+
Since it is very likely we will want to use Tag to query posts, so many-to-many is better.<br>
|
59 |
The con of this design is the database file will be 1.5x larger than before(we have 0.25B entries for the post-tag pairs), but the query speed become 2~3x faster, so I think it is acceptable.
|
60 |
|
61 |
After done some checking, I can ensure that all the "categorical tag list" can be done by full list + filter, and that is how I done it now. Check the db.py for more details.
|