nvriese1 commited on
Commit
ac671c4
·
verified ·
1 Parent(s): c98b365

Add dataset card + metadata for Hand Keypoints

Browse files
Files changed (4) hide show
  1. .gitattributes +1 -0
  2. README.md +157 -0
  3. train/metadata.jsonl +3 -0
  4. valid/metadata.jsonl +0 -0
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ train/metadata.jsonl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-sa-4.0
3
+ pretty_name: "Hand Keypoints"
4
+ task_categories:
5
+ - keypoint-detection
6
+ tags:
7
+ - computer-vision
8
+ - hand
9
+ - person
10
+ - face
11
+ - glove
12
+ - speaker
13
+ - child
14
+ - stop-sign
15
+ - ant
16
+ - watch
17
+ - key
18
+ - pose-estimation
19
+ - keypoints
20
+ - pictograph
21
+ annotations_creators:
22
+ - machine-generated
23
+ size_categories:
24
+ - 10K<n<100K
25
+ source_datasets:
26
+ - original
27
+ configs:
28
+ - config_name: default
29
+ data_files:
30
+ - split: train
31
+ path: "train/**/*"
32
+ - split: validation
33
+ path: "valid/**/*"
34
+ ---
35
+
36
+ [![Hand Keypoints - annotated computer-vision dataset on Pictograph](https://storage.googleapis.com/pictograph-assets/hf/heroes/hand-keypoints.png)](https://pictograph.io/datasets/pictograph-research/hand-keypoints)
37
+
38
+ [![Open in](https://img.shields.io/badge/Open_in-Pictograph-2c5aa0)](https://pictograph.io/datasets/pictograph-research/hand-keypoints) ![task](https://img.shields.io/badge/task-keypoint_detection-1a4480) ![images](https://img.shields.io/badge/images-26,677-555) [![license](https://img.shields.io/badge/license-cc--by--nc--sa--4.0-3cb44b)](https://creativecommons.org/licenses/by-nc-sa/4.0/)
39
+
40
+ **[View on Pictograph](https://pictograph.io/datasets/pictograph-research/hand-keypoints)** · [Pictograph Research](https://pictograph.io/org/pictograph-research) · [Creative Commons Attribution-NonCommercial-ShareAlike 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)
41
+
42
+ ## About
43
+
44
+ **Hand Keypoints** is a computer-vision dataset from [Hand Keypoints (Ultralytics)](https://docs.ultralytics.com/datasets/pose/hand-keypoints/), hosted on [Pictograph](https://pictograph.io/datasets/pictograph-research/hand-keypoints). The most common detected objects are hand, person, face, glove, speaker, child. On Pictograph you can browse every annotated image, import it into your own workspace in one click, export it in a dozen formats, or train a model on it directly.
45
+
46
+ ## At a glance
47
+
48
+ | Metric | Value |
49
+ | :--- | ---: |
50
+ | Images | 26,677 |
51
+ | Keypoints | 551,951 |
52
+ | Skeleton | hand, 21 keypoints |
53
+ | Annotation types | keypoint |
54
+ | Splits | train, validation |
55
+
56
+ ## Quick start
57
+
58
+ Load it in one line with the `datasets` library, then read each record's COCO-pose keypoint instances:
59
+
60
+ ```python
61
+ from datasets import load_dataset
62
+
63
+ ds = load_dataset("pictograph/hand-keypoints", split="train")
64
+ example = ds[0]
65
+ image = example["image"] # a PIL image
66
+
67
+ # one entry per object instance (COCO-pose)
68
+ for inst in example["keypoints"]:
69
+ names = inst["node_names"] # e.g. ["wrist", "thumb_cmc", "thumb_mcp", ...]
70
+ flat = inst["keypoints"] # [x, y, v, x, y, v, ...] aligned to names
71
+ joints = {
72
+ names[i]: (flat[3 * i], flat[3 * i + 1], flat[3 * i + 2])
73
+ for i in range(len(names))
74
+ }
75
+ print(inst["category"], joints) # v: 0 unlabelled, 1 occluded, 2 visible
76
+ ```
77
+
78
+ Prefer a full annotation editor, one-click import, multi-format export, and one-click training? [Open this dataset on Pictograph](https://pictograph.io/datasets/pictograph-research/hand-keypoints).
79
+
80
+ ## Dataset structure
81
+
82
+ This dataset uses the Hugging Face `imagefolder` layout: each split directory holds the images plus a `metadata.jsonl` that links every image to its annotations by `file_name`.
83
+
84
+ | Field | Description |
85
+ | :--- | :--- |
86
+ | `file_name` | Path to the image within the split directory. |
87
+ | `objects.bbox` | Bounding boxes as `[x, y, width, height]` (pixels). |
88
+ | `objects.categories` | Integer class index per box (matches the class list below). |
89
+ | `objects.category_names` | Human class name per box. |
90
+ | `keypoints` | Keypoint instances (COCO-pose): object `category` plus a flat `[x, y, v, ...]` array aligned to `node_names` (the skeleton below); `v` is 0 unlabelled, 1 occluded, 2 visible. Each instance's box in `objects` encloses its keypoints. |
91
+
92
+ ## Data instance
93
+
94
+ One record (each `keypoints` entry is one object instance; `keypoints` is a flat `[x, y, v, ...]` array of 21 keypoints aligned to `node_names`, `v`: 0 unlabelled, 1 occluded, 2 visible):
95
+
96
+ ```python
97
+ {
98
+ "image": <PIL.Image (RGB)>,
99
+ "objects": {"bbox": [[172.0, 96.0, 140.0, 310.0]], "categories": [0], "category_names": ["hand"]},
100
+ "keypoints": [
101
+ {
102
+ "category": "hand", "category_id": 0, "num_keypoints": 21,
103
+ "node_names": ["wrist", "thumb_cmc", "thumb_mcp", ...],
104
+ "keypoints": [201.0, 148.0, 2.0, 188.0, 146.0, 1.0, 0.0, 0.0, 0.0, ...]
105
+ }
106
+ ]
107
+ }
108
+ ```
109
+
110
+ ## Classes
111
+
112
+ Class index matches `objects.categories` and each keypoint instance's `category_id`.
113
+
114
+ | # | Class | Keypoints |
115
+ | ---: | :--- | ---: |
116
+ | 0 | hand | 21 |
117
+
118
+ ## Skeleton
119
+
120
+ Each object is one instance: its keypoints share an `instance_id` and are named for their joint. A keypoint that is labelled but hidden carries `occluded: true`. The joints are in this order in every export (a COCO keypoint array follows it).
121
+
122
+ | # | Keypoint | Connects to |
123
+ | ---: | :--- | :--- |
124
+ | 0 | wrist | thumb_cmc, index_finger_mcp, pinky_mcp |
125
+ | 1 | thumb_cmc | wrist, thumb_mcp |
126
+ | 2 | thumb_mcp | thumb_cmc, thumb_ip |
127
+ | 3 | thumb_ip | thumb_mcp, thumb_tip |
128
+ | 4 | thumb_tip | thumb_ip |
129
+ | 5 | index_finger_mcp | wrist, index_finger_pip, middle_finger_mcp |
130
+ | 6 | index_finger_pip | index_finger_mcp, index_finger_dip |
131
+ | 7 | index_finger_dip | index_finger_pip, index_finger_tip |
132
+ | 8 | index_finger_tip | index_finger_dip |
133
+ | 9 | middle_finger_mcp | index_finger_mcp, middle_finger_pip, ring_finger_mcp |
134
+ | 10 | middle_finger_pip | middle_finger_mcp, middle_finger_dip |
135
+ | 11 | middle_finger_dip | middle_finger_pip, middle_finger_tip |
136
+ | 12 | middle_finger_tip | middle_finger_dip |
137
+ | 13 | ring_finger_mcp | middle_finger_mcp, ring_finger_pip, pinky_mcp |
138
+ | 14 | ring_finger_pip | ring_finger_mcp, ring_finger_dip |
139
+ | 15 | ring_finger_dip | ring_finger_pip, ring_finger_tip |
140
+ | 16 | ring_finger_tip | ring_finger_dip |
141
+ | 17 | pinky_mcp | ring_finger_mcp, wrist, pinky_pip |
142
+ | 18 | pinky_pip | pinky_mcp, pinky_dip |
143
+ | 19 | pinky_dip | pinky_pip, pinky_tip |
144
+ | 20 | pinky_tip | pinky_dip |
145
+
146
+ ## License
147
+
148
+ Released under [Creative Commons Attribution-NonCommercial-ShareAlike 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/). When you use this data, please credit **Ultralytics (Rion Dsilva)**.
149
+
150
+ ## Source and attribution
151
+
152
+ The images and annotations come from [Hand Keypoints (Ultralytics)](https://docs.ultralytics.com/datasets/pose/hand-keypoints/), created by Ultralytics (Rion Dsilva) and released under Creative Commons Attribution-NonCommercial-ShareAlike 4.0. We are grateful to the original authors. If you use this data, please cite the original source above.
153
+
154
+ ---
155
+
156
+ *Published from [Pictograph](https://pictograph.io/datasets/pictograph-research/hand-keypoints) - annotate, train, and deploy from one API.*
157
+
train/metadata.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:789aaa44f2e0107443f4c0b9f755ccb08c4a34713dcdab952cceecde5f761b6f
3
+ size 20882788
valid/metadata.jsonl ADDED
The diff for this file is too large to render. See raw diff