Add hand datasets
Browse files
hand_morphology_topo_eval/README.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: hand_morphology_topo_eval
|
| 3 |
+
size_categories:
|
| 4 |
+
- 1K<n<10K
|
| 5 |
+
tags:
|
| 6 |
+
- robotics
|
| 7 |
+
- morphology
|
| 8 |
+
- voxel
|
| 9 |
+
- synthetic
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# hand_morphology_topo_eval
|
| 13 |
+
|
| 14 |
+
4,500 procedurally generated robotic hand morphologies forming a labeled,
|
| 15 |
+
finger-family-balanced evaluation bank: 17 canonical hand topologies, each
|
| 16 |
+
realized as many independent geometry re-rolls (same finger/joint structure,
|
| 17 |
+
varied palm and phalanx parameters). Used for topology-kNN evaluation and
|
| 18 |
+
model checkpoint selection: with hundreds of labeled instances per topology,
|
| 19 |
+
k-nearest-neighbour voting over a model's latent space measures how well the
|
| 20 |
+
space organizes hands by their kinematic structure.
|
| 21 |
+
|
| 22 |
+
To ensure fair representation of each finger-morphology family, every finger
|
| 23 |
+
count from 1 to 5 holds exactly 900 hands. The catalog spans, per finger
|
| 24 |
+
count, uniform joint-depth variants (e.g. `5f[4,4,4,4,4]`) and
|
| 25 |
+
asymmetric/graded variants (e.g. `5f[5,4,3,2,1]`, `3f[6,5,4]`), including
|
| 26 |
+
deliberately confusable same-finger same-joint-count pairs that stress
|
| 27 |
+
within-family joint-configuration discrimination. Since one-finger hands admit
|
| 28 |
+
the fewest morphology combinations and five-finger hands the most, families
|
| 29 |
+
differ in topology count (three topologies of 300 hands for 1-4 fingers, five
|
| 30 |
+
topologies of 180 for 5 fingers) while family totals stay uniform.
|
| 31 |
+
|
| 32 |
+
## Topology catalog
|
| 33 |
+
|
| 34 |
+
Names encode `<fingers>f[joints per finger]`:
|
| 35 |
+
|
| 36 |
+
| fingers | topologies | hands per topology | family total |
|
| 37 |
+
|---|---|---|---|
|
| 38 |
+
| 1f | `[4]`, `[8]`, `[12]` | 300 | 900 |
|
| 39 |
+
| 2f | `[2,2]`, `[4,4]`, `[6,4]` | 300 | 900 |
|
| 40 |
+
| 3f | `[2,2,2]`, `[4,4,4]`, `[6,5,4]` | 300 | 900 |
|
| 41 |
+
| 4f | `[2,2,2,2]`, `[3,3,3,3]`, `[5,4,3,2]` | 300 | 900 |
|
| 42 |
+
| 5f | `[1,1,1,1,1]`, `[2,2,2,2,2]`, `[3,3,3,3,3]`, `[4,4,4,4,4]`, `[5,4,3,2,1]` | 180 | 900 |
|
| 43 |
+
|
| 44 |
+
## Format
|
| 45 |
+
|
| 46 |
+
One npz shard (`shard_00000.npz`) plus `manifest.json` (schema
|
| 47 |
+
`hand_morphology:v1`), identical in layout to the sibling training datasets
|
| 48 |
+
(`hand_morphology_200k`, `hand_morphology_2m`): 14 arrays holding per-hand
|
| 49 |
+
rows (`lengths`, `finger_count`, `joint_count`, `palm_action`, `hard_error`,
|
| 50 |
+
`node_lengths`, `edge_lengths`) and concatenated arrays sliced by their
|
| 51 |
+
cumulative sums (`coords`, `seg_depth`, `finger_id`, `joint_feats`,
|
| 52 |
+
`node_design`, `edge_src`, `edge_dst`). Every hand passed validation
|
| 53 |
+
(`hard_error == 0`).
|
| 54 |
+
|
| 55 |
+
Two extra files carry the evaluation labels and provenance:
|
| 56 |
+
|
| 57 |
+
- `topo_labels.npz` — `topo` (int64, topology id per hand), `finger` (int64,
|
| 58 |
+
finger count per hand), `names` (str, the 17-entry topology catalog indexed
|
| 59 |
+
by `topo`).
|
| 60 |
+
- `conversion_index.npy` — for each row, its index in the source bank.
|
| 61 |
+
|
| 62 |
+
## Usage
|
| 63 |
+
|
| 64 |
+
Loaded by `model/datamodule.py` as the topology bank (`topo_eval_dir =
|
| 65 |
+
"data/hand_morphology_topo_eval"`): the eval suite embeds all hands in their
|
| 66 |
+
canonical stored pose and computes `topo_knn@k` / `finger_knn@k` /
|
| 67 |
+
`within_finger_knn@k`, and `topo_knn@10` is the checkpoint-selection metric
|
| 68 |
+
(`eval/selection`).
|
hand_morphology_topo_eval/conversion_index.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb4c8f701e7fb44ef30607aab201fddd4462512d65024f81ac1ee4145ddba3d7
|
| 3 |
+
size 36128
|
hand_morphology_topo_eval/manifest.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": "hand_morphology:v1",
|
| 3 |
+
"name": "hand_morphology_topo_eval",
|
| 4 |
+
"resolution": 128,
|
| 5 |
+
"grid_half_extent": 0.25,
|
| 6 |
+
"has_joints": true,
|
| 7 |
+
"has_part_codes": true,
|
| 8 |
+
"has_design_params": true,
|
| 9 |
+
"joint_feat_dim": 6,
|
| 10 |
+
"finger_action_dim": 12,
|
| 11 |
+
"finger_action_fields": [
|
| 12 |
+
"length",
|
| 13 |
+
"taper",
|
| 14 |
+
"bend_pitch",
|
| 15 |
+
"bend_yaw",
|
| 16 |
+
"twist",
|
| 17 |
+
"freeform_intensity",
|
| 18 |
+
"asymmetry_strength",
|
| 19 |
+
"lobe_strength",
|
| 20 |
+
"radius_thickness_abs",
|
| 21 |
+
"radius_lateral_abs",
|
| 22 |
+
"surface_phase",
|
| 23 |
+
"joint_axis_mode"
|
| 24 |
+
],
|
| 25 |
+
"max_total_joints": 25,
|
| 26 |
+
"n_hands": 4500,
|
| 27 |
+
"shard_size": 4500,
|
| 28 |
+
"shards": [
|
| 29 |
+
{
|
| 30 |
+
"file": "shard_00000.npz",
|
| 31 |
+
"n_hands": 4500
|
| 32 |
+
}
|
| 33 |
+
],
|
| 34 |
+
"seed": 0,
|
| 35 |
+
"shuffle": "source order preserved (topology-grouped); 5-finger topologies downsampled 300->180 (seed=0)",
|
| 36 |
+
"sources": [
|
| 37 |
+
{
|
| 38 |
+
"dir": "topo_bank",
|
| 39 |
+
"n_hands": 5100,
|
| 40 |
+
"n_shards": 1
|
| 41 |
+
}
|
| 42 |
+
],
|
| 43 |
+
"topology_catalog": [
|
| 44 |
+
"1f[4]",
|
| 45 |
+
"1f[8]",
|
| 46 |
+
"1f[12]",
|
| 47 |
+
"2f[2,2]",
|
| 48 |
+
"2f[4,4]",
|
| 49 |
+
"2f[6,4]",
|
| 50 |
+
"3f[2,2,2]",
|
| 51 |
+
"3f[4,4,4]",
|
| 52 |
+
"3f[6,5,4]",
|
| 53 |
+
"4f[2,2,2,2]",
|
| 54 |
+
"4f[3,3,3,3]",
|
| 55 |
+
"4f[5,4,3,2]",
|
| 56 |
+
"5f[1,1,1,1,1]",
|
| 57 |
+
"5f[2,2,2,2,2]",
|
| 58 |
+
"5f[3,3,3,3,3]",
|
| 59 |
+
"5f[4,4,4,4,4]",
|
| 60 |
+
"5f[5,4,3,2,1]"
|
| 61 |
+
],
|
| 62 |
+
"distribution": {
|
| 63 |
+
"n_hands": 4500,
|
| 64 |
+
"finger_count": {
|
| 65 |
+
"1": 900,
|
| 66 |
+
"2": 900,
|
| 67 |
+
"3": 900,
|
| 68 |
+
"4": 900,
|
| 69 |
+
"5": 900
|
| 70 |
+
},
|
| 71 |
+
"joint_count_per_exact": {
|
| 72 |
+
"4": 600,
|
| 73 |
+
"5": 180,
|
| 74 |
+
"6": 300,
|
| 75 |
+
"8": 900,
|
| 76 |
+
"10": 480,
|
| 77 |
+
"12": 900,
|
| 78 |
+
"14": 300,
|
| 79 |
+
"15": 660,
|
| 80 |
+
"20": 180
|
| 81 |
+
},
|
| 82 |
+
"joint_count_mean": 10.133333333333333,
|
| 83 |
+
"voxels_per_hand_mean": 16618.940444444444,
|
| 84 |
+
"voxels_per_hand_min": 3138,
|
| 85 |
+
"voxels_per_hand_max": 41182,
|
| 86 |
+
"total_nodes": 50100,
|
| 87 |
+
"total_edges": 45600
|
| 88 |
+
}
|
| 89 |
+
}
|
hand_morphology_topo_eval/shard_00000.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6ae26222c84834e45b70fad02361ac1c9d9546a148d694b95cbcc551d8a3cad
|
| 3 |
+
size 26328913
|
hand_morphology_topo_eval/topo_labels.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cfa01f70f287f0732ee322824937068422eabea893e1f51096f49676e7370b7c
|
| 3 |
+
size 927
|