Datasets:
Add sanitized dataset card
Browse files
README.md
CHANGED
|
@@ -1,28 +1,164 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
list: float32
|
| 16 |
-
length: 21
|
| 17 |
-
splits:
|
| 18 |
-
- name: train
|
| 19 |
-
num_bytes: 3012672
|
| 20 |
-
num_examples: 11076
|
| 21 |
-
download_size: 3202787
|
| 22 |
-
dataset_size: 3012672
|
| 23 |
-
configs:
|
| 24 |
-
- config_name: default
|
| 25 |
-
data_files:
|
| 26 |
-
- split: train
|
| 27 |
-
path: data/train-*
|
| 28 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-to-text
|
| 5 |
+
tags:
|
| 6 |
+
- hand-pose-estimation
|
| 7 |
+
- keypoints
|
| 8 |
+
- bounding-boxes
|
| 9 |
+
- rtmpose
|
| 10 |
+
- mmpose
|
| 11 |
+
- 11k-hands
|
| 12 |
+
pretty_name: 11k-Hands BBox Keypoint
|
| 13 |
+
size_categories:
|
| 14 |
+
- 10K<n<100K
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
---
|
| 16 |
+
|
| 17 |
+
# 11k-Hands BBox Keypoint
|
| 18 |
+
|
| 19 |
+
This dataset contains estimated hand bounding boxes and 21-point hand keypoints for [`ryushinn/11k-Hands`](https://huggingface.co/datasets/ryushinn/11k-Hands). It is an annotations-only sidecar dataset: it does **not** duplicate the source images.
|
| 20 |
+
|
| 21 |
+
Rows preserve the same split and row order as the source dataset. To pair an annotation row with its image, load the same split from `ryushinn/11k-Hands` and use the same row index.
|
| 22 |
+
|
| 23 |
+
## Dataset structure
|
| 24 |
+
|
| 25 |
+
The dataset has one split:
|
| 26 |
+
|
| 27 |
+
| Split | Rows |
|
| 28 |
+
| --- | ---: |
|
| 29 |
+
| `train` | 11,076 |
|
| 30 |
+
|
| 31 |
+
Each row has exactly four columns:
|
| 32 |
+
|
| 33 |
+
| Column | Type / shape | Description |
|
| 34 |
+
| --- | --- | --- |
|
| 35 |
+
| `bboxes_xyxy` | `float32[4]` | Highest-confidence detected hand box as `[x1, y1, x2, y2]` in source-image pixel coordinates. |
|
| 36 |
+
| `bbox_scores` | `float32` | Confidence score for the selected hand bounding box. |
|
| 37 |
+
| `keypoints_xy` | `float32[21][2]` | Estimated 21-point hand keypoints in source-image pixel coordinates. |
|
| 38 |
+
| `keypoint_scores` | `float32[21]` | Confidence score for each keypoint. |
|
| 39 |
+
|
| 40 |
+
No source indices, labels, local file paths, or provenance columns are stored in the dataset rows.
|
| 41 |
+
|
| 42 |
+
## Keypoint order
|
| 43 |
+
|
| 44 |
+
The 21 keypoints follow the COCO-WholeBody hand convention used by MMPose:
|
| 45 |
+
|
| 46 |
+
| Index | Name |
|
| 47 |
+
| ---: | --- |
|
| 48 |
+
| 0 | wrist |
|
| 49 |
+
| 1 | thumb1 |
|
| 50 |
+
| 2 | thumb2 |
|
| 51 |
+
| 3 | thumb3 |
|
| 52 |
+
| 4 | thumb4 |
|
| 53 |
+
| 5 | forefinger1 |
|
| 54 |
+
| 6 | forefinger2 |
|
| 55 |
+
| 7 | forefinger3 |
|
| 56 |
+
| 8 | forefinger4 |
|
| 57 |
+
| 9 | middle_finger1 |
|
| 58 |
+
| 10 | middle_finger2 |
|
| 59 |
+
| 11 | middle_finger3 |
|
| 60 |
+
| 12 | middle_finger4 |
|
| 61 |
+
| 13 | ring_finger1 |
|
| 62 |
+
| 14 | ring_finger2 |
|
| 63 |
+
| 15 | ring_finger3 |
|
| 64 |
+
| 16 | ring_finger4 |
|
| 65 |
+
| 17 | pinky_finger1 |
|
| 66 |
+
| 18 | pinky_finger2 |
|
| 67 |
+
| 19 | pinky_finger3 |
|
| 68 |
+
| 20 | pinky_finger4 |
|
| 69 |
+
|
| 70 |
+
Skeleton edges used for visualization:
|
| 71 |
+
|
| 72 |
+
```python
|
| 73 |
+
[
|
| 74 |
+
(0, 1), (1, 2), (2, 3), (3, 4),
|
| 75 |
+
(0, 5), (5, 6), (6, 7), (7, 8),
|
| 76 |
+
(0, 9), (9, 10), (10, 11), (11, 12),
|
| 77 |
+
(0, 13), (13, 14), (14, 15), (15, 16),
|
| 78 |
+
(0, 17), (17, 18), (18, 19), (19, 20),
|
| 79 |
+
]
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
## Model configuration
|
| 83 |
+
|
| 84 |
+
Annotations were generated with OpenMMLab models:
|
| 85 |
+
|
| 86 |
+
- Hand detector: **RTMDet-Nano hand detector**
|
| 87 |
+
- Config: `rtmdet_nano_320-8xb32_hand.py`
|
| 88 |
+
- Checkpoint: `rtmdet_nano_8xb32-300e_hand-267f9c8f.pth`
|
| 89 |
+
- Hand pose estimator: **RTMPose-M Hand5**
|
| 90 |
+
- Config: `rtmpose-m_8xb256-210e_hand5-256x256.py`
|
| 91 |
+
- Checkpoint: `rtmpose-m_simcc-hand5_pt-aic-coco_210e-256x256-74fb594_20230320.pth`
|
| 92 |
+
|
| 93 |
+
The RTMPose-M Hand5 model is trained on a mixture of hand datasets including COCO-WholeBody-Hand, OneHand10K, FreiHand2D, RHD2D, and Halpe hand annotations.
|
| 94 |
+
|
| 95 |
+
Reference: Jiang et al., **RTMPose: Real-Time Multi-Person Pose Estimation based on MMPose**, arXiv:2303.07399.
|
| 96 |
+
|
| 97 |
+
## Re-create the dataset
|
| 98 |
+
|
| 99 |
+
Install OpenMMLab dependencies in an environment with PyTorch and CUDA support:
|
| 100 |
+
|
| 101 |
+
```bash
|
| 102 |
+
pip install "setuptools>=70,<81" openmim
|
| 103 |
+
mim install mmengine
|
| 104 |
+
mim install "mmcv>=2.0.1,<2.2.0"
|
| 105 |
+
mim install "mmdet>=3.1.0"
|
| 106 |
+
mim install "mmpose>=1.1.0"
|
| 107 |
+
```
|
| 108 |
+
|
| 109 |
+
Generate the annotations:
|
| 110 |
+
|
| 111 |
+
```bash
|
| 112 |
+
python scripts/create_11k_hands_keypoints_hf.py \
|
| 113 |
+
--source-repo ryushinn/11k-Hands \
|
| 114 |
+
--splits train \
|
| 115 |
+
--chunk-size 1000 \
|
| 116 |
+
--det-batch-size 16 \
|
| 117 |
+
--device cuda:0 \
|
| 118 |
+
--output-dir data/hf_datasets/11k_hands_rtmpose_hand21_keypoints \
|
| 119 |
+
--work-dir data/hf_datasets/11k_hands_rtmpose_hand21_keypoints_chunks
|
| 120 |
+
```
|
| 121 |
+
|
| 122 |
+
The script is chunked and resumable. If interrupted, rerun the same command and completed chunks will be reused.
|
| 123 |
+
|
| 124 |
+
Upload the generated dataset without uploading any metadata JSON:
|
| 125 |
+
|
| 126 |
+
```bash
|
| 127 |
+
python - <<'PY'
|
| 128 |
+
from datasets import load_from_disk
|
| 129 |
+
|
| 130 |
+
ds = load_from_disk("data/hf_datasets/11k_hands_rtmpose_hand21_keypoints")
|
| 131 |
+
ds.push_to_hub("ryushinn/11k-Hands-BBox-Keypoint", max_shard_size="500MB")
|
| 132 |
+
PY
|
| 133 |
+
```
|
| 134 |
+
|
| 135 |
+
## Usage
|
| 136 |
+
|
| 137 |
+
```python
|
| 138 |
+
from datasets import load_dataset
|
| 139 |
+
|
| 140 |
+
images = load_dataset("ryushinn/11k-Hands", split="train")
|
| 141 |
+
ann = load_dataset("ryushinn/11k-Hands-BBox-Keypoint", split="train")
|
| 142 |
+
|
| 143 |
+
idx = 0
|
| 144 |
+
image = images[idx]["image"]
|
| 145 |
+
bbox = ann[idx]["bboxes_xyxy"]
|
| 146 |
+
keypoints_xy = ann[idx]["keypoints_xy"]
|
| 147 |
+
keypoint_scores = ann[idx]["keypoint_scores"]
|
| 148 |
+
```
|
| 149 |
+
|
| 150 |
+
## Visualization previews
|
| 151 |
+
|
| 152 |
+
The following preview images show source images with the estimated hand bounding box and keypoint skeleton overlayed.
|
| 153 |
+
|
| 154 |
+
| Row 0 | Row 1 |
|
| 155 |
+
| --- | --- |
|
| 156 |
+
|  |  |
|
| 157 |
+
|
| 158 |
+
| Row 5538 | Row 11075 |
|
| 159 |
+
| --- | --- |
|
| 160 |
+
|  |  |
|
| 161 |
+
|
| 162 |
+
## Notes
|
| 163 |
+
|
| 164 |
+
These annotations are model-estimated pseudo-labels, not manual ground-truth annotations. They are intended for research workflows where reproducible hand bounding boxes and hand pose estimates are useful alongside the original `ryushinn/11k-Hands` images.
|