Datasets:
File size: 4,470 Bytes
94c68c6 cf85cff 94c68c6 cf85cff | 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 | ---
language:
- en
pretty_name: TEXEDO Dataset
license: other
tags:
- text-to-motion
- human-motion
- motion-generation
- amass
- claw
size_categories:
- 10K<n<100K
configs:
- config_name: default
data_files:
- split: train
path: data/train.jsonl
- split: validation
path: data/validation.jsonl
- split: test
path: data/test.jsonl
---
# TEXEDO Dataset
TEXEDO is a text-motion dataset prepared from two sources: AMASS and CLAW. It keeps the MotionGPT-style split files while adding JSONL index files that are easier to load from the Hugging Face Hub.
## Dataset Structure
```text
TEXEDO_dataset/
README.md
train.txt
val.txt
test.txt
data/
train.jsonl
validation.jsonl
test.jsonl
all.jsonl
motions/
amass/{id_prefix}/{id}.npy
claw/{id_prefix}/{id}.npy
texts/
amass/{id_prefix}/{id}.txt
claw/{id_prefix}/{id}.txt
metadata/
dataset_summary.json
prepare_texedo_dataset.py
```
Each sample has one motion file and one text annotation file. Motion files are NumPy arrays with shape `(num_frames, 36)`.
## Motion Format
Each `.npy` motion file stores a float array with shape `(T, 36)`, where `T` is the number of frames. The 36 dimensions are organized as:
| Feature slice | Size | Description |
| --- | ---: | --- |
| `motion[:, 0:3]` | 3 | root position, `(x, y, z)` |
| `motion[:, 3:7]` | 4 | root quaternion, `(w, x, y, z)` |
| `motion[:, 7:36]` | 29 | joint positions / joint angles in the order below |
Joint order for `motion[:, 7:36]`:
| Joint index | Feature dim | Joint name |
| ---: | ---: | --- |
| 0 | 7 | `left_hip_pitch_joint` |
| 1 | 8 | `right_hip_pitch_joint` |
| 2 | 9 | `waist_yaw_joint` |
| 3 | 10 | `left_hip_roll_joint` |
| 4 | 11 | `right_hip_roll_joint` |
| 5 | 12 | `waist_roll_joint` |
| 6 | 13 | `left_hip_yaw_joint` |
| 7 | 14 | `right_hip_yaw_joint` |
| 8 | 15 | `waist_pitch_joint` |
| 9 | 16 | `left_knee_joint` |
| 10 | 17 | `right_knee_joint` |
| 11 | 18 | `left_shoulder_pitch_joint` |
| 12 | 19 | `right_shoulder_pitch_joint` |
| 13 | 20 | `left_ankle_pitch_joint` |
| 14 | 21 | `right_ankle_pitch_joint` |
| 15 | 22 | `left_shoulder_roll_joint` |
| 16 | 23 | `right_shoulder_roll_joint` |
| 17 | 24 | `left_ankle_roll_joint` |
| 18 | 25 | `right_ankle_roll_joint` |
| 19 | 26 | `left_shoulder_yaw_joint` |
| 20 | 27 | `right_shoulder_yaw_joint` |
| 21 | 28 | `left_elbow_joint` |
| 22 | 29 | `right_elbow_joint` |
| 23 | 30 | `left_wrist_roll_joint` |
| 24 | 31 | `right_wrist_roll_joint` |
| 25 | 32 | `left_wrist_pitch_joint` |
| 26 | 33 | `right_wrist_pitch_joint` |
| 27 | 34 | `left_wrist_yaw_joint` |
| 28 | 35 | `right_wrist_yaw_joint` |
## Splits
| Split | Samples |
| --- | ---: |
| train | 18,590 |
| validation | 2,324 |
| test | 2,325 |
| total | 23,239 |
## Sources
| Source | Samples |
| --- | ---: |
| AMASS | 9,245 |
| CLAW | 13,994 |
The original `textseedo` source label from the preparation metadata is normalized to `claw` in this release.
## JSONL Fields
Each row in `data/*.jsonl` contains:
- `id`: six-digit sample id
- `split`: `train`, `validation`, or `test`
- `source`: `amass` or `claw`
- `motion_path`: relative path to the `.npy` motion file
- `text_path`: relative path to the original text annotation file
- `num_frames`: number of motion frames
- `motion_dim`: motion feature dimension, currently 36
- `num_texts`: number of captions in the text file
- `captions`: parsed caption entries with `caption`, `tokens`, `start_time`, and `end_time`
This release intentionally does not include `raw_source` or `original_npz` fields.
## Loading
```python
from datasets import load_dataset
from huggingface_hub import snapshot_download
import numpy as np
from pathlib import Path
repo_id = "JianuoCao/TEXEDO"
repo_root = Path(snapshot_download(repo_id, repo_type="dataset"))
ds = load_dataset(
"json",
data_files={
"train": str(repo_root / "data/train.jsonl"),
"validation": str(repo_root / "data/validation.jsonl"),
"test": str(repo_root / "data/test.jsonl"),
},
)
sample = ds["train"][0]
motion = np.load(repo_root / sample["motion_path"])
captions = sample["captions"]
```
## Upload
```bash
HF_XET_HIGH_PERFORMANCE=1 hf upload-large-folder JianuoCao/TEXEDO /home/jianuo/projects/MotionGPT/datasets/TEXEDO_dataset --repo-type=dataset --num-workers=16
```
Before publishing, verify that the AMASS and CLAW redistribution terms allow the chosen repository visibility and license.
|