File size: 8,879 Bytes
eff1e50 4066fc2 eff1e50 4066fc2 eff1e50 4066fc2 eff1e50 4066fc2 eff1e50 4066fc2 eff1e50 4066fc2 eff1e50 4066fc2 eff1e50 4066fc2 eff1e50 4066fc2 eff1e50 4066fc2 eff1e50 4066fc2 eff1e50 4066fc2 eff1e50 4066fc2 eff1e50 4066fc2 eff1e50 4066fc2 eff1e50 4066fc2 eff1e50 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | # TopoSlots Motion Data
Unified multi-skeleton 3D motion dataset for **TopoSlots**: topology-agnostic per-slot motion tokenization with foundation alignment.
- **Paper target**: NeurIPS 2026 / ICLR 2027
- **Last updated**: 2026-03-27
- **Motions**: 24,448 across 7 datasets, 79 skeleton types (6 human + 73 animal species)
---
## Dataset Summary
| Dataset | Motions | Joints | Skeleton Type | Text Coverage | Text Quality | Renders |
|---------|:-------:|:------:|---------------|:------------:|:------------:|:-------:|
| **humanml3d** | 14,449 | 22 | Human (SMPL) | 100% | High (human multi-caption) | 14,449 |
| **bandai_namco** | 3,053 | 21 | Human (BN) | 100% | Low (template sentences) | 3,053 |
| **cmu_mocap** | 2,496 | 31 | Human (CMU) | 92% | Low (CMU index text) | 2,496 |
| **mixamo** | 2,453 | 67 | Human (Mixamo, full fingers) | **0%** | None (hash filenames) | 2,453 |
| **truebones_zoo** | 1,110 | 25-143 | 73 animal species | 80% | Medium (auto-generated) | 1,110 |
| **100style** | 810 | 23 | Human (XSens) | 100% | Low (template sentences) | 810 |
| **lafan1** | 77 | 22 | Human (Ubisoft) | 100% | Low (action type only) | 77 |
| **Total** | **24,448** | 9-143 | **79 skeletons** | 88% | | 24,448 |
### Text Annotation Status
**Needs annotation** (6 datasets, 9,999 motions):
- `mixamo`: 2,453 — completely missing, filenames are hashes
- `truebones_zoo`: 222 missing + 888 need review
- `cmu_mocap`: 195 missing
- `bandai_namco`, `100style`, `lafan1`: have template text, need upgrade to natural language
**Complete** (no annotation needed):
- `humanml3d`: 14,449 with high-quality human annotations (3-5 captions each)
---
## Data Format (Scheme C)
### Per-motion file: `motions/{id}.npz`
| Field | Shape | Description |
|-------|-------|-------------|
| `local_positions` | [T, J, 3] | Root-relative joint positions (slot token input) |
| `velocities` | [T, J, 3] | Joint velocities (slot token input) |
| `root_position` | [T, 3] | Global root trajectory |
| `root_velocity` | [T, 3] | Root velocity |
| `joint_positions` | [T, J, 3] | Global joint positions (FK output) |
| `local_rotations_6d` | [T, J-1, 6] | 6D rotation representation (decoder GT) |
| `accelerations` | [T, J, 3] | Joint accelerations |
| `bone_lengths` | [T, J] | Per-frame bone lengths |
| `foot_contact` | [T, 4] | Foot contact labels (l_heel, l_toe, r_heel, r_toe) |
| `num_frames` | scalar | Number of valid frames |
| `fps` | scalar | Frames per second (20) |
| `skeleton_id` | str | Dataset identifier |
| `texts` | str | Text descriptions separated by `\|\|\|` |
| `source_file` | str | Original BVH/source filename |
| `species` | str | (Zoo only) Animal species name |
### Per-skeleton file: `skeleton.npz`
| Field | Shape | Description |
|-------|-------|-------------|
| `joint_names` | [J] | Original joint names from BVH |
| `canonical_names` | [J] | Standardized English anatomical names (for CLIP) |
| `parent_indices` | [J] | Parent joint index (-1 for root) |
| `rest_offsets` | [J, 3] | Rest-pose offsets from parent (meters) |
| `adjacency` | [J, J] | Undirected adjacency matrix |
| `geodesic_dist` | [J, J] | Geodesic distance matrix |
| `bone_lengths` | [J] | Rest-pose bone lengths |
| `depths` | [J] | Tree depth per joint |
| `degrees` | [J] | Number of children per joint |
| `side_tags` | [J] | left/right/center classification |
| `symmetry_pairs` | [P, 2] | Symmetric joint pair indices |
### Per-dataset files
| File | Description |
|------|-------------|
| `labels.json` | Structured L1 labels: `{motion_id: {L1_action, L1_style, source_file, ...}}` |
| `stats.npz` | Normalization statistics (mean/std for positions and velocities) |
| `splits/{train,val,test,all}.txt` | Data split files (80/10/10) |
### Renders (for annotation)
| File | Description |
|------|-------------|
| `renders/{id}.gif` | Stick figure animation (GIF) |
| `renders/{id}_overview.png` | Multi-view static overview |
---
## File Structure
```
TopoSlots-MotionData/
├── README.md
│
├── humanml3d/ # 14,449 motions, SMPL-22, HIGH-QUALITY TEXT
│ ├── skeleton.npz
│ ├── labels.json
│ ├── stats.npz
│ ├── splits/
│ └── motions/*.npz
│
├── bandai_namco/ # 3,053 motions, 21 joints, NEEDS TEXT UPGRADE
│ ├── skeleton.npz
│ ├── labels.json
│ ├── stats.npz
│ ├── splits/
│ ├── motions/*.npz
│ └── renders/*.gif + *_overview.png
│
├── cmu_mocap/ # 2,496 motions, 31 joints, NEEDS TEXT UPGRADE
│ ├── (same structure)
│ └── renders/
│
├── mixamo/ # 2,453 motions, 67 joints, NO TEXT
│ ├── (same structure)
│ └── renders/
│
├── truebones_zoo/ # 1,110 motions, 73 species, PARTIAL TEXT
│ ├── skeleton.npz # representative skeleton
│ ├── skeletons/*.npz # per-species skeletons
│ ├── (same structure)
│ └── renders/
│
├── 100style/ # 810 motions, 23 joints, NEEDS TEXT UPGRADE
│ └── ...
│
├── lafan1/ # 77 motions, 22 joints, NEEDS TEXT UPGRADE
│ └── ...
│
├── docs/
│ ├── ANNOTATION_TOOL_PLAN.md # Web annotation tool design + implementation prompt
│ ├── ANNOTATION_GUIDELINE.md # Annotation specification for annotators (Chinese)
│ └── PROMPT_DESIGN.md # Text prompt design decisions (L1/L2/L3)
│
├── scripts/
│ ├── render_motion.py # Render npz → GIF + overview PNG
│ ├── preprocess_bvh.py # Generic BVH → Scheme C converter
│ ├── preprocess_humanml3d.py # HumanML3D → Scheme C converter
│ └── preprocess_truebones_zoo.py # Zoo species-aware converter
│
└── src/
└── data/
├── skeleton_graph.py # Skeleton topology: adjacency, geodesic, side tags, symmetry
├── bvh_parser.py # BVH file parser (handles 6-channel joints)
├── canonical_names.py # Human dataset canonical name mapping
├── zoo_canonical_names.py # Animal canonical name mapping (rule engine)
├── humanml3d_converter.py # SMPL-22 skeleton + 263D feature extraction
└── unified_dataset.py # PyTorch Dataset (multi-skeleton, variable joints)
```
---
## Annotation Workflow
### For agents setting up the annotation tool:
1. **Read** `docs/ANNOTATION_TOOL_PLAN.md` — contains the complete design and implementation prompt
2. **Read** `docs/ANNOTATION_GUIDELINE.md` — annotation specification for human annotators
3. **Data needed**: `{dataset}/renders/` (GIF/PNG) + `{dataset}/motions/` (npz metadata) + `{dataset}/labels.json`
4. **Tool**: Flask + SQLite web app, implementation prompt in Section 9 of ANNOTATION_TOOL_PLAN.md
5. **Post-processing**: Chinese annotations → LLM batch translate → English → inject into npz `texts` field
### Annotation priority:
| Priority | Dataset | Count | Task |
|:--------:|---------|:-----:|------|
| P0 | mixamo | 2,453 | Annotate from scratch (no existing text) |
| P1 | truebones_zoo | 1,110 | Fill 222 missing + review 888 existing |
| P1 | cmu_mocap | 195 | Fill missing entries |
| P2 | bandai_namco | 3,053 | Upgrade template text to natural language |
| P2 | 100style | 810 | Upgrade template text |
| P2 | lafan1 | 77 | Upgrade template text |
---
## Data Processing History
### Bug fixes applied (2026-03-18 ~ 2026-03-27):
1. **FK rotation convention**: Fixed intrinsic vs extrinsic Euler angle bug in `preprocess_bvh.py`. All 5 BVH datasets reprocessed.
2. **Bandai Namco dummy root**: Removed static `joint_Root` placeholder node (22→21 joints).
3. **Bandai Namco per-joint positions**: Fixed parser to read 6-channel BVH (all joints have position+rotation channels).
4. **Side tag detection**: Expanded from 2 patterns to 6-priority regex system (99.3% accuracy across 3,563 joints).
5. **Canonical name standardization**: 1,193 unique raw names → 916 canonical names across all 79 skeletons.
### Skeleton audit results:
- 0 errors across 79 skeletons
- Side tag accuracy: 99.3%
- Canonical name coverage: 100%
- Geodesic distance validity: 100%
- Motion data integrity: 100% (no NaN/Inf)
---
## Citation
```bibtex
@misc{toposlots2026,
title={TopoSlots: Topology-Agnostic Per-Slot Motion Tokenization with Foundation Alignment},
year={2026},
}
```
## License
Research use only. Individual dataset licenses apply:
- HumanML3D: MIT
- LAFAN1: CC BY-NC 4.0
- 100Style: CC BY 4.0
- Bandai Namco: CC BY-NC-ND 4.0
- CMU MoCap: Public domain
- Mixamo: Adobe Mixamo terms
- Truebones Zoo: Commercial license (research use)
|