Datasets:
Add sanitized dataset card
Browse files
README.md
CHANGED
|
@@ -1,33 +1,159 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
list: float32
|
| 16 |
-
length: 17
|
| 17 |
-
splits:
|
| 18 |
-
- name: train
|
| 19 |
-
num_bytes: 198762816
|
| 20 |
-
num_examples: 887334
|
| 21 |
-
- name: test
|
| 22 |
-
num_bytes: 14380576
|
| 23 |
-
num_examples: 64199
|
| 24 |
-
download_size: 226749465
|
| 25 |
-
dataset_size: 213143392
|
| 26 |
-
configs:
|
| 27 |
-
- config_name: default
|
| 28 |
-
data_files:
|
| 29 |
-
- split: train
|
| 30 |
-
path: data/train-*
|
| 31 |
-
- split: test
|
| 32 |
-
path: data/test-*
|
| 33 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-to-text
|
| 5 |
+
tags:
|
| 6 |
+
- human-pose-estimation
|
| 7 |
+
- keypoints
|
| 8 |
+
- bounding-boxes
|
| 9 |
+
- rtmpose
|
| 10 |
+
- mmpose
|
| 11 |
+
- taichi-hd
|
| 12 |
+
pretty_name: Taichi-HD BBox Keypoint
|
| 13 |
+
size_categories:
|
| 14 |
+
- 100K<n<1M
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
---
|
| 16 |
+
|
| 17 |
+
# Taichi-HD BBox Keypoint
|
| 18 |
+
|
| 19 |
+
This dataset contains estimated person bounding boxes and COCO-17 body keypoints for [`ryushinn/Taichi-HD`](https://huggingface.co/datasets/ryushinn/Taichi-HD). It is an annotations-only sidecar dataset: it does **not** duplicate the source images.
|
| 20 |
+
|
| 21 |
+
Rows preserve the same split names and row order as the source dataset. To pair an annotation row with its image, load the same split from `ryushinn/Taichi-HD` and use the same row index.
|
| 22 |
+
|
| 23 |
+
## Dataset structure
|
| 24 |
+
|
| 25 |
+
| Split | Rows | Detected person rows |
|
| 26 |
+
| --- | ---: | ---: |
|
| 27 |
+
| `train` | 887,334 | 887,302 |
|
| 28 |
+
| `test` | 64,199 | 64,191 |
|
| 29 |
+
|
| 30 |
+
Each row has exactly four columns:
|
| 31 |
+
|
| 32 |
+
| Column | Type / shape | Description |
|
| 33 |
+
| --- | --- | --- |
|
| 34 |
+
| `bboxes_xyxy` | `float32[4]` | Highest-confidence detected person box as `[x1, y1, x2, y2]` in source-image pixel coordinates. |
|
| 35 |
+
| `bbox_scores` | `float32` | Confidence score for the selected person bounding box. |
|
| 36 |
+
| `keypoints_xy` | `float32[17][2]` | Estimated COCO-17 body keypoints in source-image pixel coordinates. |
|
| 37 |
+
| `keypoint_scores` | `float32[17]` | Confidence score for each keypoint. |
|
| 38 |
+
|
| 39 |
+
No source indices, labels, local file paths, or provenance columns are stored in the dataset rows.
|
| 40 |
+
|
| 41 |
+
For missing detections, `bboxes_xyxy` and `keypoints_xy` contain NaN coordinates, `bbox_scores` is `0.0`, and `keypoint_scores` contains zeros.
|
| 42 |
+
|
| 43 |
+
## Keypoint order
|
| 44 |
+
|
| 45 |
+
The 17 keypoints follow the COCO body convention:
|
| 46 |
+
|
| 47 |
+
| Index | Name |
|
| 48 |
+
| ---: | --- |
|
| 49 |
+
| 0 | nose |
|
| 50 |
+
| 1 | left_eye |
|
| 51 |
+
| 2 | right_eye |
|
| 52 |
+
| 3 | left_ear |
|
| 53 |
+
| 4 | right_ear |
|
| 54 |
+
| 5 | left_shoulder |
|
| 55 |
+
| 6 | right_shoulder |
|
| 56 |
+
| 7 | left_elbow |
|
| 57 |
+
| 8 | right_elbow |
|
| 58 |
+
| 9 | left_wrist |
|
| 59 |
+
| 10 | right_wrist |
|
| 60 |
+
| 11 | left_hip |
|
| 61 |
+
| 12 | right_hip |
|
| 62 |
+
| 13 | left_knee |
|
| 63 |
+
| 14 | right_knee |
|
| 64 |
+
| 15 | left_ankle |
|
| 65 |
+
| 16 | right_ankle |
|
| 66 |
+
|
| 67 |
+
Skeleton edges used for visualization:
|
| 68 |
+
|
| 69 |
+
```python
|
| 70 |
+
[
|
| 71 |
+
(15, 13), (13, 11), (16, 14), (14, 12),
|
| 72 |
+
(11, 12), (5, 11), (6, 12), (5, 6),
|
| 73 |
+
(5, 7), (6, 8), (7, 9), (8, 10),
|
| 74 |
+
(1, 2), (0, 1), (0, 2), (1, 3),
|
| 75 |
+
(2, 4), (3, 5), (4, 6),
|
| 76 |
+
]
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
## Model configuration
|
| 80 |
+
|
| 81 |
+
Annotations were generated with OpenMMLab models:
|
| 82 |
+
|
| 83 |
+
- Person detector: **RTMDet-M COCO person detector**
|
| 84 |
+
- Config: `rtmdet_m_8xb32-300e_coco.py`
|
| 85 |
+
- Checkpoint: `rtmdet_m_8xb32-300e_coco_20220719_112220-229f527c.pth`
|
| 86 |
+
- Body pose estimator: **RTMPose-M COCO**
|
| 87 |
+
- Config: `rtmpose-m_8xb256-420e_coco-256x192.py`
|
| 88 |
+
- Checkpoint: `rtmpose-m_simcc-coco_pt-aic-coco_420e-256x192-d8dd5ca4_20230127.pth`
|
| 89 |
+
|
| 90 |
+
Reference: Jiang et al., **RTMPose: Real-Time Multi-Person Pose Estimation based on MMPose**, arXiv:2303.07399.
|
| 91 |
+
|
| 92 |
+
## Re-create the dataset
|
| 93 |
+
|
| 94 |
+
Install OpenMMLab dependencies in an environment with PyTorch and CUDA support:
|
| 95 |
+
|
| 96 |
+
```bash
|
| 97 |
+
pip install "setuptools>=70,<81" openmim
|
| 98 |
+
mim install mmengine
|
| 99 |
+
mim install "mmcv>=2.0.1,<2.2.0"
|
| 100 |
+
mim install "mmdet>=3.1.0"
|
| 101 |
+
mim install "mmpose>=1.1.0"
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
Generate the annotations:
|
| 105 |
+
|
| 106 |
+
```bash
|
| 107 |
+
python scripts/create_taichi_hd_keypoints_hf.py \
|
| 108 |
+
--source-repo ryushinn/Taichi-HD \
|
| 109 |
+
--splits train,test \
|
| 110 |
+
--chunk-size 10000 \
|
| 111 |
+
--det-batch-size 16 \
|
| 112 |
+
--device cuda:0 \
|
| 113 |
+
--output-dir data/hf_datasets/taichi_hd_rtmpose_coco17_keypoints \
|
| 114 |
+
--work-dir data/hf_datasets/taichi_hd_rtmpose_coco17_keypoints_chunks
|
| 115 |
+
```
|
| 116 |
+
|
| 117 |
+
The script is chunked and resumable. If interrupted, rerun the same command and completed chunks will be reused.
|
| 118 |
+
|
| 119 |
+
Upload the generated dataset without uploading any metadata JSON:
|
| 120 |
+
|
| 121 |
+
```bash
|
| 122 |
+
python - <<'PY'
|
| 123 |
+
from datasets import load_from_disk
|
| 124 |
+
|
| 125 |
+
ds = load_from_disk("data/hf_datasets/taichi_hd_rtmpose_coco17_keypoints")
|
| 126 |
+
ds.push_to_hub("ryushinn/Taichi-HD-BBox-Keypoint", max_shard_size="500MB")
|
| 127 |
+
PY
|
| 128 |
+
```
|
| 129 |
+
|
| 130 |
+
## Usage
|
| 131 |
+
|
| 132 |
+
```python
|
| 133 |
+
from datasets import load_dataset
|
| 134 |
+
|
| 135 |
+
images = load_dataset("ryushinn/Taichi-HD", split="train")
|
| 136 |
+
ann = load_dataset("ryushinn/Taichi-HD-BBox-Keypoint", split="train")
|
| 137 |
+
|
| 138 |
+
idx = 0
|
| 139 |
+
image = images[idx]["image"]
|
| 140 |
+
bbox = ann[idx]["bboxes_xyxy"]
|
| 141 |
+
keypoints_xy = ann[idx]["keypoints_xy"]
|
| 142 |
+
keypoint_scores = ann[idx]["keypoint_scores"]
|
| 143 |
+
```
|
| 144 |
+
|
| 145 |
+
## Visualization previews
|
| 146 |
+
|
| 147 |
+
The following preview images show source frames with the estimated person bounding box and COCO-17 skeleton overlayed.
|
| 148 |
+
|
| 149 |
+
| Train row 0 | Train row 443667 |
|
| 150 |
+
| --- | --- |
|
| 151 |
+
|  |  |
|
| 152 |
+
|
| 153 |
+
| Test row 0 | Test row 32099 |
|
| 154 |
+
| --- | --- |
|
| 155 |
+
|  |  |
|
| 156 |
+
|
| 157 |
+
## Notes
|
| 158 |
+
|
| 159 |
+
These annotations are model-estimated pseudo-labels, not manual ground-truth annotations. They are intended for research workflows where reproducible person bounding boxes and COCO-17 body pose estimates are useful alongside the original `ryushinn/Taichi-HD` videos/frames.
|