Skip to content

[SIGGRAPH Asia 2026] UniMate: One Unified Model to Animate Diverse Skeletons

Python

Ship a single 60-frame config per dataset and model variant

Friedrich-M9f3076e1db48
diff --git a/README.md b/README.md
index 314b4c3..662561d 100644
--- a/README.md
+++ b/README.md
@@ -31,12 +31,11 @@
## ๐Ÿ”ฅ News
- **[2026-09-06]** The **training and inference code** is released. ๐Ÿš€
-- **[2026-09-04]** Our paper is on [arXiv](https://arxiv.org/abs/2609.05415). ๐Ÿ“„
- **[2026-08-30]** The raw **UniML3D dataset** and its [data-processing pipeline](data_process/) are released. ๐Ÿš€
- **[2026-08-01]** Our [Interactive Demo](https://linzhanmou.com/unimate/interactive.html) is live โ€” browse our animation results in 3D. ๐ŸŽฎ
- **[2026-07-18]** UniMate is accepted to SIGGRAPH Asia 2026! ๐ŸŽ‰
-> **[TODO]** Pretrained checkpoints, processed data and detailed documents are coming soon.
+> **[TODO]** Pretrained checkpoints, the exact training configuration and data manifest used to produce them, evaluation scripts, and demo prompts will be released soon.
## ๐Ÿ› ๏ธ Environment Setup
@@ -70,7 +69,7 @@ Runs are configured by the JSON files in [`configs/`](configs/).
<details>
<summary><b>Config naming</b> โ€” <code>{dataset}_{frames}frames_{attention}_{text_cond}.json</code></summary>
-24 configs: 4 data combinations x 3 clip lengths x 2 model variants.
+8 configs: 4 data combinations x 2 model variants, all at 60 frames.
| Prefix | Training data |
|--------|---------------|
@@ -79,7 +78,7 @@ Runs are configured by the JSON files in [`configs/`](configs/).
| Length | `dataset.max_motion_length` |
|--------|-----------------------------|
-| `60frames` / `90frames` / `120frames` | 60 / 90 / 120 frames per clip |
+| `60frames` | 60 frames per clip |
| Suffix | `model.attention` x `model.text_cond` |
|--------|---------------------------------------|
@@ -88,7 +87,7 @@ Runs are configured by the JSON files in [`configs/`](configs/).
The two axes are independent and all four combinations are implemented, so `full` x `adaln` and `graph` x `cross_attn` also run if you set them in a config; the two shipped pairings are the ones the paper compares.
-Not shared across configs: `training.batch_size` and `training.num_steps` are tuned per data combination and clip length (GPU memory tracks batch x frames x joints). Every other setting is identical โ€” including `dataset.{min,max}_joints = {5, 100}`, which bounds the skeleton sizes a run admits (object types outside the range are dropped) and, through what survives, the joint-axis padding width.
+Not shared across configs: `training.batch_size`, `training.num_steps` and `dataset.max_joints` are tuned per data combination (GPU memory tracks batch x frames x joints). `dataset.max_joints` is `100` for `truebones_*` / `mixamo_*` and `60` for `objaverse_*` / `uniml3d_*`; `dataset.min_joints` is `5` everywhere. Together they bound the skeleton sizes a run admits (object types outside the range are dropped) and, through what survives, the joint-axis padding width. Every other setting is identical.
</details>
@@ -140,6 +139,15 @@ This writes `caption_emb_cache.npz` and `joint_emb_cache.npz` into each `dataset
</details>
+<details>
+<summary><b>Troubleshooting</b> โ€” unstable training on Objaverse</summary>
+
+A non-trivial share of the Objaverse-XL rigs and clips are defective: rest poses that lie flat, are rotated or are inverted, and clips that stitch several unrelated actions together. Training on them can destabilize or collapse a run, and isolated spikes in the training loss are usually a symptom of bad data rather than of optimization.
+
+To localize the problem, first train on Mixamo and Truebones alone โ€” set `dataset.dataset_list` to `["truebones", "mixamo"]` in a copy of a config. If that run is healthy, the fault is on the Objaverse side. From there, inspect the skeleton preview videos of the suspect object types under `dataset/features/objaverse/videos/`, by eye or with an automated pass, and add the offending rigs and clips to the stage-4 skip lists that [`tools/patch_annotations.py`](data_process/README.md#stage-3--joint-annotation-name-cleanup--facing-direction) maintains.
+
+</details>
+
## ๐ŸŽฌ Inference
Given a rigged 3D asset and a text prompt, UniMate generates articulated motion for arbitrary skeletons in real time โ€” with no per-skeleton retraining and no test-time optimization.
@@ -313,3 +321,7 @@ If you find UniMate useful in your research, please consider citing our work:
The code in this repository is released under the [MIT License](LICENSE).
The datasets remain governed by the licenses of their original sources: the [Mixamo](https://www.mixamo.com/) assets by Adobe's Mixamo terms of use, the [Objaverse-XL](https://objaverse.allenai.org/) assets by the license attached to each original object, and the Truebones ZOO motions by [Truebones](https://truebones.com)' commercial license. Please review and comply with the respective source licenses before using the data.
+
+## ๐Ÿ“Œ Note
+
+The processed **UniML3D** dataset is being prepared for open release. Its captions were **re-processed** for this release, so they do not necessarily match the prompts shown on the [project page](https://linzhanmou.com/unimate/) or in the paper.
diff --git a/configs/mixamo_120frames_full_cross_attn.json b/configs/mixamo_120frames_full_cross_attn.json
deleted file mode 100644
index ebabdc1..0000000
--- a/configs/mixamo_120frames_full_cross_attn.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "experiment": {
- "name": "mixamo_120frames_full_cross_attn",
- "output_dir": "./outputs/mixamo_120frames_full_cross_attn"
- },
- "truebones": {
- "path": "dataset/features/truebones",
- "objects_subset": "all"
- },
- "mixamo": {
- "path": "dataset/features/mixamo"
- },
- "objaverse": {
- "path": "dataset/features/objaverse",
- "objects_num": -1,
- "filter_object": false
- },
- "dataset": {
- "dataset_list": [
- "mixamo"
- ],
- "topology_condition_type": "tpos",
- "motion_repr": "unimate",
- "test_split_ratio": 0.0,
- "max_motion_length": 120,
- "max_joints": 100,
- "min_joints": 5,
- "use_dataset_stats": true,
- "balanced_stats": false,
- "sampler_alpha": 0.5,
- "use_addition_aug": false,
- "use_removal_aug": false,
- "use_pooling_aug": false,
- "use_perturbation_aug": false,
- "ground_motion_height": true,
- "realign_feature": true
- },
- "model": {
- "attention": "full",
- "text_cond": "cross_attn",
- "use_joint_name_emb": true,
- "latent_dim": 512,
- "ff_size": 2048,
- "num_layers": 6,
- "num_heads": 8,
- "dropout": 0.0,
- "concat_parent_features": true,
- "use_graph_emb": false,
- "use_depth_emb": true,
- "use_spectral_rope": true,
- "max_freqs": 8,
- "use_signnet": true,
- "cond_mode": "text",
- "cond_mask_prob": 0.1,
- "text_encoder_type": "t5",
- "text_encoder_version": "google/flan-t5-base",
- "inject_tpos_to_adaln": true,
- "num_tpos_queries": 4
- },
- "scheduler": {
- "diffusion_steps": 100
- },
- "training": {
- "batch_size": 32,
- "seed": 10,
- "diff_model": "flow",
- "learning_rate": 0.0001,
- "weight_decay": 1e-05,
- "num_steps": 120000,
- "log_interval": 50,
- "save_interval": 10000,
- "lambda_geo": 0.5,
- "use_ema": true,
- "ema_decay": 0.9999,
- "max_grad_norm": 1.0,
- "warmup_ratio": 0.03,
- "min_lr_ratio": 0.05,
- "balanced": false
- },
- "sampling": {
- "num_samples": 3,
- "num_repetitions": 3,
- "cfg_scale": 3.0
- }
-}
diff --git a/configs/mixamo_120frames_graph_adaln.json b/configs/mixamo_120frames_graph_adaln.json
deleted file mode 100644
index 8cfde50..0000000
--- a/configs/mixamo_120frames_graph_adaln.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "experiment": {
- "name": "mixamo_120frames_graph_adaln",
- "output_dir": "./outputs/mixamo_120frames_graph_adaln"
- },
- "truebones": {
- "path": "dataset/features/truebones",
- "objects_subset": "all"
- },
- "mixamo": {
- "path": "dataset/features/mixamo"
- },
- "objaverse": {
- "path": "dataset/features/objaverse",
- "objects_num": -1,
- "filter_object": false
- },
- "dataset": {
- "dataset_list": [
- "mixamo"
- ],
- "topology_condition_type": "tpos",
- "motion_repr": "unimate",
- "test_split_ratio": 0.0,
- "max_motion_length": 120,
- "max_joints": 100,
- "min_joints": 5,
- "use_dataset_stats": true,
- "balanced_stats": false,
- "sampler_alpha": 0.5,
- "use_addition_aug": false,
- "use_removal_aug": false,
- "use_pooling_aug": false,
- "use_perturbation_aug": false,
- "ground_motion_height": true,
- "realign_feature": true
- },
- "model": {
- "attention": "graph",
- "text_cond": "adaln",
- "use_joint_name_emb": true,
- "latent_dim": 512,
- "ff_size": 2048,
- "num_layers": 6,
- "num_heads": 8,
- "dropout": 0.0,
- "concat_parent_features": true,
- "use_graph_emb": false,
- "use_depth_emb": true,
- "use_spectral_rope": true,
- "max_freqs": 8,
- "use_signnet": true,
- "cond_mode": "text",
- "cond_mask_prob": 0.1,
- "text_encoder_type": "t5",
- "text_encoder_version": "google/flan-t5-base",
- "inject_tpos_to_adaln": true,
- "num_tpos_queries": 4
- },
- "scheduler": {
- "diffusion_steps": 100
- },
- "training": {
- "batch_size": 32,
- "seed": 10,
- "diff_model": "flow",
- "learning_rate": 0.0001,
- "weight_decay": 1e-05,
- "num_steps": 120000,
- "log_interval": 50,
- "save_interval": 10000,
- "lambda_geo": 0.5,
- "use_ema": true,
- "ema_decay": 0.9999,
- "max_grad_norm": 1.0,
- "warmup_ratio": 0.03,
- "min_lr_ratio": 0.05,
- "balanced": false
- },
- "sampling": {
- "num_samples": 3,
- "num_repetitions": 3,
- "cfg_scale": 3.0
- }
-}
diff --git a/configs/mixamo_90frames_full_cross_attn.json b/configs/mixamo_90frames_full_cross_attn.json
deleted file mode 100644
index 6f897ec..0000000
--- a/configs/mixamo_90frames_full_cross_attn.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "experiment": {
- "name": "mixamo_90frames_full_cross_attn",
- "output_dir": "./outputs/mixamo_90frames_full_cross_attn"
- },
- "truebones": {
- "path": "dataset/features/truebones",
- "objects_subset": "all"
- },
- "mixamo": {
- "path": "dataset/features/mixamo"
- },
- "objaverse": {
- "path": "dataset/features/objaverse",
- "objects_num": -1,
- "filter_object": false
- },
- "dataset": {
- "dataset_list": [
- "mixamo"
- ],
- "topology_condition_type": "tpos",
- "motion_repr": "unimate",
- "test_split_ratio": 0.0,
- "max_motion_length": 90,
- "max_joints": 100,
- "min_joints": 5,
- "use_dataset_stats": true,
- "balanced_stats": false,
- "sampler_alpha": 0.5,
- "use_addition_aug": false,
- "use_removal_aug": false,
- "use_pooling_aug": false,
- "use_perturbation_aug": false,
- "ground_motion_height": true,
- "realign_feature": true
- },
- "model": {
- "attention": "full",
- "text_cond": "cross_attn",
- "use_joint_name_emb": true,
- "latent_dim": 512,
- "ff_size": 2048,
- "num_layers": 6,
- "num_heads": 8,
- "dropout": 0.0,
- "concat_parent_features": true,
- "use_graph_emb": false,
- "use_depth_emb": true,
- "use_spectral_rope": true,
- "max_freqs": 8,
- "use_signnet": true,
- "cond_mode": "text",
- "cond_mask_prob": 0.1,
- "text_encoder_type": "t5",
- "text_encoder_version": "google/flan-t5-base",
- "inject_tpos_to_adaln": true,
- "num_tpos_queries": 4
- },
- "scheduler": {
- "diffusion_steps": 100
- },
- "training": {
- "batch_size": 32,
- "seed": 10,
- "diff_model": "flow",
- "learning_rate": 0.0001,
- "weight_decay": 1e-05,
- "num_steps": 120000,
- "log_interval": 50,
- "save_interval": 10000,
- "lambda_geo": 0.5,
- "use_ema": true,
- "ema_decay": 0.9999,
- "max_grad_norm": 1.0,
- "warmup_ratio": 0.03,
- "min_lr_ratio": 0.05,
- "balanced": false
- },
- "sampling": {
- "num_samples": 3,
- "num_repetitions": 3,
- "cfg_scale": 3.0
- }
-}
diff --git a/configs/mixamo_90frames_graph_adaln.json b/configs/mixamo_90frames_graph_adaln.json
deleted file mode 100644
index 5b045b9..0000000
--- a/configs/mixamo_90frames_graph_adaln.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "experiment": {
- "name": "mixamo_90frames_graph_adaln",
- "output_dir": "./outputs/mixamo_90frames_graph_adaln"
- },
- "truebones": {
- "path": "dataset/features/truebones",
- "objects_subset": "all"
- },
- "mixamo": {
- "path": "dataset/features/mixamo"
- },
- "objaverse": {
- "path": "dataset/features/objaverse",
- "objects_num": -1,
- "filter_object": false
- },
- "dataset": {
- "dataset_list": [
- "mixamo"
- ],
- "topology_condition_type": "tpos",
- "motion_repr": "unimate",
- "test_split_ratio": 0.0,
- "max_motion_length": 90,
- "max_joints": 100,
- "min_joints": 5,
- "use_dataset_stats": true,
- "balanced_stats": false,
- "sampler_alpha": 0.5,
- "use_addition_aug": false,
- "use_removal_aug": false,
- "use_pooling_aug": false,
- "use_perturbation_aug": false,
- "ground_motion_height": true,
- "realign_feature": true
- },
- "model": {
- "attention": "graph",
- "text_cond": "adaln",
- "use_joint_name_emb": true,
- "latent_dim": 512,
- "ff_size": 2048,
- "num_layers": 6,
- "num_heads": 8,
- "dropout": 0.0,
- "concat_parent_features": true,
- "use_graph_emb": false,
- "use_depth_emb": true,
- "use_spectral_rope": true,
- "max_freqs": 8,
- "use_signnet": true,
- "cond_mode": "text",
- "cond_mask_prob": 0.1,
- "text_encoder_type": "t5",
- "text_encoder_version": "google/flan-t5-base",
- "inject_tpos_to_adaln": true,
- "num_tpos_queries": 4
- },
- "scheduler": {
- "diffusion_steps": 100
- },
- "training": {
- "batch_size": 32,
- "seed": 10,
- "diff_model": "flow",
- "learning_rate": 0.0001,
- "weight_decay": 1e-05,
- "num_steps": 120000,
- "log_interval": 50,
- "save_interval": 10000,
- "lambda_geo": 0.5,
- "use_ema": true,
- "ema_decay": 0.9999,
- "max_grad_norm": 1.0,
- "warmup_ratio": 0.03,
- "min_lr_ratio": 0.05,
- "balanced": false
- },
- "sampling": {
- "num_samples": 3,
- "num_repetitions": 3,
- "cfg_scale": 3.0
- }
-}
diff --git a/configs/objaverse_120frames_full_cross_attn.json b/configs/objaverse_120frames_full_cross_attn.json
deleted file mode 100644
index 6747b01..0000000
--- a/configs/objaverse_120frames_full_cross_attn.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "experiment": {
- "name": "objaverse_120frames_full_cross_attn",
- "output_dir": "./outputs/objaverse_120frames_full_cross_attn"
- },
- "truebones": {
- "path": "dataset/features/truebones",
- "objects_subset": "all"
- },
- "mixamo": {
- "path": "dataset/features/mixamo"
- },
- "objaverse": {
- "path": "dataset/features/objaverse",
- "objects_num": -1,
- "filter_object": false
- },
- "dataset": {
- "dataset_list": [
- "objaverse"
- ],
- "topology_condition_type": "tpos",
- "motion_repr": "unimate",
- "test_split_ratio": 0.0,
- "max_motion_length": 120,
- "max_joints": 100,
- "min_joints": 5,
- "use_dataset_stats": true,
- "balanced_stats": true,
- "sampler_alpha": 0.5,
- "use_addition_aug": true,
- "use_removal_aug": true,
- "use_pooling_aug": true,
- "use_perturbation_aug": true,
- "ground_motion_height": true,
- "realign_feature": true
- },
- "model": {
- "attention": "full",
- "text_cond": "cross_attn",
- "use_joint_name_emb": true,
- "latent_dim": 512,
- "ff_size": 2048,
- "num_layers": 8,
- "num_heads": 8,
- "dropout": 0.0,
- "concat_parent_features": true,
- "use_graph_emb": false,
- "use_depth_emb": true,
- "use_spectral_rope": true,
- "max_freqs": 8,
- "use_signnet": true,
- "cond_mode": "text",
- "cond_mask_prob": 0.1,
- "text_encoder_type": "t5",
- "text_encoder_version": "google/flan-t5-base",
- "inject_tpos_to_adaln": true,
- "num_tpos_queries": 4
- },
- "scheduler": {
- "diffusion_steps": 100
- },
- "training": {
- "batch_size": 24,
- "seed": 10,
- "diff_model": "flow",
- "learning_rate": 0.0001,
- "weight_decay": 1e-05,
- "num_steps": 100000,
- "log_interval": 50,
- "save_interval": 10000,
- "lambda_geo": 0.5,
- "use_ema": true,
- "ema_decay": 0.9999,
- "max_grad_norm": 1.0,
- "warmup_ratio": 0.03,
- "min_lr_ratio": 0.05,
- "balanced": true
- },
- "sampling": {
- "num_samples": 3,
- "num_repetitions": 3,
- "cfg_scale": 3.0
- }
-}
diff --git a/configs/objaverse_120frames_graph_adaln.json b/configs/objaverse_120frames_graph_adaln.json
deleted file mode 100644
index 23d094f..0000000
--- a/configs/objaverse_120frames_graph_adaln.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "experiment": {
- "name": "objaverse_120frames_graph_adaln",
- "output_dir": "./outputs/objaverse_120frames_graph_adaln"
- },
- "truebones": {
- "path": "dataset/features/truebones",
- "objects_subset": "all"
- },
- "mixamo": {
- "path": "dataset/features/mixamo"
- },
- "objaverse": {
- "path": "dataset/features/objaverse",
- "objects_num": -1,
- "filter_object": false
- },
- "dataset": {
- "dataset_list": [
- "objaverse"
- ],
- "topology_condition_type": "tpos",
- "motion_repr": "unimate",
- "test_split_ratio": 0.0,
- "max_motion_length": 120,
- "max_joints": 100,
- "min_joints": 5,
- "use_dataset_stats": true,
- "balanced_stats": true,
- "sampler_alpha": 0.5,
- "use_addition_aug": true,
- "use_removal_aug": true,
- "use_pooling_aug": true,
- "use_perturbation_aug": true,
- "ground_motion_height": true,
- "realign_feature": true
- },
- "model": {
- "attention": "graph",
- "text_cond": "adaln",
- "use_joint_name_emb": true,
- "latent_dim": 512,
- "ff_size": 2048,
- "num_layers": 8,
- "num_heads": 8,
- "dropout": 0.0,
- "concat_parent_features": true,
- "use_graph_emb": false,
- "use_depth_emb": true,
- "use_spectral_rope": true,
- "max_freqs": 8,
- "use_signnet": true,
- "cond_mode": "text",
- "cond_mask_prob": 0.1,
- "text_encoder_type": "t5",
- "text_encoder_version": "google/flan-t5-base",
- "inject_tpos_to_adaln": true,
- "num_tpos_queries": 4
- },
- "scheduler": {
- "diffusion_steps": 100
- },
- "training": {
- "batch_size": 24,
- "seed": 10,
- "diff_model": "flow",
- "learning_rate": 0.0001,
- "weight_decay": 1e-05,
- "num_steps": 100000,
- "log_interval": 50,
- "save_interval": 10000,
- "lambda_geo": 0.5,
- "use_ema": true,
- "ema_decay": 0.9999,
- "max_grad_norm": 1.0,
- "warmup_ratio": 0.03,
- "min_lr_ratio": 0.05,
- "balanced": true
- },
- "sampling": {
- "num_samples": 3,
- "num_repetitions": 3,
- "cfg_scale": 3.0
- }
-}
diff --git a/configs/objaverse_60frames_full_cross_attn.json b/configs/objaverse_60frames_full_cross_attn.json
index 3e10dc4..896391e 100644
--- a/configs/objaverse_60frames_full_cross_attn.json
+++ b/configs/objaverse_60frames_full_cross_attn.json
@@ -23,7 +23,7 @@
"motion_repr": "unimate",
"test_split_ratio": 0.0,
"max_motion_length": 60,
- "max_joints": 100,
+ "max_joints": 60,
"min_joints": 5,
"use_dataset_stats": true,
"balanced_stats": true,
diff --git a/configs/objaverse_60frames_graph_adaln.json b/configs/objaverse_60frames_graph_adaln.json
index c3f85d1..3d11251 100644
--- a/configs/objaverse_60frames_graph_adaln.json
+++ b/configs/objaverse_60frames_graph_adaln.json
@@ -23,7 +23,7 @@
"motion_repr": "unimate",
"test_split_ratio": 0.0,
"max_motion_length": 60,
- "max_joints": 100,
+ "max_joints": 60,
"min_joints": 5,
"use_dataset_stats": true,
"balanced_stats": true,
diff --git a/configs/objaverse_90frames_full_cross_attn.json b/configs/objaverse_90frames_full_cross_attn.json
deleted file mode 100644
index fdc5cba..0000000
--- a/configs/objaverse_90frames_full_cross_attn.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "experiment": {
- "name": "objaverse_90frames_full_cross_attn",
- "output_dir": "./outputs/objaverse_90frames_full_cross_attn"
- },
- "truebones": {
- "path": "dataset/features/truebones",
- "objects_subset": "all"
- },
- "mixamo": {
- "path": "dataset/features/mixamo"
- },
- "objaverse": {
- "path": "dataset/features/objaverse",
- "objects_num": -1,
- "filter_object": false
- },
- "dataset": {
- "dataset_list": [
- "objaverse"
- ],
- "topology_condition_type": "tpos",
- "motion_repr": "unimate",
- "test_split_ratio": 0.0,
- "max_motion_length": 90,
- "max_joints": 100,
- "min_joints": 5,
- "use_dataset_stats": true,
- "balanced_stats": true,
- "sampler_alpha": 0.5,
- "use_addition_aug": true,
- "use_removal_aug": true,
- "use_pooling_aug": true,
- "use_perturbation_aug": true,
- "ground_motion_height": true,
- "realign_feature": true
- },
- "model": {
- "attention": "full",
- "text_cond": "cross_attn",
- "use_joint_name_emb": true,
- "latent_dim": 512,
- "ff_size": 2048,
- "num_layers": 8,
- "num_heads": 8,
- "dropout": 0.0,
- "concat_parent_features": true,
- "use_graph_emb": false,
- "use_depth_emb": true,
- "use_spectral_rope": true,
- "max_freqs": 8,
- "use_signnet": true,
- "cond_mode": "text",
- "cond_mask_prob": 0.1,
- "text_encoder_type": "t5",
- "text_encoder_version": "google/flan-t5-base",
- "inject_tpos_to_adaln": true,
- "num_tpos_queries": 4
- },
- "scheduler": {
- "diffusion_steps": 100
- },
- "training": {
- "batch_size": 24,
- "seed": 10,
- "diff_model": "flow",
- "learning_rate": 0.0001,
- "weight_decay": 1e-05,
- "num_steps": 100000,
- "log_interval": 50,
- "save_interval": 10000,
- "lambda_geo": 0.5,
- "use_ema": true,
- "ema_decay": 0.9999,
- "max_grad_norm": 1.0,
- "warmup_ratio": 0.03,
- "min_lr_ratio": 0.05,
- "balanced": true
- },
- "sampling": {
- "num_samples": 3,
- "num_repetitions": 3,
- "cfg_scale": 3.0
- }
-}
diff --git a/configs/objaverse_90frames_graph_adaln.json b/configs/objaverse_90frames_graph_adaln.json
deleted file mode 100644
index b5e15ca..0000000
--- a/configs/objaverse_90frames_graph_adaln.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "experiment": {
- "name": "objaverse_90frames_graph_adaln",
- "output_dir": "./outputs/objaverse_90frames_graph_adaln"
- },
- "truebones": {
- "path": "dataset/features/truebones",
- "objects_subset": "all"
- },
- "mixamo": {
- "path": "dataset/features/mixamo"
- },
- "objaverse": {
- "path": "dataset/features/objaverse",
- "objects_num": -1,
- "filter_object": false
- },
- "dataset": {
- "dataset_list": [
- "objaverse"
- ],
- "topology_condition_type": "tpos",
- "motion_repr": "unimate",
- "test_split_ratio": 0.0,
- "max_motion_length": 90,
- "max_joints": 100,
- "min_joints": 5,
- "use_dataset_stats": true,
- "balanced_stats": true,
- "sampler_alpha": 0.5,
- "use_addition_aug": true,
- "use_removal_aug": true,
- "use_pooling_aug": true,
- "use_perturbation_aug": true,
- "ground_motion_height": true,
- "realign_feature": true
- },
- "model": {
- "attention": "graph",
- "text_cond": "adaln",
- "use_joint_name_emb": true,
- "latent_dim": 512,
- "ff_size": 2048,
- "num_layers": 8,
- "num_heads": 8,
- "dropout": 0.0,
- "concat_parent_features": true,
- "use_graph_emb": false,
- "use_depth_emb": true,
- "use_spectral_rope": true,
- "max_freqs": 8,
- "use_signnet": true,
- "cond_mode": "text",
- "cond_mask_prob": 0.1,
- "text_encoder_type": "t5",
- "text_encoder_version": "google/flan-t5-base",
- "inject_tpos_to_adaln": true,
- "num_tpos_queries": 4
- },
- "scheduler": {
- "diffusion_steps": 100
- },
- "training": {
- "batch_size": 24,
- "seed": 10,
- "diff_model": "flow",
- "learning_rate": 0.0001,
- "weight_decay": 1e-05,
- "num_steps": 100000,
- "log_interval": 50,
- "save_interval": 10000,
- "lambda_geo": 0.5,
- "use_ema": true,
- "ema_decay": 0.9999,
- "max_grad_norm": 1.0,
- "warmup_ratio": 0.03,
- "min_lr_ratio": 0.05,
- "balanced": true
- },
- "sampling": {
- "num_samples": 3,
- "num_repetitions": 3,
- "cfg_scale": 3.0
- }
-}
diff --git a/configs/truebones_120frames_full_cross_attn.json b/configs/truebones_120frames_full_cross_attn.json
deleted file mode 100644
index 34fd6be..0000000
--- a/configs/truebones_120frames_full_cross_attn.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "experiment": {
- "name": "truebones_120frames_full_cross_attn",
- "output_dir": "./outputs/truebones_120frames_full_cross_attn"
- },
- "truebones": {
- "path": "dataset/features/truebones",
- "objects_subset": "all"
- },
- "mixamo": {
- "path": "dataset/features/mixamo"
- },
- "objaverse": {
- "path": "dataset/features/objaverse",
- "objects_num": -1,
- "filter_object": false
- },
- "dataset": {
- "dataset_list": [
- "truebones"
- ],
- "topology_condition_type": "tpos",
- "motion_repr": "unimate",
- "test_split_ratio": 0.0,
- "max_motion_length": 120,
- "max_joints": 100,
- "min_joints": 5,
- "use_dataset_stats": true,
- "balanced_stats": true,
- "sampler_alpha": 0.5,
- "use_addition_aug": true,
- "use_removal_aug": true,
- "use_pooling_aug": true,
- "use_perturbation_aug": true,
- "ground_motion_height": true,
- "realign_feature": true
- },
- "model": {
- "attention": "full",
- "text_cond": "cross_attn",
- "use_joint_name_emb": true,
- "latent_dim": 512,
- "ff_size": 2048,
- "num_layers": 6,
- "num_heads": 8,
- "dropout": 0.0,
- "concat_parent_features": true,
- "use_graph_emb": false,
- "use_depth_emb": true,
- "use_spectral_rope": true,
- "max_freqs": 8,
- "use_signnet": true,
- "cond_mode": "text",
- "cond_mask_prob": 0.1,
- "text_encoder_type": "t5",
- "text_encoder_version": "google/flan-t5-base",
- "inject_tpos_to_adaln": true,
- "num_tpos_queries": 4
- },
- "scheduler": {
- "diffusion_steps": 100
- },
- "training": {
- "batch_size": 12,
- "seed": 10,
- "diff_model": "flow",
- "learning_rate": 0.0001,
- "weight_decay": 1e-05,
- "num_steps": 80000,
- "log_interval": 50,
- "save_interval": 10000,
- "lambda_geo": 0.5,
- "use_ema": true,
- "ema_decay": 0.9999,
- "max_grad_norm": 1.0,
- "warmup_ratio": 0.03,
- "min_lr_ratio": 0.05,
- "balanced": true
- },
- "sampling": {
- "num_samples": 3,
- "num_repetitions": 3,
- "cfg_scale": 3.0
- }
-}
diff --git a/configs/truebones_120frames_graph_adaln.json b/configs/truebones_120frames_graph_adaln.json
deleted file mode 100644
index caf4140..0000000
--- a/configs/truebones_120frames_graph_adaln.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "experiment": {
- "name": "truebones_120frames_graph_adaln",
- "output_dir": "./outputs/truebones_120frames_graph_adaln"
- },
- "truebones": {
- "path": "dataset/features/truebones",
- "objects_subset": "all"
- },
- "mixamo": {
- "path": "dataset/features/mixamo"
- },
- "objaverse": {
- "path": "dataset/features/objaverse",
- "objects_num": -1,
- "filter_object": false
- },
- "dataset": {
- "dataset_list": [
- "truebones"
- ],
- "topology_condition_type": "tpos",
- "motion_repr": "unimate",
- "test_split_ratio": 0.0,
- "max_motion_length": 120,
- "max_joints": 100,
- "min_joints": 5,
- "use_dataset_stats": true,
- "balanced_stats": true,
- "sampler_alpha": 0.5,
- "use_addition_aug": true,
- "use_removal_aug": true,
- "use_pooling_aug": true,
- "use_perturbation_aug": true,
- "ground_motion_height": true,
- "realign_feature": true
- },
- "model": {
- "attention": "graph",
- "text_cond": "adaln",
- "use_joint_name_emb": true,
- "latent_dim": 512,
- "ff_size": 2048,
- "num_layers": 6,
- "num_heads": 8,
- "dropout": 0.0,
- "concat_parent_features": true,
- "use_graph_emb": false,
- "use_depth_emb": true,
- "use_spectral_rope": true,
- "max_freqs": 8,
- "use_signnet": true,
- "cond_mode": "text",
- "cond_mask_prob": 0.1,
- "text_encoder_type": "t5",
- "text_encoder_version": "google/flan-t5-base",
- "inject_tpos_to_adaln": true,
- "num_tpos_queries": 4
- },
- "scheduler": {
- "diffusion_steps": 100
- },
- "training": {
- "batch_size": 12,
- "seed": 10,
- "diff_model": "flow",
- "learning_rate": 0.0001,
- "weight_decay": 1e-05,
- "num_steps": 80000,
- "log_interval": 50,
- "save_interval": 10000,
- "lambda_geo": 0.5,
- "use_ema": true,
- "ema_decay": 0.9999,
- "max_grad_norm": 1.0,
- "warmup_ratio": 0.03,
- "min_lr_ratio": 0.05,
- "balanced": true
- },
- "sampling": {
- "num_samples": 3,
- "num_repetitions": 3,
- "cfg_scale": 3.0
- }
-}
diff --git a/configs/truebones_90frames_full_cross_attn.json b/configs/truebones_90frames_full_cross_attn.json
deleted file mode 100644
index effb03d..0000000
--- a/configs/truebones_90frames_full_cross_attn.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "experiment": {
- "name": "truebones_90frames_full_cross_attn",
- "output_dir": "./outputs/truebones_90frames_full_cross_attn"
- },
- "truebones": {
- "path": "dataset/features/truebones",
- "objects_subset": "all"
- },
- "mixamo": {
- "path": "dataset/features/mixamo"
- },
- "objaverse": {
- "path": "dataset/features/objaverse",
- "objects_num": -1,
- "filter_object": false
- },
- "dataset": {
- "dataset_list": [
- "truebones"
- ],
- "topology_condition_type": "tpos",
- "motion_repr": "unimate",
- "test_split_ratio": 0.0,
- "max_motion_length": 90,
- "max_joints": 100,
- "min_joints": 5,
- "use_dataset_stats": true,
- "balanced_stats": true,
- "sampler_alpha": 0.5,
- "use_addition_aug": true,
- "use_removal_aug": true,
- "use_pooling_aug": true,
- "use_perturbation_aug": true,
- "ground_motion_height": true,
- "realign_feature": true
- },
- "model": {
- "attention": "full",
- "text_cond": "cross_attn",
- "use_joint_name_emb": true,
- "latent_dim": 512,
- "ff_size": 2048,
- "num_layers": 6,
- "num_heads": 8,
- "dropout": 0.0,
- "concat_parent_features": true,
- "use_graph_emb": false,
- "use_depth_emb": true,
- "use_spectral_rope": true,
- "max_freqs": 8,
- "use_signnet": true,
- "cond_mode": "text",
- "cond_mask_prob": 0.1,
- "text_encoder_type": "t5",
- "text_encoder_version": "google/flan-t5-base",
- "inject_tpos_to_adaln": true,
- "num_tpos_queries": 4
- },
- "scheduler": {
- "diffusion_steps": 100
- },
- "training": {
- "batch_size": 16,
- "seed": 10,
- "diff_model": "flow",
- "learning_rate": 0.0001,
- "weight_decay": 1e-05,
- "num_steps": 80000,
- "log_interval": 50,
- "save_interval": 10000,
- "lambda_geo": 0.5,
- "use_ema": true,
- "ema_decay": 0.9999,
- "max_grad_norm": 1.0,
- "warmup_ratio": 0.03,
- "min_lr_ratio": 0.05,
- "balanced": true
- },
- "sampling": {
- "num_samples": 3,
- "num_repetitions": 3,
- "cfg_scale": 3.0
- }
-}
diff --git a/configs/truebones_90frames_graph_adaln.json b/configs/truebones_90frames_graph_adaln.json
deleted file mode 100644
index 5eb65c6..0000000
--- a/configs/truebones_90frames_graph_adaln.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "experiment": {
- "name": "truebones_90frames_graph_adaln",
- "output_dir": "./outputs/truebones_90frames_graph_adaln"
- },
- "truebones": {
- "path": "dataset/features/truebones",
- "objects_subset": "all"
- },
- "mixamo": {
- "path": "dataset/features/mixamo"
- },
- "objaverse": {
- "path": "dataset/features/objaverse",
- "objects_num": -1,
- "filter_object": false
- },
- "dataset": {
- "dataset_list": [
- "truebones"
- ],
- "topology_condition_type": "tpos",
- "motion_repr": "unimate",
- "test_split_ratio": 0.0,
- "max_motion_length": 90,
- "max_joints": 100,
- "min_joints": 5,
- "use_dataset_stats": true,
- "balanced_stats": true,
- "sampler_alpha": 0.5,
- "use_addition_aug": true,
- "use_removal_aug": true,
- "use_pooling_aug": true,
- "use_perturbation_aug": true,
- "ground_motion_height": true,
- "realign_feature": true
- },
- "model": {
- "attention": "graph",
- "text_cond": "adaln",
- "use_joint_name_emb": true,
- "latent_dim": 512,
- "ff_size": 2048,
- "num_layers": 6,
- "num_heads": 8,
- "dropout": 0.0,
- "concat_parent_features": true,
- "use_graph_emb": false,
- "use_depth_emb": true,
- "use_spectral_rope": true,
- "max_freqs": 8,
- "use_signnet": true,
- "cond_mode": "text",
- "cond_mask_prob": 0.1,
- "text_encoder_type": "t5",
- "text_encoder_version": "google/flan-t5-base",
- "inject_tpos_to_adaln": true,
- "num_tpos_queries": 4
- },
- "scheduler": {
- "diffusion_steps": 100
- },
- "training": {
- "batch_size": 16,
- "seed": 10,
- "diff_model": "flow",
- "learning_rate": 0.0001,
- "weight_decay": 1e-05,
- "num_steps": 80000,
- "log_interval": 50,
- "save_interval": 10000,
- "lambda_geo": 0.5,
- "use_ema": true,
- "ema_decay": 0.9999,
- "max_grad_norm": 1.0,
- "warmup_ratio": 0.03,
- "min_lr_ratio": 0.05,
- "balanced": true
- },
- "sampling": {
- "num_samples": 3,
- "num_repetitions": 3,
- "cfg_scale": 3.0
- }
-}
diff --git a/configs/uniml3d_120frames_full_cross_attn.json b/configs/uniml3d_120frames_full_cross_attn.json
deleted file mode 100644
index 8dc4d47..0000000
--- a/configs/uniml3d_120frames_full_cross_attn.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "experiment": {
- "name": "uniml3d_120frames_full_cross_attn",
- "output_dir": "./outputs/uniml3d_120frames_full_cross_attn"
- },
- "truebones": {
- "path": "dataset/features/truebones",
- "objects_subset": "all"
- },
- "mixamo": {
- "path": "dataset/features/mixamo"
- },
- "objaverse": {
- "path": "dataset/features/objaverse",
- "objects_num": -1,
- "filter_object": false
- },
- "dataset": {
- "dataset_list": [
- "truebones",
- "mixamo",
- "objaverse"
- ],
- "topology_condition_type": "tpos",
- "motion_repr": "unimate",
- "test_split_ratio": 0.0,
- "max_motion_length": 120,
- "max_joints": 100,
- "min_joints": 5,
- "use_dataset_stats": true,
- "balanced_stats": true,
- "sampler_alpha": 0.5,
- "use_addition_aug": true,
- "use_removal_aug": true,
- "use_pooling_aug": true,
- "use_perturbation_aug": true,
- "ground_motion_height": true,
- "realign_feature": true
- },
- "model": {
- "attention": "full",
- "text_cond": "cross_attn",
- "use_joint_name_emb": true,
- "latent_dim": 512,
- "ff_size": 2048,
- "num_layers": 10,
- "num_heads": 8,
- "dropout": 0.0,
- "concat_parent_features": true,
- "use_graph_emb": false,
- "use_depth_emb": true,
- "use_spectral_rope": true,
- "max_freqs": 8,
- "use_signnet": true,
- "cond_mode": "text",
- "cond_mask_prob": 0.1,
- "text_encoder_type": "t5",
- "text_encoder_version": "google/flan-t5-base",
- "inject_tpos_to_adaln": true,
- "num_tpos_queries": 4
- },
- "scheduler": {
- "diffusion_steps": 100
- },
- "training": {
- "batch_size": 16,
- "seed": 10,
- "diff_model": "flow",
- "learning_rate": 0.0001,
- "weight_decay": 1e-05,
- "num_steps": 150000,
- "log_interval": 50,
- "save_interval": 10000,
- "lambda_geo": 0.5,
- "use_ema": true,
- "ema_decay": 0.9999,
- "max_grad_norm": 1.0,
- "warmup_ratio": 0.03,
- "min_lr_ratio": 0.05,
- "balanced": true
- },
- "sampling": {
- "num_samples": 2,
- "num_repetitions": 3,
- "cfg_scale": 3.0
- }
-}
diff --git a/configs/uniml3d_120frames_graph_adaln.json b/configs/uniml3d_120frames_graph_adaln.json
deleted file mode 100644
index 1bf9211..0000000
--- a/configs/uniml3d_120frames_graph_adaln.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "experiment": {
- "name": "uniml3d_120frames_graph_adaln",
- "output_dir": "./outputs/uniml3d_120frames_graph_adaln"
- },
- "truebones": {
- "path": "dataset/features/truebones",
- "objects_subset": "all"
- },
- "mixamo": {
- "path": "dataset/features/mixamo"
- },
- "objaverse": {
- "path": "dataset/features/objaverse",
- "objects_num": -1,
- "filter_object": false
- },
- "dataset": {
- "dataset_list": [
- "truebones",
- "mixamo",
- "objaverse"
- ],
- "topology_condition_type": "tpos",
- "motion_repr": "unimate",
- "test_split_ratio": 0.0,
- "max_motion_length": 120,
- "max_joints": 100,
- "min_joints": 5,
- "use_dataset_stats": true,
- "balanced_stats": true,
- "sampler_alpha": 0.5,
- "use_addition_aug": true,
- "use_removal_aug": true,
- "use_pooling_aug": true,
- "use_perturbation_aug": true,
- "ground_motion_height": true,
- "realign_feature": true
- },
- "model": {
- "attention": "graph",
- "text_cond": "adaln",
- "use_joint_name_emb": true,
- "latent_dim": 512,
- "ff_size": 2048,
- "num_layers": 10,
- "num_heads": 8,
- "dropout": 0.0,
- "concat_parent_features": true,
- "use_graph_emb": false,
- "use_depth_emb": true,
- "use_spectral_rope": true,
- "max_freqs": 8,
- "use_signnet": true,
- "cond_mode": "text",
- "cond_mask_prob": 0.1,
- "text_encoder_type": "t5",
- "text_encoder_version": "google/flan-t5-base",
- "inject_tpos_to_adaln": true,
- "num_tpos_queries": 4
- },
- "scheduler": {
- "diffusion_steps": 100
- },
- "training": {
- "batch_size": 16,
- "seed": 10,
- "diff_model": "flow",
- "learning_rate": 0.0001,
- "weight_decay": 1e-05,
- "num_steps": 150000,
- "log_interval": 50,
- "save_interval": 10000,
- "lambda_geo": 0.5,
- "use_ema": true,
- "ema_decay": 0.9999,
- "max_grad_norm": 1.0,
- "warmup_ratio": 0.03,
- "min_lr_ratio": 0.05,
- "balanced": true
- },
- "sampling": {
- "num_samples": 2,
- "num_repetitions": 3,
- "cfg_scale": 3.0
- }
-}
diff --git a/configs/uniml3d_60frames_full_cross_attn.json b/configs/uniml3d_60frames_full_cross_attn.json
index b0c8c8d..f2feae0 100644
--- a/configs/uniml3d_60frames_full_cross_attn.json
+++ b/configs/uniml3d_60frames_full_cross_attn.json
@@ -25,7 +25,7 @@
"motion_repr": "unimate",
"test_split_ratio": 0.0,
"max_motion_length": 60,
- "max_joints": 100,
+ "max_joints": 60,
"min_joints": 5,
"use_dataset_stats": true,
"balanced_stats": true,
@@ -68,7 +68,7 @@
"diff_model": "flow",
"learning_rate": 0.0001,
"weight_decay": 1e-05,
- "num_steps": 150000,
+ "num_steps": 120000,
"log_interval": 50,
"save_interval": 10000,
"lambda_geo": 0.5,
diff --git a/configs/uniml3d_60frames_graph_adaln.json b/configs/uniml3d_60frames_graph_adaln.json
index 953b56d..1c14a38 100644
--- a/configs/uniml3d_60frames_graph_adaln.json
+++ b/configs/uniml3d_60frames_graph_adaln.json
@@ -25,7 +25,7 @@
"motion_repr": "unimate",
"test_split_ratio": 0.0,
"max_motion_length": 60,
- "max_joints": 100,
+ "max_joints": 60,
"min_joints": 5,
"use_dataset_stats": true,
"balanced_stats": true,
@@ -68,7 +68,7 @@
"diff_model": "flow",
"learning_rate": 0.0001,
"weight_decay": 1e-05,
- "num_steps": 150000,
+ "num_steps": 120000,
"log_interval": 50,
"save_interval": 10000,
"lambda_geo": 0.5,
diff --git a/configs/uniml3d_90frames_full_cross_attn.json b/configs/uniml3d_90frames_full_cross_attn.json
deleted file mode 100644
index b8b02c0..0000000
--- a/configs/uniml3d_90frames_full_cross_attn.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "experiment": {
- "name": "uniml3d_90frames_full_cross_attn",
- "output_dir": "./outputs/uniml3d_90frames_full_cross_attn"
- },
- "truebones": {
- "path": "dataset/features/truebones",
- "objects_subset": "all"
- },
- "mixamo": {
- "path": "dataset/features/mixamo"
- },
- "objaverse": {
- "path": "dataset/features/objaverse",
- "objects_num": -1,
- "filter_object": false
- },
- "dataset": {
- "dataset_list": [
- "truebones",
- "mixamo",
- "objaverse"
- ],
- "topology_condition_type": "tpos",
- "motion_repr": "unimate",
- "test_split_ratio": 0.0,
- "max_motion_length": 90,
- "max_joints": 100,
- "min_joints": 5,
- "use_dataset_stats": true,
- "balanced_stats": true,
- "sampler_alpha": 0.5,
- "use_addition_aug": true,
- "use_removal_aug": true,
- "use_pooling_aug": true,
- "use_perturbation_aug": true,
- "ground_motion_height": true,
- "realign_feature": true
- },
- "model": {
- "attention": "full",
- "text_cond": "cross_attn",
- "use_joint_name_emb": true,
- "latent_dim": 512,
- "ff_size": 2048,
- "num_layers": 10,
- "num_heads": 8,
- "dropout": 0.0,
- "concat_parent_features": true,
- "use_graph_emb": false,
- "use_depth_emb": true,
- "use_spectral_rope": true,
- "max_freqs": 8,
- "use_signnet": true,
- "cond_mode": "text",
- "cond_mask_prob": 0.1,
- "text_encoder_type": "t5",
- "text_encoder_version": "google/flan-t5-base",
- "inject_tpos_to_adaln": true,
- "num_tpos_queries": 4
- },
- "scheduler": {
- "diffusion_steps": 100
- },
- "training": {
- "batch_size": 16,
- "seed": 10,
- "diff_model": "flow",
- "learning_rate": 0.0001,
- "weight_decay": 1e-05,
- "num_steps": 150000,
- "log_interval": 50,
- "save_interval": 10000,
- "lambda_geo": 0.5,
- "use_ema": true,
- "ema_decay": 0.9999,
- "max_grad_norm": 1.0,
- "warmup_ratio": 0.03,
- "min_lr_ratio": 0.05,
- "balanced": true
- },
- "sampling": {
- "num_samples": 2,
- "num_repetitions": 3,
- "cfg_scale": 3.0
- }
-}
diff --git a/configs/uniml3d_90frames_graph_adaln.json b/configs/uniml3d_90frames_graph_adaln.json
deleted file mode 100644
index 33a79c4..0000000
--- a/configs/uniml3d_90frames_graph_adaln.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "experiment": {
- "name": "uniml3d_90frames_graph_adaln",
- "output_dir": "./outputs/uniml3d_90frames_graph_adaln"
- },
- "truebones": {
- "path": "dataset/features/truebones",
- "objects_subset": "all"
- },
- "mixamo": {
- "path": "dataset/features/mixamo"
- },
- "objaverse": {
- "path": "dataset/features/objaverse",
- "objects_num": -1,
- "filter_object": false
- },
- "dataset": {
- "dataset_list": [
- "truebones",
- "mixamo",
- "objaverse"
- ],
- "topology_condition_type": "tpos",
- "motion_repr": "unimate",
- "test_split_ratio": 0.0,
- "max_motion_length": 90,
- "max_joints": 100,
- "min_joints": 5,
- "use_dataset_stats": true,
- "balanced_stats": true,
- "sampler_alpha": 0.5,
- "use_addition_aug": true,
- "use_removal_aug": true,
- "use_pooling_aug": true,
- "use_perturbation_aug": true,
- "ground_motion_height": true,
- "realign_feature": true
- },
- "model": {
- "attention": "graph",
- "text_cond": "adaln",
- "use_joint_name_emb": true,
- "latent_dim": 512,
- "ff_size": 2048,
- "num_layers": 10,
- "num_heads": 8,
- "dropout": 0.0,
- "concat_parent_features": true,
- "use_graph_emb": false,
- "use_depth_emb": true,
- "use_spectral_rope": true,
- "max_freqs": 8,
- "use_signnet": true,
- "cond_mode": "text",
- "cond_mask_prob": 0.1,
- "text_encoder_type": "t5",
- "text_encoder_version": "google/flan-t5-base",
- "inject_tpos_to_adaln": true,
- "num_tpos_queries": 4
- },
- "scheduler": {
- "diffusion_steps": 100
- },
- "training": {
- "batch_size": 16,
- "seed": 10,
- "diff_model": "flow",
- "learning_rate": 0.0001,
- "weight_decay": 1e-05,
- "num_steps": 150000,
- "log_interval": 50,
- "save_interval": 10000,
- "lambda_geo": 0.5,
- "use_ema": true,
- "ema_decay": 0.9999,
- "max_grad_norm": 1.0,
- "warmup_ratio": 0.03,
- "min_lr_ratio": 0.05,
- "balanced": true
- },
- "sampling": {
- "num_samples": 2,
- "num_repetitions": 3,
- "cfg_scale": 3.0
- }
-}
diff --git a/data_process/README.md b/data_process/README.md
index bd7c996..516ce88 100644
--- a/data_process/README.md
+++ b/data_process/README.md
@@ -1,8 +1,8 @@
# UniML3D Data Processing
-The pipeline that turns raw rigged assets (Truebones FBX, Mixamo FBX, Objaverse GLB) into **UniML3D** โ€” the text-paired, topology-annotated motion clips used to train UniMate.
+The pipeline that turns raw rigged assets (Truebones FBX, Mixamo FBX, Objaverse GLB) into **[UniML3D](https://huggingface.co/datasets/Linzhan/UniML3D)** โ€” the text-paired, topology-annotated motion clips used to train UniMate.
-**How to read this document.** All commands are run **from the repository root**. Each stage lists the commands you need first; the collapsible **Details / Advanced / Reference** blocks hold the knobs, mechanics, and field tables. Every wrapper also prints its own usage with `-h`.
+**How to read this document.** All commands are run **from the repository root**. Each stage lists the commands you need first; the collapsible **Details / Reference** blocks hold the knobs and field tables. Every wrapper also prints its own usage with `-h`.
## Table of Contents
@@ -27,16 +27,7 @@ The pipeline that turns raw rigged assets (Truebones FBX, Mixamo FBX, Objaverse
## Overview
```mermaid
-%%{init: {
- "theme": "base",
- "themeVariables": {
- "fontFamily": "-apple-system, 'Segoe UI', Helvetica, Arial, sans-serif",
- "fontSize": "14px",
- "lineColor": "#94A3B8",
- "edgeLabelBackground": "#F1F5F9"
- },
- "flowchart": { "curve": "basis", "nodeSpacing": 40, "rankSpacing": 60 }
-}}%%
+%%{init: {"theme": "base", "themeVariables": {"fontFamily": "-apple-system, 'Segoe UI', Helvetica, Arial, sans-serif", "fontSize": "14px", "lineColor": "#94A3B8", "edgeLabelBackground": "#F1F5F9"}, "flowchart": {"curve": "basis", "nodeSpacing": 40, "rankSpacing": 60}}}%%
flowchart LR
raw(["๐Ÿ“ฆ raw FBX / GLB"])
export("<b>1 ยท Export</b><br/>Blender โ†’ NPZ")
@@ -94,15 +85,13 @@ The pipeline uses the shared `unimate` conda environment โ€” see [Environment Se
| Tool | Used by |
|------|---------|
-| [Blender](https://www.blender.org/) on `PATH` | stages 1 & 5 (headless `blender -b -P`) |
-| pip [`bpy`](https://pypi.org/project/bpy/) module (in the conda env) | stage 2a (EEVEE needs the module's GPU context) |
+| [Blender](https://www.blender.org/) on `PATH` | stages 1 & 5 (headless `blender -b -P`; developed against 3.2) |
+| pip [`bpy`](https://pypi.org/project/bpy/) module (in the conda env) | stage 2a โ€” pinned to `bpy==4.0.0`, the last release for Python 3.10; EEVEE needs the module's GPU context, so this stage does *not* run under `blender -b` |
| `ffmpeg` | video previews โ€” bundled by `imageio-ffmpeg` from `requirements.txt`; no system install needed |
| [`hf` CLI](https://hf.co/cli) | stage 0 โ€” installed with the env's `huggingface_hub` |
| CUDA GPU | stages 2a & 2b (and stage 3 when a local LLM is used) |
| `OPENAI_API_KEY` / `GOOGLE_API_KEY` / `DEEPSEEK_API_KEY` | stage 2b (OpenAI / Gemini captioning) and stage 3 (DeepSeek / OpenAI joint annotation) API backends |
-The two Blender surfaces are independent. Stages 1 and 5 run under a standalone Blender's bundled interpreter (`blender -b -P script.py -- args`) โ€” developed against Blender 3.2. Stage 2a runs under the `bpy` wheel installed into the conda env, pinned to `bpy==4.0.0` in `requirements.txt`: it is the last release built for Python 3.10, and 4.2+ changes the EEVEE API the render helpers use.
-
## Directory Layout
Code โ€” one directory per stage, bash wrappers in `scripts/`, shared library code in `utils/`:
@@ -131,14 +120,9 @@ dataset/render/<dataset>_tpose/ T-pose 2x2 grids (category input)
dataset/features/<dataset>/ stage-4 training clips + cond.npy
```
-`<dataset>` is one of `truebones`, `mixamo`, `objaverse`. For the full file-by-file contents of an export directory, see [Reference โ€” files in `dataset/export/<dataset>/`](#data-formats).
-
-<details>
-<summary><b>Details โ€”</b> why <code>dataset/render/</code> is a set of symlinks</summary>
+`<dataset>` is one of `truebones`, `mixamo`, `objaverse`. For the file-by-file contents of an export directory, see [Reference โ€” files in `dataset/export/<dataset>/`](#data-formats).
-Both `dataset/render/` paths are symlinks into the dataset's own Hub mirror, so renders sit beside the assets they came from and upload with them โ€” `truebones` โ†’ `raw/truebones/{animation_render,species_tpose}`, `mixamo` โ†’ `raw/mixamo/{animation_motion_render,character_tpose}`, `objaverse` โ†’ `raw/objaverse_renders/{glb_render,tpose}`. Objaverse keeps its renders in a separate repo because there are 10,355 clip folders.
-
-</details>
+Both `dataset/render/` paths are symlinks into each dataset's own Hub mirror, so renders sit beside the assets they came from: `truebones` โ†’ `raw/truebones/{animation_render,species_tpose}`, `mixamo` โ†’ `raw/mixamo/{animation_motion_render,character_tpose}`, `objaverse` โ†’ `raw/objaverse_renders/{glb_render,tpose}` (a separate repo, because there are 10,355 clip folders).
## Getting the Raw Data
@@ -158,7 +142,17 @@ bash data_process/scripts/run_download.sh objaverse_renders # โ†’ dataset/raw/
| `truebones` | [Linzhan/Truebones-ZOO-Annotations](https://huggingface.co/datasets/Linzhan/Truebones-ZOO-Annotations) (prompts, metadata, renders, build scripts โ€” no motion files) |
| `objaverse_renders` | [Linzhan/Objaverse-XL-Rigged-Animated-Renders](https://huggingface.co/datasets/Linzhan/Objaverse-XL-Rigged-Animated-Renders) (four-view clip MP4s + T-pose grids; download-only companion, not a pipeline dataset name) |
-The Mixamo and Truebones repos also carry the stage-2a multi-view renders as per-view MP4 previews plus camera JSONs (`animation_motion_render/`, `animation_render/` โ€” see each repo's README). The per-frame PNGs the caption stage reads are not hosted; stage 2a regenerates them (or extract stills from the MP4s).
+The Mixamo and Truebones repos also carry the stage-2a renders as per-view MP4 previews plus camera JSONs. The per-frame PNGs the caption stage reads are not hosted; stage 2a regenerates them.
+
+> [!TIP]
+> **You may not need to run stages 1-3 at all.** Their combined output is published as [Linzhan/UniML3D](https://huggingface.co/datasets/Linzhan/UniML3D), so stage 4 on its own reproduces the training clips:
+>
+> ```bash
+> hf download Linzhan/UniML3D --type dataset --local-dir dataset --include "export/*"
+> bash data_process/scripts/run_extract_features.sh objaverse
+> ```
+>
+> The Truebones motion NPZs are held back there for the licensing reason below; everything else, including all captions and annotations, is included.
> [!IMPORTANT]
> **The Truebones motion files are not downloadable from us.** The Truebones ZOO animal pack is a commercial product whose license does not allow redistribution, so its repo ships annotations only. Purchase the pack from [Truebones](https://truebones.com) and rebuild the per-clip layout as described below.
@@ -239,12 +233,12 @@ Each export directory receives:
| `motions/{clip}.npz` | one NPZ per clip (see [Data Formats](#data-formats)) |
| `videos/{clip}.mp4`, `tpose/{name}.png` | skeleton preview per clip and rest-pose still per asset (skip with `--no-vis`) |
| `joint_names.json` | `{asset: [pruned bone names]}` โ€” the input of stage 3 |
-| `joint_count.json`, `clip_frames.json`, `summary.json` | joints per skeleton, frames per clip, dataset-level summary (plotted by `tools/vis_joint_count.py` / `tools/vis_clip_frames.py`) |
+| `joint_count.json`, `clip_frames.json`, `summary.json` | joints per skeleton, frames per clip, dataset-level summary |
| `.completed/{asset}.json` | per-asset completion markers; delete one to force a re-export |
-`--multi-worker N` shards a *directory* input over N Blender processes (objaverse, mixamo, auto mode). Each worker writes its own `*_worker{i}.json` summary shards, and the wrapper merges them into the canonical files afterwards with `tools/merge_summaries.py`. Truebones is exported by a single-process exporter and ignores `--multi-worker` (with a warning).
+`--multi-worker N` shards a *directory* input over N Blender processes (objaverse, mixamo, auto mode). Each worker writes its own `*_worker{i}.json` summary shards, merged afterwards by `tools/merge_summaries.py`. Truebones is exported by a single-process exporter and ignores `--multi-worker`.
-Skeleton pruning is joint across all of an asset's clips, so an asset only completes atomically โ€” the marker is written once every clip of that asset is on disk (including assets that legitimately yield no clips, recorded as `status="skipped"`). Markers also carry the pruned joint names, which is what makes `joint_names.json` rebuildable from disk after an interrupted run.
+Skeleton pruning is joint across all of an asset's clips, so an asset only completes atomically โ€” the marker is written once every clip of that asset is on disk. Markers also carry the pruned joint names, which is what makes `joint_names.json` rebuildable from disk after an interrupted run.
</details>
@@ -260,16 +254,15 @@ bash data_process/scripts/run_render_tpose.sh objaverse
DATA_DIR=outputs/mixamo_characters bash data_process/scripts/run_render_motion.sh mixamo
```
-Each clip becomes `<clip>/v00{0..3}/*.png` (the per-frame PNGs the caption stage reads) plus a composed `<clip>/v00{0..3}.mp4` per view (`--no-video` to skip). Render folders use the same clip naming as stage 1, so they line up with the exported NPZs. Stage 2a runs with plain `python` and the pip `bpy` module rather than `blender -b`, because EEVEE needs the module's GPU context.
+Each clip becomes `<clip>/v00{0..3}/*.png` (the per-frame PNGs the caption stage reads) plus a composed `<clip>/v00{0..3}.mp4` per view (`--no-video` to skip). Render folders use the same clip naming as stage 1, so they line up with the exported NPZs.
<details>
-<summary><b>Details โ€”</b> frame cap, fps consistency, render settings, multi-GPU</summary>
+<summary><b>Details โ€”</b> frame cap, fps consistency, multi-GPU</summary>
- **Frame cap.** Rendering stops at the first 200 frames per clip (`MAX_RENDER_FRAMES`, ~6.7 s at 30 fps) โ€” enough context for captioning without paying for full-length renders. Clips shorter than `MIN_ACTION_FRAMES` (default 5) are skipped.
- **`--fps` must match stage 1.** glTF stores keyframe times in seconds, so the importer resamples them at the scene frame rate; a mismatch makes the renders cover a different time window than the NPZs. Default 30 in both stages.
-- **Quality knobs.** `RESOLUTION` (512), `SAMPLES` (64), `CAMERA_DIST` (1.5) are environment overrides on both wrappers.
-- **Resume.** Rerunning re-renders only what is missing. `--missing-only` (objaverse renderer only) additionally skips whole GLBs whose every action is already complete, which avoids re-importing them.
-- **Multi-GPU.** `--multi-worker N` shards assets over N processes; with `NUM_GPUS>1` the workers are spread round-robin over the visible GPUs. The `CUDA_VISIBLE_DEVICES` pinning does **not** bind EEVEE's EGL context, so on a shared multi-GPU machine every worker still renders on the first GPU โ€” give each render job a cgroup / scheduler allocation that exposes exactly one GPU instead.
+- **Multi-GPU.** `--multi-worker N` shards assets over N processes. `CUDA_VISIBLE_DEVICES` pinning does **not** bind EEVEE's EGL context, so on a shared multi-GPU machine every worker still renders on the first GPU โ€” give each render job a cgroup / scheduler allocation that exposes exactly one GPU instead.
+- Quality knobs (`RESOLUTION`, `SAMPLES`, `CAMERA_DIST`) are environment overrides on both wrappers; run either with `-h`.
</details>
@@ -296,36 +289,24 @@ Both write into the export directory next to the stage-1 output:
| `motion_captions.json` | `{clip: caption}` โ€” one short caption per clip |
| `motion_captions_failed.txt` | clips that failed or whose renders were incomplete; retried on the next run |
| `category_groups.json` | `{category: [assets]}` over `bipedal`, `quadrupedal`, `insectoid`, `avian`, `marine`, `serpentine`, `articulated_rigid`, plus an `uncertain` bucket |
-| `category_groups_review.json` | per asset: votes, confidence and the evidence the model cited |
-| `category_groups_errors.json` | assets whose retries were exhausted; retried on the next run |
+| `category_groups_review.json`, `category_groups_errors.json` | per-asset votes and evidence; assets whose retries were exhausted |
Clips whose renders are incomplete are recorded as failures rather than captioned from a partial set. Mixamo is a single shared humanoid rig, so its wrapper writes `category_groups.json` directly instead of classifying.
<details>
-<summary><b>Details โ€”</b> caption backends, parallelism, and model inputs</summary>
+<summary><b>Details โ€”</b> backends, parallelism, and what the models see</summary>
-- **Backend selection.** A `MODEL` containing `qwen` runs locally through HuggingFace transformers; `gemini*` uses the Gemini API; anything else is treated as an OpenAI-compatible model (`BASE_URL` points it at a proxy). The local default is `Qwen/Qwen3.5-9B`; `MODEL=Qwen/Qwen3.8-27B` selects the 27B model (same architecture and settings, about 56 GB in bf16, so one 80 GB GPU) and `MODEL=Qwen/Qwen3-VL-8B-Instruct` the older Qwen3-VL.
-- **Parallelism.** `--multi-gpu` applies to the local backend only: one process per visible GPU writes a shard file, and the wrapper merges the shards into `motion_captions.json` when all of them succeed. API backends scale with `NUM_WORKERS` concurrent requests instead.
-- **What the model sees.** The local backend receives each clip's four camera views as native video at the render frame rate (`--vision_input video`, the default). API backends receive frame sequences, uniformly sampled down to `--max_frames_per_view` with the first and last frame always kept.
-- **Reference hints.** For mixamo and truebones the official catalogue prompts (`animation_motion_prompts.json` / `animation_prompts.json`) are attached as frame-grounded hints automatically; `HINTS_JSON` overrides the file, `HINTS_JSON=""` disables hints.
+- **Backend selection.** A `MODEL` containing `qwen` runs locally through HuggingFace transformers; `gemini*` uses the Gemini API; anything else is treated as an OpenAI-compatible model (`BASE_URL` points it at a proxy). The local default is `Qwen/Qwen3.5-9B`; `MODEL=Qwen/Qwen3.8-27B` selects the 27B model (โ‰ˆ56 GB in bf16, so one 80 GB GPU).
+- **Parallelism.** `--multi-gpu` applies to the local backend only: one process per visible GPU writes a shard file, merged into `motion_captions.json` when all of them succeed. API backends scale with `NUM_WORKERS` concurrent requests instead.
+- **Caption inputs.** The local backend receives each clip's four camera views as native video at the render frame rate; API backends receive frame sequences sampled down to `--max_frames_per_view`. For mixamo and truebones the official catalogue prompts are attached as frame-grounded hints (`HINTS_JSON=""` disables them).
+- **Category inputs.** Per asset, `classify_category.py` shows four T-pose views, the first frame of one clip from the same four cameras (a rest pose can lie flat, so the natural stance matters), skeleton facts (joint count, grounded limb chains, label histogram, body extents) and up to `--max_captions` motion captions. `VOTES` (default 3) sampled answers are majority-voted; a tie, a low-confidence majority or the model's own `uncertain` verdict lands in the `uncertain` bucket instead of being silently mis-filed. Hand corrections go in `<dataset>_categories.json` in the patch directory; `tools/eval_category_groups.py` scores a run against a truth set.
</details>
<details>
-<summary><b>Details โ€”</b> body-plan classification</summary>
-
-Per asset, `vlm_caption/classify_category.py` shows the model four kinds of evidence: the four T-pose views from `dataset/render/<dataset>_tpose/`; the first frame of one clip from the same four cameras (a rest pose can lie flat on the ground, so the natural stance matters); skeleton facts derived from the export directory (joint count, grounded limb chains, cleaned-label histogram, body extents); and up to `--max_captions` of the asset's motion captions.
-
-It answers with a small JSON object carrying evidence fields, a category and a confidence. `VOTES` (default 3) sampled answers are majority-voted; a tie, a low-confidence majority or the model's own `uncertain` verdict lands in the `uncertain` bucket for review instead of being silently mis-filed. Unparseable answers (`unknown`) are always re-attempted on the next run; `--retry_uncertain` also re-attempts the uncertain bucket.
+<summary><b>Details โ€”</b> rewriting captions that name props</summary>
-Hand corrections belong in the patch directory as `<dataset>_categories.json` (applied by `tools/patch_annotations.py`). `tools/eval_category_groups.py` scores a run against `vlm_caption/eval/truebones_category_truth.json`, or diffs two runs against each other.
-
-</details>
-
-<details>
-<summary><b>Advanced โ€”</b> rewriting captions that name props</summary>
-
-Nothing but the body is rendered, yet a catalogue hint such as *Rifle Run Left* can leak a prop or scenery word into a caption. `caption_rewrite_llm.py` finds those captions with a word list, asks a text LLM to rewrite each into body-only wording (`aims a rifle` โ†’ `extends one arm forward as if aiming`), validates the answer (no prop word, subject preserved, one short sentence) and writes a patch JSON that `tools/patch_annotations.py` applies after review โ€” nothing is modified in place:
+Nothing but the body is rendered, yet a catalogue hint such as *Rifle Run Left* can leak a prop or scenery word into a caption. `caption_rewrite_llm.py` finds those with a word list, asks a text LLM to rewrite each into body-only wording (`aims a rifle` โ†’ `extends one arm forward as if aiming`), validates the answer and writes a patch JSON that `tools/patch_annotations.py` applies after review โ€” nothing is modified in place:
```bash
python data_process/vlm_caption/caption_rewrite_llm.py \
@@ -349,37 +330,28 @@ bash data_process/scripts/run_joints_face_select_llm.sh objaverse # โ†’ fac
Rigs that fell back to the rules are listed in `failed_clean_names.txt` / `failed_face_joints.txt` next to the outputs, so a refinement pass can be restricted to them.
<details>
-<summary><b>Advanced โ€”</b> optional refinement passes</summary>
+<summary><b>Details โ€”</b> refinement passes, rule variants, and QA visualizers</summary>
-Skip these on a clean LLM run; reach for them when the required passes recorded failures or when spot checks reveal residual label / pairing errors:
+Skip the refinement passes on a clean LLM run; reach for them when the required passes recorded failures or when spot checks reveal residual errors. Both edit in place, create a `.bak` sibling on first run, and list rigs they still could not fix in `still_*` text files.
```bash
bash data_process/scripts/run_joints_names_correct_llm.sh objaverse # re-check every label, correct in place
bash data_process/scripts/run_joints_face_correct_llm.sh objaverse # retry rigs whose facing pair came back "empty"
```
-`names_correct_llm` sends each `{raw, current}` label pair back to the LLM to keep or fix โ€” most useful for rigs that fell back to the rules (restrict with `FAILED_LIST=.../failed_clean_names.txt`; long rigs are chunked with the full rig attached as read-only context). `face_correct_llm` re-attempts only `source == "empty"` entries by default, with a correction prompt, no rule hint, and a larger reasoning budget; pass `--force_reattempt` to also retry the rule-fallback rigs in `failed_face_joints.txt`. Only a clean non-empty LLM answer replaces an existing entry. Both edit in place, create a `.bak` sibling on first run, and list rigs they still could not fix in `still_*` text files.
+`names_correct_llm` sends each `{raw, current}` label pair back to the LLM to keep or fix (restrict with `FAILED_LIST=.../failed_clean_names.txt`). `face_correct_llm` re-attempts only `source == "empty"` entries by default; `--force_reattempt` also retries the rule-fallback rigs. Both cleaners write the same `clean_joint_names.json`, so the LLM pass skips rigs the rule pass already filled in (`--overwrite` / `--redo_failed`).
-Both cleaners write the same `clean_joint_names.json`, so the LLM pass skips rigs the rule-based pass already filled in; pass `--overwrite` to redo everything or `--redo_failed` to redo only the rigs listed in `failed_clean_names.txt`.
-
-</details>
-
-<details>
-<summary><b>Advanced โ€”</b> rule-based variants and QA visualizers</summary>
-
-Pure rule-based variants exist as `run_joints_names_clean_rule.sh` / `run_joints_face_select_rule.sh` (no API needed โ€” useful offline or as a fast first pass; the LLM variants use them as hint and fallback).
+Pure rule-based variants exist as `run_joints_names_clean_rule.sh` / `run_joints_face_select_rule.sh` โ€” no API needed, and the LLM variants use them as hint and fallback.
Three visualizers check a facing pair by eye:
```bash
-bash data_process/scripts/run_joints_vis_tpose.sh <dataset> # annotated T-pose PNG per skeleton
+bash data_process/scripts/run_joints_vis_tpose.sh <dataset> # one annotated PNG per skeleton, every joint labeled
bash data_process/scripts/run_joints_vis_facing.sh <dataset> # rest pose vs. canonicalized pose
python -m data_process.tools.vis_motion <motion.npz> --direction face --face-joints I J
```
-- `run_joints_vis_tpose.sh` renders one PNG per unique skeleton with every joint labeled, into `<export_dir>/face_joints_vis/` (`LIMIT=N` to stop early).
-- `run_joints_vis_facing.sh` runs the stage-4 canonicalization on every rest pose and saves a side-by-side `[original rest pose with the pair marked (r red, l blue) and its forward arrow | the same pose corrected by the pair, facing +Z]` per skeleton under `outputs/tpose_facing_vis/<dataset>/`, plus a `facing_summary.tsv` flagging `COINCIDENT` pairs (both joints on the midline in the rest pose and at frame 0 โ€” pick another pair), `REST-DEGENERATE` rest poses (the pair is lateral at frame 0 but not in the rest pose: the exported rest pose lies on its side, so the stage-4 T-pose facing is unreliable) and `UNRESOLVED` names. `FACE_JSON=<patch_dir>/<ds>_face_pairs.json` previews a patch before applying it.
-- `vis_motion.py` renders an MP4 of an exported clip with the heading arrow the pair implies.
+`run_joints_vis_facing.sh` runs the stage-4 canonicalization on every rest pose and saves a side-by-side `[rest pose with the pair marked and its forward arrow | the same pose corrected, facing +Z]` under `outputs/tpose_facing_vis/<dataset>/`, plus a `facing_summary.tsv` flagging `COINCIDENT` pairs (both joints on the midline โ€” pick another pair), `REST-DEGENERATE` rest poses (lateral at frame 0 but not in the rest pose: the exported rest pose lies on its side, so the stage-4 T-pose facing is unreliable) and `UNRESOLVED` names. `FACE_JSON=<patch_dir>/<ds>_face_pairs.json` previews a patch before applying it.
</details>
@@ -396,37 +368,26 @@ Applies the corrections found in a manual audit of the stage-2/3 outputs, so the
| Fix | Effect |
|-----|--------|
-| Pelvis unification | unsided `Pelvis` / `Hip` โ†’ `Hips` (one label for the root pelvis bone; `Left Hip` / `Right Hip` untouched) |
+| Pelvis unification | unsided `Pelvis` / `Hip` โ†’ `Hips` (`Left Hip` / `Right Hip` untouched) |
| Numeric labels | pass-through labels (`_2`, `_1045`) โ†’ `Bone` |
| Arthropod chains | numbered leg / claw-arm chains get anatomical positions (Thigh, Shin, Foot, Toe โ€ฆ / Upper Arm, Forearm, Hand, Claw) instead of `Leg` repeated along the chain |
| Duplicate sides | rigs whose second side is a Blender/Maya duplicate (`LeftUpLeg.001`, `Leg_L1`, โ€ฆ) get side prefixes from the rest-pose X coordinate |
| Face resync | the `clean` fields of `face_joint_names.json` are re-synced against the labels |
-| Captions | grammar and subject fixes, plus locomotion qualifiers grounded in the root trajectory (`walks forward` with no root travel โ†’ `walks in place`; `runs in place` with clear travel along the facing axis โ†’ `runs forward\|backward`) |
+| Captions | grammar and subject fixes, plus locomotion qualifiers grounded in the root trajectory (`walks forward` with no root travel โ†’ `walks in place`) |
**Hand overrides** are read from `--patch_dir` (default `dataset/UniML3D/patches/`) as `<dataset>_{joint_labels,face_pairs,captions,categories}.json`. Missing files are skipped, so the rule fixes apply on their own.
**Skip lists** the patch writes into the export directory for stage 4:
-| Output | Scope | Source |
-|--------|-------|--------|
-| `export/<ds>/filtered_clips.txt` | individual clips, any dataset | `<ds>_filtered_clips.txt` in the patch dir |
-| `export/objaverse/filtered_objects.txt` | whole rigs, objaverse only | the `tpose_wrong` entries of `objaverse_rig_flags.txt` |
-| `export/objaverse/rig_flags.json` | informational | automatic facing checks + hand review |
-
-Objaverse rig flags, and whether stage 4 acts on them:
+| Output | Scope |
+|--------|-------|
+| `export/<ds>/filtered_clips.txt` | individual clips, any dataset |
+| `export/objaverse/filtered_objects.txt` | whole rigs โ€” only the `tpose_wrong` flag (rest pose lies flat / rotated / upside-down) |
+| `export/objaverse/rig_flags.json` | informational: `empty_pair`, `bone_pair`, `body_axis_unnamed`, `facing_wrong`, `object_no_front` |
-| Flag | Meaning | Filtered out |
-|------|---------|--------------|
-| `tpose_wrong` | the exported rest pose lies flat / is rotated / upside-down | **yes** |
-| `empty_pair` | no bilateral pair could be found | no |
-| `bone_pair` | the pair is two unnamed `Bone` joints | no |
-| `body_axis_unnamed` | the body axis runs through unnamed bones | no |
-| `facing_wrong` | the pair does not give the real front | no |
-| `object_no_front` | a prop with no meaningful front | no |
+Everything except `tpose_wrong` is informational โ€” those rigs are kept and trained with the facing they have. Per-rig evidence (rest-pose metrics, mesh T-pose grids and corrected-skeleton panels, all checked by eye) lives under `export/objaverse/tpose_abnormal_vis/`.
-Everything except `tpose_wrong` is informational โ€” those rigs are kept and trained with the facing they have. The per-rig evidence (rest-pose metrics, mesh T-pose grids and corrected-skeleton panels, all checked by eye) lives under `export/objaverse/tpose_abnormal_vis/`: one `[mesh rest-pose grid | rest pose with pair | corrected T-pose]` PNG per flagged rig, grouped by category, plus a TSV.
-
-Truebones uses `filtered_clips.txt` for the three clips whose rig disagrees with their object's reference skeleton (`Monkey-B01_Die` has 79 joints against the object's 85; `KingCobra-Run` and `KingCobra-Walk_Fast` carry the hood joints `BN__Neck_{L,R}_01` mirrored across Z relative to the `KingCobra-Attack` T-pose); objaverse uses it for the motion-discontinuity review.
+Truebones uses `filtered_clips.txt` for the three clips whose rig disagrees with their object's reference skeleton; objaverse uses it for the motion-discontinuity review.
</details>
@@ -453,48 +414,26 @@ Every object type is canonicalized against its T-pose (facing โ†’ XZ-centering
| `--max_clip_len` | 200 | frames kept per motion; without `APPLY_CLIP` only the first 200 frames survive |
| `APPLY_CLIP=1` (`--apply_clip`) | off | crop long motions into overlapping windows of `max_clip_len` frames with stride `max_clip_len โˆ’ diffusion_max_len` (200 โˆ’ 90 = 110), so every training crop of up to `--diffusion_max_len` frames fits inside some saved clip |
| `--activity_threshold` | 0.02 | minimum joint activity (temporal spread at canonical scale) for a clip to be kept |
-| `--jump_step_threshold` | 0.20 | discontinuity filter: a clip is dropped when one frame moves the skeleton at least this many body lengths **and** the step is at least `--jump_ratio_threshold` times the clip's median (a sequence stitched from several actions, or a teleporting root); `0` disables it |
+| `--jump_step_threshold` | 0.20 | discontinuity filter: a clip is dropped when one frame moves the skeleton at least this many body lengths **and** the step is at least `--jump_ratio_threshold` times the clip's median; `0` disables it |
| `--jump_ratio_threshold` | 8.0 | max/median per-frame joint displacement required alongside `--jump_step_threshold` |
-| `--static_threshold` | 1e-5 | per-frame max-joint displacement below which a frame counts as static; leading / trailing static frames are trimmed |
+| `--static_threshold` | 1e-5 | per-frame displacement below which a frame counts as static; leading / trailing static frames are trimmed |
| `--min_frames` | 8 | minimum frame count after trimming |
| `--target_diameter` | 2.0 | leaf-to-leaf skeleton diameter every object type is scaled to |
| `--max_freqs` / `--max_path_len` | 8 / 5 | Laplacian eigenvectors per joint and the clamp on topology distances in `cond.npy` |
-Clips dropped at runtime and skipped object types are recorded in `filtered_clips.json`; `metadata.txt` reports the dataset totals (clips, frames, duration, max joints, captions), clips and joints per object type, filtered counts and the category breakdown.
-
-</details>
-
-<details>
-<summary><b>Details โ€”</b> optional skip lists and pass-through metadata</summary>
-
-Two hand-reviewed skip lists are read from the export directory before any processing, both **optional** โ€” when the file is absent the run simply proceeds on everything:
-
-| List | Scope | Flag | Written by |
-|------|-------|------|-----------|
-| `filtered_clips.txt` | individual clips; every dataset (applied before clips are grouped into object types) | `--filtered_clips` | `tools/patch_annotations.py` |
-| `filtered_objects.txt` | whole rigs; objaverse only | `--filtered_objects` | `tools/patch_annotations.py` |
-
-Both flags take a path, `"auto"` (the default โ€” look in the data dir) or an empty string to disable; a path that does not exist is warned about and skipped, so a stale override never aborts a run.
+Clips dropped at runtime and skipped object types are recorded in `filtered_clips.json`; `metadata.txt` reports the dataset totals.
-`--category_groups` follows the same convention for `category_groups.json`, which this stage only copies through to the feature dir. Pass an empty string while the stage-2 classifier is still running, so a partial file is not written out as if it were complete, then copy the finished file in by hand โ€” nothing else in this stage reads it.
+Two hand-reviewed skip lists are read from the export directory before any processing, both **optional**: `filtered_clips.txt` (individual clips, every dataset) and `filtered_objects.txt` (whole rigs, objaverse only), both written by `tools/patch_annotations.py`. The matching flags take a path, `"auto"` (the default) or an empty string to disable. `--category_groups` follows the same convention for `category_groups.json`, which this stage only copies through.
</details>
<details>
-<summary><b>Details โ€”</b> Mixamo core joints, grounding, and previews</summary>
+<summary><b>Details โ€”</b> Mixamo core joints, grounding, previews, and resume</summary>
- **Mixamo** is reduced to a built-in **22-joint humanoid core** (finger chains and End bones dropped) via `--mixamo_core_joints` (default on); pass `--no-mixamo_core_joints` to keep the full 65-joint rig. Truebones and objaverse always use the full skeleton.
- **Grounding.** Each motion is grounded on its own lowest joint by default; `--use_tpos_ground_height` reuses the T-pose's ground height for every clip of the object type instead. Either way `cond['ground_height']` and `cond['ground_height_mode']` record what was applied.
-- **Previews.** Per-clip MP4s use a ground-plane view โ€” an unbounded checkerboard floor that fades out toward the horizon, a following camera, a contact shadow under the skeleton and a fading root trajectory (`--vis_ground`, default on; `--no-vis_ground` renders the plain cubic view). `NO_VIS=1` skips them entirely.
-
-</details>
-
-<details>
-<summary><b>Details โ€”</b> resume cache and error handling</summary>
-
-Finished object types are cached under `cond_parts/`, so interrupted runs resume where they stopped. The cache is keyed on the clip / threshold / topology settings, on digests of the caption and joint-annotation inputs, **and** on the object's source clip list, so changing any of them (a stage-2/3 rerun, a new QA patch, a clip added to the export or newly listed in `filtered_clips.txt`) re-processes the affected object types instead of silently mixing old and new results. Re-processing an object first deletes the clip NPZs a previous run wrote for it โ€” the training loader enumerates `motions/` rather than `captions.json`, so a dropped clip's file would otherwise still be trained on; previews are only pruned when the run regenerates them (`--vis`), so a later `--no-vis` run keeps the MP4s an earlier one made. Delete `cond_parts/` (or one entry) to force re-processing for any other reason.
-
-Object types that fail are appended to `extract_errors.log`, recorded in `filtered_clips.json`, and skipped without a cache entry, so they are retried on the next run โ€” one bad object never aborts the run.
+- **Previews.** Per-clip MP4s use a ground-plane view with a following camera, contact shadow and fading root trajectory (`--no-vis_ground` for the plain cubic view; `NO_VIS=1` skips them entirely).
+- **Resume.** Finished object types are cached under `cond_parts/`, keyed on the clip / threshold / topology settings, on digests of the caption and joint-annotation inputs, **and** on the object's source clip list โ€” so a stage-2/3 rerun, a new QA patch or an added clip re-processes the affected object types instead of silently mixing old and new results. Re-processing first deletes the clip NPZs a previous run wrote for that object, since the training loader enumerates `motions/` rather than `captions.json`. Object types that fail are appended to `extract_errors.log` and retried next run โ€” one bad object never aborts the run.
</details>
@@ -509,32 +448,26 @@ bash data_process/scripts/run_animate_fbx.sh #
bash data_process/scripts/run_animate_mixamo.sh # batch over Mixamo export NPZs (Y Bot)
```
-`run_animate_motion.sh` accepts both the stage-4 feature NPZ and the `.npy` motion features written by the model's sampler. The character is auto-resolved for truebones / objaverse from the raw asset directories; mixamo needs `CHAR_PATH`.
+`run_animate_motion.sh` accepts both the stage-4 feature NPZ and the `.npy` motion features written by the model's sampler. The character is auto-resolved for truebones / objaverse from the raw asset directories; mixamo needs `CHAR_PATH` (default `character_refined/Y_Bot.fbx`, the rig the animation FBXs are authored on).
-<details>
-<summary><b>Details โ€”</b> character resolution and extra bones</summary>
+Armature bones absent from the motion are handled by `--extra_bones_strategy`: `merge` (default) transfers their vertex weights to the nearest kept ancestor and removes them, `remove` deletes the bones and their vertices, `keep` leaves them un-keyed.
-For mixamo the character defaults to `character_refined/Y_Bot.fbx` โ€” the rig the animation FBXs are authored on (identical 65-bone skeleton, so no bone reconciliation is needed); `CHAR_PATH` selects a different character. Armature bones absent from the motion are handled by `--extra_bones_strategy`: `merge` (default) transfers their vertex weights to the nearest kept ancestor and removes them, `remove` deletes the bones and their vertices, `keep` leaves them un-keyed.
-
-`run_animate_fbx.sh` needs no export stage at all: it bakes a raw animation clip โ€” or a whole directory of them โ€” onto any character that shares the clips' bone names (the Mixamo convention), e.g. the full library on a different character:
+`run_animate_fbx.sh` needs no export stage at all: it bakes a raw animation clip โ€” or a whole directory of them โ€” onto any character that shares the clips' bone names (the Mixamo convention):
```bash
CHAR_PATH=dataset/raw/mixamo/character_refined/Amy.fbx \
bash data_process/scripts/run_animate_fbx.sh # โ†’ outputs/animated_Amy/*.fbx
```
-</details>
-
## Custom Assets
Nothing in the pipeline is tied to the three datasets. There are three entry points for your own rigged assets, in increasing order of integration.
-**1 ยท Export only** โ€” turn assets into stage-1 NPZs. A single file or a directory of mixed GLB/GLTF/FBX; mesh optional (armature-only FBX works), every pose action becomes a clip. Directory runs support the same `--multi-worker` / marker / summary-shard machinery as the Objaverse exporter.
+**1 ยท Export only** โ€” turn assets into stage-1 NPZs. A single file or a directory of mixed GLB/GLTF/FBX; mesh optional (armature-only FBX works), every pose action becomes a clip.
```bash
bash data_process/scripts/run_export_general.sh my_model.glb
bash data_process/scripts/run_export_general.sh my_assets/ --multi-worker 8 # โ†’ dataset/export/custom
-DATA_DIR=my_assets bash data_process/scripts/run_export.sh # same thing via the dataset wrapper's auto mode
```
The general exporter uses the same `{asset}-{action}.npz` clip naming as the Objaverse layout, so the later stages run over a custom export by borrowing `objaverse` as the layout name and overriding the paths:
@@ -550,7 +483,7 @@ DATA_DIR=$EXPORT SAVE_DIR=dataset/features/custom \
The dataset argument selects the layout and the per-dataset defaults, not the data โ€” every wrapper validates it against `truebones | mixamo | objaverse`, and each documents the environment variables that redirect its input and output.
-**2 ยท Preprocess one asset for inference** โ€” `run_preprocess_char.sh` runs the real export and extraction stages in-process on a single rigged, animated asset and bakes the result into a self-contained canonical asset:
+**2 ยท Preprocess one asset for inference** โ€” `run_preprocess_char.sh` runs the real export and extraction stages in-process on a single rigged, animated asset:
```bash
CHAR_PATH=asset.glb OUTPUT_DIR=outputs/asset \
@@ -558,7 +491,7 @@ CHAR_PATH=asset.glb OUTPUT_DIR=outputs/asset \
bash data_process/scripts/run_preprocess_char.sh
```
-It leaves exactly three deliverables: `<name>_canonical.{glb,fbx}` (the rest-pose asset rebuilt to the canonical T-pose โ€” no animation, canonical joint order stored as a custom property), `cond.npy` (the model-side topology conditioning), and `motions/<clip>.npz` (one motion-feature NPZ per action). `FACE_R` / `FACE_L` name the asset's facing pair (`BODY_AXIS=1` for a head/tail axis on serpentine rigs). An asset **without** any action falls back to a rest-only cond โ€” the export stage's motion-driven pruning needs animations โ€” and writes no `motions/`.
+It leaves exactly three deliverables: `<name>_canonical.{glb,fbx}` (the rest-pose asset rebuilt to the canonical T-pose, joint order stored as a custom property), `cond.npy`, and `motions/<clip>.npz` per action. `FACE_R` / `FACE_L` name the asset's facing pair (`BODY_AXIS=1` for a head/tail axis). An asset **without** any action falls back to a rest-only cond and writes no `motions/`.
**3 ยท Animate the canonical asset** โ€” a feature-format motion NPZ (generated by the model, or extracted above) then drives it directly, with no `cond.npy` or export NPZ at animate time:
@@ -567,7 +500,7 @@ CHAR_PATH=outputs/asset/<name>_canonical.glb ANIM_PATH=<motion.npz-or-directory>
bash data_process/scripts/run_animate_lbs.sh # one animated GLB per action
```
-`animate_lbs` computes FK and Linear Blend Skinning manually in NumPy (Blender only parses the asset; the math is numerically identical to Blender's armature modifier) and exports the animated rigged GLB/FBX through the same path as `animate_npz`; `SAVE=npz,obj` additionally dumps raw deformed vertex sequences / per-frame OBJs. It also accepts stage-1 export NPZs and, with `DATASET_TYPE` / `COND_PATH`, cond-resolved feature NPZs on non-preprocessed assets.
+`animate_lbs` computes FK and Linear Blend Skinning manually in NumPy (Blender only parses the asset; the math is numerically identical to Blender's armature modifier); `SAVE=npz,obj` additionally dumps raw deformed vertex sequences / per-frame OBJs.
## Data Formats
@@ -618,7 +551,7 @@ The motion representation stores per-frame deltas without dividing by the frame
| `edge_indexs` | `(2, 2(Jโˆ’1))` | undirected edge list |
| `spectral_feats` | `(J, K)` | Laplacian eigenvectors (`K = --max_freqs`) |
| `kinematic_chains` | list | root-to-leaf joint chains |
-| `scale_factor`, `ground_height`, `ground_height_mode` | scalar | calibration applied to every clip of the type (`ground_height` is `None` in `per_motion` mode) |
+| `scale_factor`, `ground_height`, `ground_height_mode` | scalar | calibration applied to every clip of the type |
| `face_joint_idxs` | dict | `{r_hip, l_hip, body_axis}` indices of the facing pair (when annotated) |
| `captions` | dict | `{clip_stem: caption}` for the type's clips (also flattened into `captions.json`) |
@@ -632,15 +565,11 @@ The export directory is where every stage before feature extraction accumulates
| Path | Stage | Content |
|------|-------|---------|
| `motions/{clip}.npz` | 1 | per-clip skeleton animation |
-| `videos/{clip}.mp4` | 1 | per-clip skeleton preview |
-| `tpose/{asset}.png` | 1 | rest-pose still per asset |
+| `videos/{clip}.mp4`, `tpose/{asset}.png` | 1 | per-clip skeleton preview, rest-pose still per asset |
| `joint_names.json` | 1 | `{asset: [pruned bone names]}` |
-| `joint_count.json` | 1 | `{asset: n_joints}` |
-| `clip_frames.json` | 1 | `{clip: n_frames}` |
-| `summary.json` | 1 | dataset totals (clips, frames, duration, fps) |
+| `joint_count.json`, `clip_frames.json`, `summary.json` | 1 | joints per skeleton, frames per clip, dataset totals |
| `.completed/{asset}.json` | 1 | resume markers |
-| `motion_captions.json` | 2b | `{clip: caption}` |
-| `motion_captions_failed.txt` | 2b | clips to retry |
+| `motion_captions.json`, `motion_captions_failed.txt` | 2b | `{clip: caption}`, clips to retry |
| `category_groups.json` | 2b | `{category: [assets]}` |
| `category_groups_review.json`, `category_groups_errors.json` | 2b | per-asset votes/evidence, exhausted retries |
| `clean_joint_names.json` | 3 | canonical anatomical labels per rig |
@@ -663,10 +592,8 @@ Standalone utilities in `data_process/tools/`. The QA visualizers have wrappers
| `vis_tpose.py` | Annotated T-pose PNG with every joint labeled, per skeleton |
| `vis_tpose_facing.py` | Rest pose vs. facing-canonicalized pose per skeleton, plus `facing_summary.tsv` |
| `vis_motion.py` | MP4 of an export clip with a root-anchored heading arrow |
-| `vis_clip_frames.py` | Frames-per-clip distribution figures from `clip_frames.json` (histogram + KDE + survival curve) |
-| `vis_joint_count.py` | Joints-per-skeleton distribution figures from `joint_count.json` (histogram + KDE + cumulative curve; `--pooled` for the all-datasets figure) |
-| `truebones_fbx2glb.py` | Per-clip Truebones FBX โ†’ GLB, preserving mesh, armature and the clip's take |
-| `character_fbx2glb.py` | Rigged T-pose character FBX โ†’ GLB, animation stripped |
+| `vis_clip_frames.py` / `vis_joint_count.py` | Distribution figures for frames per clip / joints per skeleton. Both default over every `dataset/export/*`, write each dataset's figure beside its JSON, and put the comparison figure under `outputs/{clip_frames,joint_count}_vis/` |
+| `truebones_fbx2glb.py` / `character_fbx2glb.py` | Per-clip Truebones FBX โ†’ GLB (mesh, armature and take preserved); rigged T-pose character FBX โ†’ GLB |
```bash
python -m data_process.tools.merge_summaries --output_dir dataset/export/<dataset>
@@ -675,8 +602,6 @@ python -m data_process.tools.vis_joint_count # defaults over every da
blender -b -P data_process/tools/truebones_fbx2glb.py -- --data_dir <in> --output_dir <out>
```
-Both distribution tools default over every `dataset/export/*`, write each dataset's figure next to its JSON, and put the comparison figure under `outputs/{clip_frames,joint_count}_vis/`.
-
## Conventions
- **Run from the repo root.** Wrappers `cd` there themselves and activate the `unimate` conda env (`CONDA_ENV` overrides).
@@ -691,13 +616,11 @@ Both distribution tools default over every `dataset/export/*`, write each datase
- **EEVEE renders fail / produce black frames under `blender -b`** โ€” stage 2a must run with plain `python` and the pip `bpy` module (the wrappers already do); headless `blender -b` has no GPU display surface for EEVEE.
- **All render workers land on one GPU** โ€” `CUDA_VISIBLE_DEVICES` does not bind EEVEE's EGL context. Run one render job per GPU through a cgroup / scheduler allocation that exposes a single device.
- **Offline compute nodes** โ€” with a populated HuggingFace cache, export `HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=1` before the local Qwen caption/classify runs.
-- **A multi-worker export exited non-zero** โ€” the wrapper deliberately does **not** merge summary shards when any worker failed, since merging a truncated set would shrink the canonical JSONs and delete the shards. Rerun to finish the missing assets, then merge by hand (see below).
-- **`joint_names.json` is missing object types that have clips** โ€” an export killed mid-run (scheduler walltime, OOM) can leave the summary JSONs behind the completion markers. Rebuild them from the markers:
+- **A multi-worker export exited non-zero, or `joint_names.json` is missing object types that have clips** โ€” the wrapper deliberately does not merge summary shards when a worker failed, and an export killed mid-run can leave the summary JSONs behind the completion markers. Rerun to finish the missing assets, then rebuild the JSONs from the markers (additive and idempotent):
```bash
python -m data_process.tools.merge_summaries --output_dir dataset/export/<dataset>
```
- Additive and idempotent.
-- **Stage 4 re-processes objects that look unchanged** โ€” the `cond_parts/` cache key covers thresholds, topology settings, the caption/annotation digests and the object's clip list; any of those changing is enough. The run logs the exact diff per object (`cache invalidated (settings changed: ...)`).
+- **Stage 4 re-processes objects that look unchanged** โ€” the `cond_parts/` cache key covers thresholds, topology settings, the caption/annotation digests and the object's clip list. The run logs the exact diff per object (`cache invalidated (settings changed: ...)`).
- **`Object type mismatch between ...`** โ€” stage 4 refuses to run when `joint_names.json`, `clean_joint_names.json` and `face_joint_names.json` cover different object types. Rerun the stage-3 wrappers on the current export directory.
If you run into a problem not covered here, please open an issue or email [[email protected]](mailto:[email protected]). Citation and license information is in the [top-level README](../README.md).
diff --git a/unimate/tools/precompute_text_emb.py b/unimate/tools/precompute_text_emb.py
index e1be30d..7fca738 100644
--- a/unimate/tools/precompute_text_emb.py
+++ b/unimate/tools/precompute_text_emb.py
@@ -34,7 +34,7 @@ using another.
Usage (from the repo root)::
# every dataset/features/* with the config's encoder
- python -m unimate.tools.precompute_text_emb --config configs/uniml3d_90frames.json
+ python -m unimate.tools.precompute_text_emb --config configs/uniml3d_60frames_graph_adaln.json
# one input folder (positional or --input_dir), encoder given explicitly
python -m unimate.tools.precompute_text_emb --input_dir dataset/features/truebones \\