Linzhan commited on
Commit
b105294
·
verified ·
1 Parent(s): d5845c9

Present animation_motion/ as the default set; document the static split

Browse files
Files changed (2) hide show
  1. .gitignore +4 -0
  2. README.md +66 -18
.gitignore ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ .cache/
2
+ __pycache__/
3
+ *.pyc
4
+ .DS_Store
README.md CHANGED
@@ -28,23 +28,34 @@ configs:
28
 
29
  # Mixamo Animations and Characters
30
 
31
- A complete snapshot of the [Mixamo](https://www.mixamo.com/) library: **2,446 motion clips** and
32
  **114 rigged characters**, exported as binary FBX (FBX 7.7 / `fbx7_2019`) with per-file metadata.
33
 
34
  All animations share one uniform 65-joint `mixamorig` skeleton, so any clip can drive any
35
  compatible character without remapping.
36
 
 
 
 
 
 
37
  ## Dataset structure
38
 
39
  ```
40
- animation/ 2,446 .fbx motion only (skeleton + keyframes, no mesh)
 
41
  character/ 114 .fbx T-pose characters with skin mesh, as exported
42
  character_refined/ 114 .fbx same characters, bone namespaces normalised <- use this
 
 
 
 
 
 
 
 
43
  metadata.csv browsable index of all 2,446 animations
44
  characters.csv browsable index of all 114 characters
45
- animation_prompts.json filename -> text label + Mixamo id
46
- animation_frames.json filename -> keyframe count
47
- animation_bones.json the 65 bone names used by every animation
48
  characters.json filename -> character name + uuid
49
  character_bones.json filename -> that character's bone list
50
  character_bone_fix_applied.txt the 27 characters whose bones were renamed
@@ -52,14 +63,42 @@ character_nonstandard_rig.txt the 4 characters not using `mixamorig:`
52
  scripts/ download, indexing, normalisation and validation code
53
  ```
54
 
55
- Every JSON index is keyed by FBX filename and maps 1:1 onto the files.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
  ## Tabular index
58
 
59
  Two CSVs make the dataset browsable in the dataset viewer and loadable without downloading
60
  any FBX. They are generated from the JSON indexes by `scripts/build_tables.py`.
61
 
62
- `metadata.csv` — one row per animation:
 
63
 
64
  | column | meaning |
65
  |---|---|
@@ -70,6 +109,13 @@ any FBX. They are generated from the JSON indexes by `scripts/build_tables.py`.
70
  | `frames` | keyframe count |
71
  | `motion_id` | Mixamo motion UUID |
72
 
 
 
 
 
 
 
 
73
  `characters.csv` — one row per character, with `bone_count` and `covers_animation_rig`
74
  (`true` for the 97 characters whose skeleton covers all 65 animation bones).
75
 
@@ -90,20 +136,20 @@ Fetch only the FBX you need:
90
 
91
  ```python
92
  from huggingface_hub import hf_hub_download
93
- p = hf_hub_download("Linzhan/Mixamo-Animations-Characters", "animation/Jab_Cross.fbx", repo_type="dataset")
94
  ```
95
 
96
  ## Animations
97
 
98
- - **Count**: 2,446 clips
99
  - **Format**: binary FBX 7.7, 30 fps, skeleton + animation curves only (no mesh)
100
  - **Skeleton**: identical 65-joint `mixamorig` rig in *every* clip
101
- - **Length**: 2 – 1,884 keyframes (mean 121)
102
 
103
  Files are named after the motion, e.g. `Jab_Cross.fbx`. Distinct motions that share a Mixamo
104
  name are disambiguated with a numeric suffix (`Waving.fbx`, `Waving_2.fbx`, `Waving_3.fbx`).
105
 
106
- ### `animation_prompts.json`
107
 
108
  ```json
109
  "180_Turn_W_Briefcase.fbx": {
@@ -115,7 +161,7 @@ name are disambiguated with a numeric suffix (`Waving.fbx`, `Waving_2.fbx`, `Wav
115
 
116
  | field | meaning |
117
  |---|---|
118
- | `prompt` | Mixamo's catalogue name. Present for all 2,446 clips. Short (mean 2.6 words), sometimes abbreviated (`W/`, `2hand`, `L`/`R`). |
119
  | `description` | Mixamo's longer description. Present for 2,395 clips (97.9%). Fuller natural language (mean 5.0 words) and usually more specific. |
120
  | `motion_id` | Mixamo's internal motion UUID. |
121
 
@@ -127,7 +173,7 @@ yields 2,279. Example — `"Angry Gesture"` covers three different motions, sepa
127
  their descriptions (`Angrily Pumping Fists Forward`, `Seated Idle With Hands On A Table Being
128
  Rude`, `Angry Forward Gesture`).
129
 
130
- ### `animation_frames.json`
131
 
132
  ```json
133
  "180_Turn_W_Briefcase.fbx": 68
@@ -195,8 +241,8 @@ names with a different prefix:
195
  ```python
196
  import json
197
 
198
- prompts = json.load(open("animation_prompts.json"))
199
- frames = json.load(open("animation_frames.json"))
200
 
201
  # text label for a motion-conditioned model
202
  text = {f: (v.get("description") or v["prompt"]) for f, v in prompts.items()}
@@ -210,12 +256,14 @@ Load an animation onto a character in Blender:
210
  ```python
211
  import bpy
212
  bpy.ops.import_scene.fbx(filepath="character_refined/Adam.fbx")
213
- bpy.ops.import_scene.fbx(filepath="animation/Jab_Cross.fbx")
214
  # both armatures now share the `mixamorig:` bone namespace
215
  ```
216
 
217
  ## Known limitations
218
 
 
 
219
  - **51 clips have no `description`** (2.1%). 36 of them have a unique `prompt`, so the
220
  `description or prompt` fallback is unambiguous. The other 15 share a `prompt` with other
221
  clips and therefore cannot be told apart from text alone — the worst case is
@@ -233,8 +281,8 @@ animations and `skin=true` for characters, retargeted onto the standard Y Bot sk
233
 
234
  Integrity was verified end to end: every FBX parses without truncation, no byte-identical
235
  duplicates exist, all index keys match the files exactly, every frame count was re-derived from
236
- the FBX, and all 2,446 motion names/ids plus 114 character names were cross-checked against the
237
- Mixamo API. The `scripts/` directory reproduces the download, the indexes and all checks.
238
 
239
  ## Terms
240
 
 
28
 
29
  # Mixamo Animations and Characters
30
 
31
+ A complete snapshot of the [Mixamo](https://www.mixamo.com/) library: **2,317 motion clips** and
32
  **114 rigged characters**, exported as binary FBX (FBX 7.7 / `fbx7_2019`) with per-file metadata.
33
 
34
  All animations share one uniform 65-joint `mixamorig` skeleton, so any clip can drive any
35
  compatible character without remapping.
36
 
37
+ **Use `animation_motion/`.** The full export contains 2,446 files, but 129 of them are single-pose
38
+ assets that carry no motion at all — Mixamo's `*_Pose*` library, plus `T-Pose` and `Leaning`.
39
+ `animation_motion/` is the 2,317 that actually move; `animation/` keeps all 2,446 for anyone who
40
+ wants the poses too. See [Static clips](#static-clips) for how they were separated.
41
+
42
  ## Dataset structure
43
 
44
  ```
45
+ animation_motion/ 2,317 .fbx clips that move <- use this
46
+ animation/ 2,446 .fbx the full export, poses included
47
  character/ 114 .fbx T-pose characters with skin mesh, as exported
48
  character_refined/ 114 .fbx same characters, bone namespaces normalised <- use this
49
+
50
+ animation_motion_prompts.json filename -> text label + Mixamo id, 2,317 entries
51
+ animation_motion_frames.json filename -> keyframe count, 2,317 entries
52
+ static_clips.csv the 129 files left out, with the measurement behind it
53
+
54
+ animation_prompts.json the same, over all 2,446
55
+ animation_frames.json the same, over all 2,446
56
+ animation_bones.json the 65 bone names used by every animation
57
  metadata.csv browsable index of all 2,446 animations
58
  characters.csv browsable index of all 114 characters
 
 
 
59
  characters.json filename -> character name + uuid
60
  character_bones.json filename -> that character's bone list
61
  character_bone_fix_applied.txt the 27 characters whose bones were renamed
 
63
  scripts/ download, indexing, normalisation and validation code
64
  ```
65
 
66
+ Every JSON index is keyed by FBX filename and maps 1:1 onto the files. The `animation_motion_*`
67
+ pair covers exactly the 2,317 files in `animation_motion/`; the unsuffixed pair covers all 2,446.
68
+ Files in `animation_motion/` are the same bytes as their counterparts in `animation/`.
69
+
70
+ ## Static clips
71
+
72
+ 129 of the 2,446 exported files hold a pose rather than a motion. They are not a download error —
73
+ Mixamo ships a `*_Pose*` library (`Male_Sitting_Pose_12`, `Female_Standing_Pose_14`, …) alongside
74
+ its animations, and those exports are two frames of the same pose.
75
+
76
+ They were found by decoding every animation curve and measuring its peak-to-peak range, not by
77
+ filename — keyframe count cannot tell them apart, since a static pose still writes a full set of
78
+ keys, and two of them (`T-Pose`, `Leaning`) are not named like poses at all.
79
+
80
+ `static_clips.csv` lists all 129 with the measurement and the reason:
81
+
82
+ | reason | count | |
83
+ |---|---|---|
84
+ | `all curves flat` | 122 | every curve identical frame to frame |
85
+ | `float32 rounding noise only` | 6 | peak-to-peak 0.001–0.024, four orders of magnitude below any real clip |
86
+ | `two-frame pose delta, no in-between frames` | 1 | `Female_Sitting_Pose_7`: a real pose change, but only two frames |
87
+
88
+ The split is unambiguous. The largest static reading is 0.024 and the smallest moving one is 1.115
89
+ (`Sitting_Idle_4`, a 90-frame breathing idle); nothing falls between. Frame counts separate them
90
+ too — every static file has 2 frames, while the shortest real clip has 8.
91
+
92
+ Quiet clips are **not** filtered: `Idle_5`, `Rifle_Kneel_Idle`, `Sword_And_Shield_Block_Idle` and
93
+ similar read 1–3 peak-to-peak and are kept, because a breathing idle or a held guard is a motion.
94
 
95
  ## Tabular index
96
 
97
  Two CSVs make the dataset browsable in the dataset viewer and loadable without downloading
98
  any FBX. They are generated from the JSON indexes by `scripts/build_tables.py`.
99
 
100
+ `metadata.csv` — one row per animation. It covers all 2,446 files; join against
101
+ `static_clips.csv` to restrict it to the ones that move:
102
 
103
  | column | meaning |
104
  |---|---|
 
109
  | `frames` | keyframe count |
110
  | `motion_id` | Mixamo motion UUID |
111
 
112
+ ```python
113
+ import csv
114
+ static = {r["file"] for r in csv.DictReader(open("static_clips.csv"))}
115
+ moving = [r for r in csv.DictReader(open("metadata.csv"))
116
+ if r["file"].split("/")[-1] not in static] # 2,317 rows
117
+ ```
118
+
119
  `characters.csv` — one row per character, with `bone_count` and `covers_animation_rig`
120
  (`true` for the 97 characters whose skeleton covers all 65 animation bones).
121
 
 
136
 
137
  ```python
138
  from huggingface_hub import hf_hub_download
139
+ p = hf_hub_download("Linzhan/Mixamo-Animations-Characters", "animation_motion/Jab_Cross.fbx", repo_type="dataset")
140
  ```
141
 
142
  ## Animations
143
 
144
+ - **Count**: 2,317 clips that move (2,446 including poses)
145
  - **Format**: binary FBX 7.7, 30 fps, skeleton + animation curves only (no mesh)
146
  - **Skeleton**: identical 65-joint `mixamorig` rig in *every* clip
147
+ - **Length**: 8 – 1,884 keyframes in `animation_motion/` (2 – 1,884 across the full export)
148
 
149
  Files are named after the motion, e.g. `Jab_Cross.fbx`. Distinct motions that share a Mixamo
150
  name are disambiguated with a numeric suffix (`Waving.fbx`, `Waving_2.fbx`, `Waving_3.fbx`).
151
 
152
+ ### `animation_motion_prompts.json`
153
 
154
  ```json
155
  "180_Turn_W_Briefcase.fbx": {
 
161
 
162
  | field | meaning |
163
  |---|---|
164
+ | `prompt` | Mixamo's catalogue name. Present for every clip. Short (mean 2.6 words), sometimes abbreviated (`W/`, `2hand`, `L`/`R`). |
165
  | `description` | Mixamo's longer description. Present for 2,395 clips (97.9%). Fuller natural language (mean 5.0 words) and usually more specific. |
166
  | `motion_id` | Mixamo's internal motion UUID. |
167
 
 
173
  their descriptions (`Angrily Pumping Fists Forward`, `Seated Idle With Hands On A Table Being
174
  Rude`, `Angry Forward Gesture`).
175
 
176
+ ### `animation_motion_frames.json`
177
 
178
  ```json
179
  "180_Turn_W_Briefcase.fbx": 68
 
241
  ```python
242
  import json
243
 
244
+ prompts = json.load(open("animation_motion_prompts.json"))
245
+ frames = json.load(open("animation_motion_frames.json"))
246
 
247
  # text label for a motion-conditioned model
248
  text = {f: (v.get("description") or v["prompt"]) for f, v in prompts.items()}
 
256
  ```python
257
  import bpy
258
  bpy.ops.import_scene.fbx(filepath="character_refined/Adam.fbx")
259
+ bpy.ops.import_scene.fbx(filepath="animation_motion/Jab_Cross.fbx")
260
  # both armatures now share the `mixamorig:` bone namespace
261
  ```
262
 
263
  ## Known limitations
264
 
265
+ - **129 of the 2,446 exported files hold a pose, not a motion**, and are excluded from
266
+ `animation_motion/`. See [Static clips](#static-clips).
267
  - **51 clips have no `description`** (2.1%). 36 of them have a unique `prompt`, so the
268
  `description or prompt` fallback is unambiguous. The other 15 share a `prompt` with other
269
  clips and therefore cannot be told apart from text alone — the worst case is
 
281
 
282
  Integrity was verified end to end: every FBX parses without truncation, no byte-identical
283
  duplicates exist, all index keys match the files exactly, every frame count was re-derived from
284
+ the FBX, every animation curve was decoded to separate motion from pose, and all 2,446 motion
285
+ names/ids plus 114 character names were cross-checked against the Mixamo API. The `scripts/` directory reproduces the download, the indexes and all checks.
286
 
287
  ## Terms
288