
# Dataset of hmg21/HMG21/HK21 (Girls' Frontline)

This is the dataset of hmg21/HMG21/HK21 (Girls' Frontline), containing 37 images and their tags.

The core tags of this character are `long_hair, hair_over_one_eye, twintails, bangs, glasses, round_eyewear, purple_eyes, breasts, grey_hair`, which are pruned in this dataset.

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)).

## List of Packages

| Name             |   Images | Size      | Download                                                                                                              | Type       | Description                                                          |
|:-----------------|---------:|:----------|:----------------------------------------------------------------------------------------------------------------------|:-----------|:---------------------------------------------------------------------|
| raw              |       37 | 39.18 MiB | [Download](https://huggingface.co/datasets/CyberHarem/hmg21_girlsfrontline/resolve/main/dataset-raw.zip)              | Waifuc-Raw | Raw data with meta information (min edge aligned to 1400 if larger). |
| 800              |       37 | 26.69 MiB | [Download](https://huggingface.co/datasets/CyberHarem/hmg21_girlsfrontline/resolve/main/dataset-800.zip)              | IMG+TXT    | dataset with the shorter side not exceeding 800 pixels.              |
| stage3-p480-800  |       80 | 50.76 MiB | [Download](https://huggingface.co/datasets/CyberHarem/hmg21_girlsfrontline/resolve/main/dataset-stage3-p480-800.zip)  | IMG+TXT    | 3-stage cropped dataset with the area not less than 480x480 pixels.  |
| 1200             |       37 | 36.16 MiB | [Download](https://huggingface.co/datasets/CyberHarem/hmg21_girlsfrontline/resolve/main/dataset-1200.zip)             | IMG+TXT    | dataset with the shorter side not exceeding 1200 pixels.             |
| stage3-p480-1200 |       80 | 66.40 MiB | [Download](https://huggingface.co/datasets/CyberHarem/hmg21_girlsfrontline/resolve/main/dataset-stage3-p480-1200.zip) | IMG+TXT    | 3-stage cropped dataset with the area not less than 480x480 pixels.  |

### Load Raw Dataset with Waifuc

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

```python
import os
import zipfile

from huggingface_hub import hf_hub_download
from waifuc.source import LocalSource

# download raw archive file
zip_file = hf_hub_download(
    repo_id='CyberHarem/hmg21_girlsfrontline',
    repo_type='dataset',
    filename='dataset-raw.zip',
)

# extract files to your directory
dataset_dir = 'dataset_dir'
os.makedirs(dataset_dir, exist_ok=True)
with zipfile.ZipFile(zip_file, 'r') as zf:
    zf.extractall(dataset_dir)

# load the dataset with waifuc
source = LocalSource(dataset_dir)
for item in source:
    print(item.image, item.meta['filename'], item.meta['tags'])
```

## List of Clusters

List of tag clustering result, maybe some outfits can be mined here.

### Raw Text Version

|   # |   Samples | Img-1                           | Img-2                           | Img-3                           | Img-4                           | Img-5                           | Tags                                                                                                                                                                                                                                                                                                                                        |
|----:|----------:|:--------------------------------|:--------------------------------|:--------------------------------|:--------------------------------|:--------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   0 |        20 | ![](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, red_socks, boots, looking_at_viewer, simple_background, long_sleeves, belt, closed_mouth, cross, jacket, knee_pads, white_background, full_body, blush, gun, scarf, black_gloves, sitting, buckle, open_coat, sleeves_past_wrists, fur_trim, hair_ornament, holding, leotard, necklace, red_footwear, single_kneehigh, striped |
|   1 |         6 | ![](samples/1/clu1-sample0.png) | ![](samples/1/clu1-sample1.png) | ![](samples/1/clu1-sample2.png) | ![](samples/1/clu1-sample3.png) | ![](samples/1/clu1-sample4.png) | 1girl, simple_background, solo, upper_body, bare_shoulders, closed_mouth, cross, looking_at_viewer, white_background, blonde_hair, blush, ponytail, sleeveless                                                                                                                                                                              |

### Table Version

|   # |   Samples | Img-1                           | Img-2                           | Img-3                           | Img-4                           | Img-5                           | 1girl   | solo   | red_socks   | boots   | looking_at_viewer   | simple_background   | long_sleeves   | belt   | closed_mouth   | cross   | jacket   | knee_pads   | white_background   | full_body   | blush   | gun   | scarf   | black_gloves   | sitting   | buckle   | open_coat   | sleeves_past_wrists   | fur_trim   | hair_ornament   | holding   | leotard   | necklace   | red_footwear   | single_kneehigh   | striped   | upper_body   | bare_shoulders   | blonde_hair   | ponytail   | sleeveless   |
|----:|----------:|:--------------------------------|:--------------------------------|:--------------------------------|:--------------------------------|:--------------------------------|:--------|:-------|:------------|:--------|:--------------------|:--------------------|:---------------|:-------|:---------------|:--------|:---------|:------------|:-------------------|:------------|:--------|:------|:--------|:---------------|:----------|:---------|:------------|:----------------------|:-----------|:----------------|:----------|:----------|:-----------|:---------------|:------------------|:----------|:-------------|:-----------------|:--------------|:-----------|:-------------|
|   0 |        20 | ![](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           | X                  | X           | X       | X     | X       | X              | X         | X        | X           | X                     | X          | X               | X         | X         | X          | X              | X                 | X         |              |                  |               |            |              |
|   1 |         6 | ![](samples/1/clu1-sample0.png) | ![](samples/1/clu1-sample1.png) | ![](samples/1/clu1-sample2.png) | ![](samples/1/clu1-sample3.png) | ![](samples/1/clu1-sample4.png) | X       | X      |             |         | X                   | X                   |                |        | X              | X       |          |             | X                  |             | X       |       |         |                |           |          |             |                       |            |                 |           |           |            |                |                   |           | X            | X                | X             | X          | X            |


task_categories:text-to-image size_categories:n<1K license:mit art not-for-all-audiences region:us
{"license": "mit", "size_categories": ["n<1K"], "task_categories": ["text-to-image"], "tags": ["art", "not-for-all-audiences"]}
TAGS
#task_categories-text-to-image #size_categories-n<1K #license-mit #art #not-for-all-audiences #region-us 

Dataset of hmg21/HMG21/HK21 (Girls' Frontline)
==============================================


This is the dataset of hmg21/HMG21/HK21 (Girls' Frontline), containing 37 images and their tags.


The core tags of this character are 'long\_hair, hair\_over\_one\_eye, twintails, bangs, glasses, round\_eyewear, purple\_eyes, breasts, grey\_hair', which are pruned in this dataset.


Images are crawled from many sites (e.g. danbooru, pixiv, zerochan ...), the auto-crawling system is powered by DeepGHS Team(huggingface organization).


List of Packages
----------------



### Load Raw Dataset with Waifuc


We provide raw dataset (including tagged images) for waifuc loading. If you need this, just run the following code


List of Clusters
----------------


List of tag clustering result, maybe some outfits can be mined here.


### Raw Text Version



### Table Version




### Load Raw Dataset with Waifuc


We provide raw dataset (including tagged images) for waifuc loading. If you need this, just run the following code


List of Clusters
----------------


List of tag clustering result, maybe some outfits can be mined here. ### Raw Text Version ### Table Version
TAGS
#task_categories-text-to-image #size_categories-n<1K #license-mit #art #not-for-all-audiences #region-us 
 ### Load Raw Dataset with Waifuc


We provide raw dataset (including tagged images) for waifuc loading. If you need this, just run the following code


List of Clusters
----------------


List of tag clustering result, maybe some outfits can be mined here. ### Raw Text Version ### Table Version