Tevior commited on
Commit
4066fc2
·
verified ·
1 Parent(s): a24fb8f

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +123 -0
README.md ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TopoSlots Unified Motion Dataset
2
+
3
+ Multi-skeleton motion dataset for topology-agnostic motion tokenization research.
4
+
5
+ ## Overview
6
+
7
+ | Dataset | Skeleton Type | Joints | Motions | Text | Source |
8
+ |---------|:-------------|:------:|:-------:|:----:|--------|
9
+ | `humanml3d/` | Human (SMPL) | 22 | 14,449 | 44K texts | AMASS MoCap |
10
+ | `lafan1/` | Human (Ubisoft) | 22 | 77 | ✗ | Ubisoft La Forge |
11
+ | `100style/` | Human (XSens) | 23 | 810 | style labels | 100Style (Zenodo) |
12
+ | `bandai_namco/` | Human (BN) | 22 | 3,053 | ✗ | Bandai Namco Research |
13
+ | `cmu_mocap/` | Human (CMU) | 31 | 2,496 | ✗ | CMU MoCap Database |
14
+ | `mixamo/` | Human (Mixamo) | 67 | 2,453 | ✗ | Adobe Mixamo |
15
+ | `truebones_zoo/` | 73 Animal Species | 9-145 | 1,110 | 888 captions | Truebones Zoo |
16
+ | **Total** | **79 skeletons** | **9-145** | **24,448** | | |
17
+
18
+ ## Data Format (Scheme C)
19
+
20
+ All datasets use a unified `.npz` format per motion clip:
21
+
22
+ ### Slot Token Input (cross-skeleton compatible)
23
+ - `local_positions`: `[T, J, 3]` float32 — root-relative joint positions (meters)
24
+ - `velocities`: `[T, J, 3]` float32 — joint velocities (m/s)
25
+
26
+ ### Root Track (separate)
27
+ - `root_position`: `[T, 3]` float32 — global root position (meters)
28
+ - `root_velocity`: `[T, 3]` float32 — root velocity (m/s)
29
+
30
+ ### Decoder Ground Truth (skeleton-specific)
31
+ - `joint_positions`: `[T, J, 3]` float32 — global joint positions (meters)
32
+ - `local_rotations_6d`: `[T, J-1, 6]` float32 — continuous 6D rotation representation
33
+ - `accelerations`: `[T, J, 3]` float32 — joint accelerations
34
+ - `bone_lengths`: `[T, J]` float32 — per-frame bone lengths (meters)
35
+
36
+ ### Auxiliary
37
+ - `foot_contact`: `[T, 4]` float32 — [left_heel, left_toe, right_heel, right_toe] binary contact
38
+
39
+ ### Metadata
40
+ - `num_frames`: int — actual frame count (before padding)
41
+ - `fps`: float — frames per second (all resampled to 20 fps)
42
+ - `skeleton_id`: str — dataset identifier
43
+ - `texts`: str — text descriptions joined by `|||` (empty if unavailable)
44
+
45
+ ### Per-Dataset Files
46
+ ```
47
+ {dataset}/
48
+ ├── skeleton.npz # Skeleton graph (joint_names, parent_indices, rest_offsets, adjacency, geodesic_dist)
49
+ ├── stats.npz # Normalization statistics (mean/std for positions and velocities)
50
+ ├── motions/ # Per-motion .npz files
51
+ │ ├── 000000.npz
52
+ │ ├── 000001.npz
53
+ │ └── ...
54
+ └── splits/ # Data splits
55
+ ├── train.txt
56
+ ├── val.txt
57
+ ├── test.txt
58
+ └── all.txt
59
+ ```
60
+
61
+ ### Truebones Zoo Additional
62
+ ```
63
+ truebones_zoo/
64
+ ├── skeletons/ # Per-species skeleton graphs
65
+ │ ├── Dog.npz
66
+ │ ├── Cat.npz
67
+ │ ├── Horse.npz
68
+ │ └── ... (73 species)
69
+ └── motions/ # Named as {species}_{index}.npz
70
+ ├── Dog_0000.npz # Extra fields: species, source_file
71
+ ├── Cat_0004.npz
72
+ └── ...
73
+ ```
74
+
75
+ ## Scale & Units
76
+ - All positions in **meters**
77
+ - BVH datasets auto-converted from centimeters (÷100)
78
+ - CMU MoCap uses custom scale factor (×0.0685)
79
+ - Truebones Zoo: natural animal scale preserved (Pigeon 0.13m, Horse 1.50m, Trex 6.06m)
80
+ - All motions resampled to **20 fps**
81
+ - Max frames: **196** (~10 seconds)
82
+
83
+ ## Skeleton Diversity
84
+
85
+ | Category | Species Count | Joint Range | Examples |
86
+ |----------|:------------:|:-----------:|---------|
87
+ | Human (various rigs) | 6 | 22-67 | SMPL, LAFAN1, CMU, Mixamo (with fingers) |
88
+ | Quadrupeds | ~25 | 18-79 | Dog, Cat, Horse, Bear, Elephant |
89
+ | Flying | ~10 | 9-69 | Eagle, Bat, Buzzard, Pigeon |
90
+ | Reptiles/Dinos | ~10 | 25-69 | Trex, Alligator, Crocodile |
91
+ | Insects/Arachnids | ~10 | 41-84 | Ant, Spider, Scorpion, Centipede |
92
+ | Snakes | ~3 | 19-27 | Anaconda, KingCobra |
93
+ | Fantasy | ~5 | 32-143 | Dragon (143j), Mammoth |
94
+
95
+ ## Usage (PyTorch)
96
+
97
+ ```python
98
+ from src.data.unified_dataset import UnifiedMotionDataset, collate_fn
99
+ from torch.utils.data import DataLoader
100
+
101
+ dataset = UnifiedMotionDataset(
102
+ data_dirs=['data/processed/humanml3d', 'data/processed/mixamo', 'data/processed/truebones_zoo'],
103
+ split='train',
104
+ max_joints=128, # pad all skeletons to this
105
+ max_frames=196,
106
+ )
107
+
108
+ dataloader = DataLoader(dataset, batch_size=8, collate_fn=collate_fn, shuffle=True)
109
+ batch = next(iter(dataloader))
110
+ # batch['motion_features']: [8, 196, 128, 6] — per-joint position+velocity
111
+ # batch['skeleton_features']: [8, 128, 9] — joint graph features
112
+ # batch['joint_mask']: [8, 128] — valid joint mask
113
+ # batch['num_joints']: [8] — actual joint counts (22, 67, 31, ...)
114
+ ```
115
+
116
+ ## License
117
+ - HumanML3D: See original AMASS license
118
+ - LAFAN1: CC BY-NC-ND 4.0
119
+ - 100Style: CC BY 4.0
120
+ - Bandai Namco: CC BY-NC 4.0
121
+ - CMU MoCap: Free for research
122
+ - Mixamo: Adobe Mixamo Terms of Use
123
+ - Truebones Zoo: Royalty-free