Datasets:
Document the Wikimedia Commons addition and mixed licensing
Browse files
README.md
CHANGED
|
@@ -1,78 +1,125 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: other
|
| 3 |
-
license_name:
|
| 4 |
-
pretty_name: KING2 Stickman Dataset
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
tags:
|
| 8 |
-
- stick-figure
|
| 9 |
-
- pose
|
| 10 |
-
- stickman
|
| 11 |
-
- line-drawing
|
| 12 |
-
- text-to-image
|
| 13 |
-
- lora
|
| 14 |
-
task_categories:
|
| 15 |
-
- text-to-image
|
| 16 |
-
size_categories:
|
| 17 |
-
- 10K<n<100K
|
| 18 |
-
---
|
| 19 |
-
|
| 20 |
-
# KING2 Stickman Dataset — 10,
|
| 21 |
-
|
| 22 |
-
Curated dataset of
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
| Source |
|
| 28 |
-
|---|---|
|
| 29 |
-
|
|
| 30 |
-
|
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: mixed-see-below
|
| 4 |
+
pretty_name: KING2 Stickman Dataset
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- stick-figure
|
| 9 |
+
- pose
|
| 10 |
+
- stickman
|
| 11 |
+
- line-drawing
|
| 12 |
+
- text-to-image
|
| 13 |
+
- lora
|
| 14 |
+
task_categories:
|
| 15 |
+
- text-to-image
|
| 16 |
+
size_categories:
|
| 17 |
+
- 10K<n<100K
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# KING2 Stickman Dataset — 10,085 images
|
| 21 |
+
|
| 22 |
+
Curated dataset of stick-figure images with English captions, built for training the
|
| 23 |
+
**KING2-IMAGE** SDXL LoRA — model `RASHID778/king2-image`, adapter `stickman`.
|
| 24 |
+
|
| 25 |
+
Two parts with **different licenses** — see the License section before reuse:
|
| 26 |
+
|
| 27 |
+
| Range | Count | Source | License |
|
| 28 |
+
|---|---|---|---|
|
| 29 |
+
| `images/000000.png` – `009999.png` | 10,000 | HumanML3D motion-capture renders (synthetic skeleton) | Research use — see below |
|
| 30 |
+
| `images_commons/010000.png` – `010084.png` | 85 | Real illustrations, Wikimedia Commons | Per-image CC0/PD/CC BY/CC BY-SA — see `ATTRIBUTION.md` |
|
| 31 |
+
|
| 32 |
+
Note: the Commons addition lives in a **separate `images_commons/` / `captions_commons/`**
|
| 33 |
+
directory pair, not inside `images/` — Hugging Face caps git directories at 10,000 files,
|
| 34 |
+
and `images/` is already exactly at that cap.
|
| 35 |
+
|
| 36 |
+
## Sources
|
| 37 |
+
|
| 38 |
+
| Source | Contribution |
|
| 39 |
+
|---|---|
|
| 40 |
+
| [Deepthought42424/humanml3d_stick_figures_5_frames](https://huggingface.co/datasets/Deepthought42424/humanml3d_stick_figures_5_frames) | 29,228 motion sequences (832,864 frames scanned) — primary image source |
|
| 41 |
+
| [hassanjbara/humanml3d_stick_figures](https://huggingface.co/datasets/hassanjbara/humanml3d_stick_figures) | 21 sequences (subset of the same corpus, deduplicated by sample_id) |
|
| 42 |
+
| [HumanML3D texts](https://github.com/EricGuo5513/HumanML3D) | official motion descriptions used as captions (keyed by sample_id) |
|
| 43 |
+
| [Wikimedia Commons](https://commons.wikimedia.org/) | 85 real hand-drawn / vector stickman illustrations, individually license-verified (see `ATTRIBUTION.md`) |
|
| 44 |
+
|
| 45 |
+
A wider search of Hugging Face, Kaggle and GitHub (keywords: stickman, stick figure,
|
| 46 |
+
line drawing, skeleton drawing, stickman pose/action…) found **no other public dataset**
|
| 47 |
+
of comparable scale and usable licensing for the primary 10,000-image corpus.
|
| 48 |
+
|
| 49 |
+
## Pipeline (images 000000–009999)
|
| 50 |
+
|
| 51 |
+
1. **Frame selection** — for every motion sequence, 3 candidate frames at 30/50/70% of
|
| 52 |
+
the motion were decoded and the highest-scoring mid-action pose kept (1 image per
|
| 53 |
+
sequence, maximizing pose diversity).
|
| 54 |
+
2. **Quality scoring (1–10)** — heuristic on ink ratio, contrast (std), figure bounding-box
|
| 55 |
+
coverage and edge clipping. Only images with **score ≥ 8** were kept.
|
| 56 |
+
3. **Deduplication** — exact + near-duplicate removal via 256-bit dHash with 32-bit-band
|
| 57 |
+
LSH (Hamming ≤ 12): **5,936 near-duplicates removed** (23,292 unique remained).
|
| 58 |
+
4. **Standardization** — every image converted to **1024×1024, RGB, PNG** (source frames
|
| 59 |
+
are square 512×512 renders; LANCZOS upscale — lossless in practice for line art).
|
| 60 |
+
5. **Captioning** — the official HumanML3D text for each motion, rewritten to stickman
|
| 61 |
+
phrasing (e.g. *"a person is taking a picture"* → *"a stickman is taking a picture,
|
| 62 |
+
simple black and white stick figure line drawing"*), plus derived action tags.
|
| 63 |
+
6. **Final selection** — top 10,000 by quality score.
|
| 64 |
+
|
| 65 |
+
## Addition (images 010000–010084): real Wikimedia Commons illustrations
|
| 66 |
+
|
| 67 |
+
The pipeline above produces motion-capture-derived skeleton poses only (see
|
| 68 |
+
*Known limitations* below). To add real hand-drawn/vector stickman art, Wikimedia
|
| 69 |
+
Commons was searched (category `Stick figures` + full-text search for
|
| 70 |
+
"stickman"/"stick figure"/"Strichfigur"), and every candidate's `imageinfo` license
|
| 71 |
+
metadata was fetched via the Commons API and checked programmatically — only files
|
| 72 |
+
tagged Public Domain, CC0, CC BY, or CC BY-SA (with no "trademarked"/other restriction
|
| 73 |
+
flag) were kept. Results were then manually filtered for actual relevance (excluding
|
| 74 |
+
lookalike matches like ancient pottery depicting a "youth with a stick", museum
|
| 75 |
+
walking-stick artifacts, and real-world hazard-sign photography) and for safe subject
|
| 76 |
+
matter. Each kept image was normalized to 1024×1024 RGB PNG (aspect-preserving resize,
|
| 77 |
+
centered on a white canvas, matching the rest of the dataset) and captioned from its
|
| 78 |
+
Commons title.
|
| 79 |
+
|
| 80 |
+
**Full per-image attribution (author, license, source link) is in `ATTRIBUTION.md`** —
|
| 81 |
+
required reading before reuse, since CC BY / CC BY-SA require attribution and
|
| 82 |
+
ShareAlike compliance on redistribution.
|
| 83 |
+
|
| 84 |
+
## Structure
|
| 85 |
+
|
| 86 |
+
```
|
| 87 |
+
dataset/
|
| 88 |
+
├── images/ 10,000 × 1024×1024 RGB PNG (000000.png … 009999.png) — HumanML3D
|
| 89 |
+
├── captions/ one .txt caption per image (same basename)
|
| 90 |
+
├── images_commons/ 85 × 1024×1024 RGB PNG (010000.png … 010084.png) — Wikimedia Commons
|
| 91 |
+
├── captions_commons/ one .txt caption per image (same basename)
|
| 92 |
+
├── metadata.jsonl file_name, caption, tags, source, + per-source fields (all 10,085 rows)
|
| 93 |
+
├── ATTRIBUTION.md per-image author/license/source for images_commons/*
|
| 94 |
+
└── README.md
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
## metadata.jsonl examples
|
| 98 |
+
|
| 99 |
+
HumanML3D-derived (000000–009999):
|
| 100 |
+
```json
|
| 101 |
+
{"file_name": "images/000000.png", "caption": "a stickman walking in a strong manner, simple black and white stick figure line drawing", "tags": ["stickman", "stick figure", "pose", "line drawing", "minimal", "black and white", "walking"], "quality_score": 10, "source": "humanml3d_stick_figures_5_frames", "sample_id": "...", "frame_index": 12}
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
Wikimedia Commons addition (010000–010084):
|
| 105 |
+
```json
|
| 106 |
+
{"file_name": "images_commons/010000.png", "caption": "a stickman illustration, simple black and white stick figure line drawing", "tags": ["stickman", "stick figure", "wikimedia-commons", "real-illustration"], "source": "wikimedia_commons", "commons_title": "File:HD@DH.nrw Strichfigur 1.svg", "commons_url": "https://commons.wikimedia.org/wiki/File:HD@DH.nrw_Strichfigur_1.svg", "license": "CC BY 4.0", "license_url": "...", "artist": "HD@DH.nrw | Michelle Dahlmanns"}
|
| 107 |
+
```
|
| 108 |
+
|
| 109 |
+
## Known limitations
|
| 110 |
+
|
| 111 |
+
- **Single visual style (000000–009999)**: all HumanML3D-derived images are thick-stroke
|
| 112 |
+
skeleton renders on white — no head circle, no colors, no backgrounds, no objects.
|
| 113 |
+
The 85-image Commons addition partially addresses this with real illustrated
|
| 114 |
+
stick-figure art, but is still a small sample relative to the main corpus.
|
| 115 |
+
- **Single figure per image (000000–009999)**: HumanML3D motions are single-person; no
|
| 116 |
+
multi-figure scenes (a few images in the Commons addition do show multiple figures).
|
| 117 |
+
- **License is mixed — read before reuse:**
|
| 118 |
+
- `images/000000.png`–`009999.png`: HumanML3D derives from AMASS/HumanAct12, which
|
| 119 |
+
carry academic/research licenses. The upstream HF datasets declare no explicit
|
| 120 |
+
license. Treat this range as **research use**; review licensing before commercial
|
| 121 |
+
deployment.
|
| 122 |
+
- `images/010000.png`–`010084.png`: each image is individually Public Domain, CC0,
|
| 123 |
+
CC BY, or CC BY-SA — see `ATTRIBUTION.md` for the exact license and required
|
| 124 |
+
attribution per file. CC BY-SA files impose ShareAlike obligations on redistribution
|
| 125 |
+
of derivative datasets (not on model weights trained from them).
|