Publish character 'sara (Touhou)' to repository, on 2024-01-15 05:47:36 UTC
Browse files- README.md +75 -0
- dataset-1200.zip +3 -0
- dataset-800.zip +3 -0
- dataset-raw.zip +3 -0
- dataset-stage3-p480-1200.zip +3 -0
- dataset-stage3-p480-800.zip +3 -0
- meta.json +69 -0
- samples/0/clu0-sample0.png +3 -0
- samples/0/clu0-sample1.png +3 -0
- samples/0/clu0-sample2.png +3 -0
- samples/0/clu0-sample3.png +3 -0
- samples/0/clu0-sample4.png +3 -0
README.md
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
task_categories:
|
4 |
+
- text-to-image
|
5 |
+
tags:
|
6 |
+
- art
|
7 |
+
- not-for-all-audiences
|
8 |
+
size_categories:
|
9 |
+
- n<1K
|
10 |
+
---
|
11 |
+
|
12 |
+
# Dataset of sara/サラ (Touhou)
|
13 |
+
|
14 |
+
This is the dataset of sara/サラ (Touhou), containing 58 images and their tags.
|
15 |
+
|
16 |
+
The core tags of this character are `pink_hair, short_hair, pink_eyes`, which are pruned in this dataset.
|
17 |
+
|
18 |
+
Images are crawled from many sites (e.g. danbooru, pixiv, zerochan ...), the auto-crawling system is powered by [DeepGHS Team](https://github.com/deepghs)([huggingface organization](https://huggingface.co/deepghs)).
|
19 |
+
|
20 |
+
## List of Packages
|
21 |
+
|
22 |
+
| Name | Images | Size | Download | Type | Description |
|
23 |
+
|:-----------------|---------:|:----------|:-------------------------------------------------------------------------------------------------------------|:-----------|:---------------------------------------------------------------------|
|
24 |
+
| raw | 58 | 32.62 MiB | [Download](https://huggingface.co/datasets/CyberHarem/sara_touhou/resolve/main/dataset-raw.zip) | Waifuc-Raw | Raw data with meta information (min edge aligned to 1400 if larger). |
|
25 |
+
| 800 | 58 | 26.83 MiB | [Download](https://huggingface.co/datasets/CyberHarem/sara_touhou/resolve/main/dataset-800.zip) | IMG+TXT | dataset with the shorter side not exceeding 800 pixels. |
|
26 |
+
| stage3-p480-800 | 92 | 41.71 MiB | [Download](https://huggingface.co/datasets/CyberHarem/sara_touhou/resolve/main/dataset-stage3-p480-800.zip) | IMG+TXT | 3-stage cropped dataset with the area not less than 480x480 pixels. |
|
27 |
+
| 1200 | 58 | 31.45 MiB | [Download](https://huggingface.co/datasets/CyberHarem/sara_touhou/resolve/main/dataset-1200.zip) | IMG+TXT | dataset with the shorter side not exceeding 1200 pixels. |
|
28 |
+
| stage3-p480-1200 | 92 | 46.89 MiB | [Download](https://huggingface.co/datasets/CyberHarem/sara_touhou/resolve/main/dataset-stage3-p480-1200.zip) | IMG+TXT | 3-stage cropped dataset with the area not less than 480x480 pixels. |
|
29 |
+
|
30 |
+
### Load Raw Dataset with Waifuc
|
31 |
+
|
32 |
+
We provide raw dataset (including tagged images) for [waifuc](https://deepghs.github.io/waifuc/main/tutorials/installation/index.html) loading. If you need this, just run the following code
|
33 |
+
|
34 |
+
```python
|
35 |
+
import os
|
36 |
+
import zipfile
|
37 |
+
|
38 |
+
from huggingface_hub import hf_hub_download
|
39 |
+
from waifuc.source import LocalSource
|
40 |
+
|
41 |
+
# download raw archive file
|
42 |
+
zip_file = hf_hub_download(
|
43 |
+
repo_id='CyberHarem/sara_touhou',
|
44 |
+
repo_type='dataset',
|
45 |
+
filename='dataset-raw.zip',
|
46 |
+
)
|
47 |
+
|
48 |
+
# extract files to your directory
|
49 |
+
dataset_dir = 'dataset_dir'
|
50 |
+
os.makedirs(dataset_dir, exist_ok=True)
|
51 |
+
with zipfile.ZipFile(zip_file, 'r') as zf:
|
52 |
+
zf.extractall(dataset_dir)
|
53 |
+
|
54 |
+
# load the dataset with waifuc
|
55 |
+
source = LocalSource(dataset_dir)
|
56 |
+
for item in source:
|
57 |
+
print(item.image, item.meta['filename'], item.meta['tags'])
|
58 |
+
```
|
59 |
+
|
60 |
+
## List of Clusters
|
61 |
+
|
62 |
+
List of tag clustering result, maybe some outfits can be mined here.
|
63 |
+
|
64 |
+
### Raw Text Version
|
65 |
+
|
66 |
+
| # | Samples | Img-1 | Img-2 | Img-3 | Img-4 | Img-5 | Tags |
|
67 |
+
|----:|----------:|:--------------------------------|:--------------------------------|:--------------------------------|:--------------------------------|:--------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------|
|
68 |
+
| 0 | 33 | ![](samples/0/clu0-sample0.png) | ![](samples/0/clu0-sample1.png) | ![](samples/0/clu0-sample2.png) | ![](samples/0/clu0-sample3.png) | ![](samples/0/clu0-sample4.png) | 1girl, solo, smile, red_dress, looking_at_viewer, one_side_up, short_sleeves, simple_background, bangs, full_body, open_mouth, white_background |
|
69 |
+
|
70 |
+
### Table Version
|
71 |
+
|
72 |
+
| # | Samples | Img-1 | Img-2 | Img-3 | Img-4 | Img-5 | 1girl | solo | smile | red_dress | looking_at_viewer | one_side_up | short_sleeves | simple_background | bangs | full_body | open_mouth | white_background |
|
73 |
+
|----:|----------:|:--------------------------------|:--------------------------------|:--------------------------------|:--------------------------------|:--------------------------------|:--------|:-------|:--------|:------------|:--------------------|:--------------|:----------------|:--------------------|:--------|:------------|:-------------|:-------------------|
|
74 |
+
| 0 | 33 | ![](samples/0/clu0-sample0.png) | ![](samples/0/clu0-sample1.png) | ![](samples/0/clu0-sample2.png) | ![](samples/0/clu0-sample3.png) | ![](samples/0/clu0-sample4.png) | X | X | X | X | X | X | X | X | X | X | X | X |
|
75 |
+
|
dataset-1200.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eca4372adaf0be7c68e8c01354a2b806d7d8e4e54e1a1c26aee0b0c7c19443ac
|
3 |
+
size 32981559
|
dataset-800.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0fc6844f2973f9c20569fc07bd025636258577bf6ed9837fc06c9a3c335e4417
|
3 |
+
size 28128914
|
dataset-raw.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ce16d5c448c848b4d2cd2a31fb85a24425aec14890f50ee950c88649a93e869f
|
3 |
+
size 34209452
|
dataset-stage3-p480-1200.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:45538e6d55bf466eb416a4798ea0e9dcfe86a2bd2f6f709e193cd27b3d5ba86e
|
3 |
+
size 49169120
|
dataset-stage3-p480-800.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:676da0bfd500d70054e757b34a41f42fd0e6545507887b4f42b625bbaf8156f0
|
3 |
+
size 43738951
|
meta.json
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bangumi": null,
|
3 |
+
"base_size": 58,
|
4 |
+
"clusters": [
|
5 |
+
{
|
6 |
+
"id": 0,
|
7 |
+
"size": 33,
|
8 |
+
"tags": [
|
9 |
+
"1girl",
|
10 |
+
"solo",
|
11 |
+
"smile",
|
12 |
+
"red_dress",
|
13 |
+
"looking_at_viewer",
|
14 |
+
"one_side_up",
|
15 |
+
"short_sleeves",
|
16 |
+
"simple_background",
|
17 |
+
"bangs",
|
18 |
+
"full_body",
|
19 |
+
"open_mouth",
|
20 |
+
"white_background"
|
21 |
+
]
|
22 |
+
}
|
23 |
+
],
|
24 |
+
"core_tags": [
|
25 |
+
"pink_hair",
|
26 |
+
"short_hair",
|
27 |
+
"pink_eyes"
|
28 |
+
],
|
29 |
+
"display_name": "sara/サラ (Touhou)",
|
30 |
+
"name": "sara (Touhou)",
|
31 |
+
"packages": {
|
32 |
+
"1200": {
|
33 |
+
"description": "dataset with the shorter side not exceeding 1200 pixels.",
|
34 |
+
"filename": "dataset-1200.zip",
|
35 |
+
"package_size": 32981559,
|
36 |
+
"size": 58,
|
37 |
+
"type": "IMG+TXT"
|
38 |
+
},
|
39 |
+
"800": {
|
40 |
+
"description": "dataset with the shorter side not exceeding 800 pixels.",
|
41 |
+
"filename": "dataset-800.zip",
|
42 |
+
"package_size": 28128914,
|
43 |
+
"size": 58,
|
44 |
+
"type": "IMG+TXT"
|
45 |
+
},
|
46 |
+
"raw": {
|
47 |
+
"description": "Raw data with meta information (min edge aligned to 1400 if larger).",
|
48 |
+
"filename": "dataset-raw.zip",
|
49 |
+
"package_size": 34209452,
|
50 |
+
"size": 58,
|
51 |
+
"type": "Waifuc-Raw"
|
52 |
+
},
|
53 |
+
"stage3-p480-1200": {
|
54 |
+
"description": "3-stage cropped dataset with the area not less than 480x480 pixels.",
|
55 |
+
"filename": "dataset-stage3-p480-1200.zip",
|
56 |
+
"package_size": 49169120,
|
57 |
+
"size": 92,
|
58 |
+
"type": "IMG+TXT"
|
59 |
+
},
|
60 |
+
"stage3-p480-800": {
|
61 |
+
"description": "3-stage cropped dataset with the area not less than 480x480 pixels.",
|
62 |
+
"filename": "dataset-stage3-p480-800.zip",
|
63 |
+
"package_size": 43738951,
|
64 |
+
"size": 92,
|
65 |
+
"type": "IMG+TXT"
|
66 |
+
}
|
67 |
+
},
|
68 |
+
"version": "v1.5"
|
69 |
+
}
|
samples/0/clu0-sample0.png
ADDED
![]() |
Git LFS Details
|
samples/0/clu0-sample1.png
ADDED
![]() |
Git LFS Details
|
samples/0/clu0-sample2.png
ADDED
![]() |
Git LFS Details
|
samples/0/clu0-sample3.png
ADDED
![]() |
Git LFS Details
|
samples/0/clu0-sample4.png
ADDED
![]() |
Git LFS Details
|