ZeyuLing/Motius-MLD-HumanML3D
<!-- This model card is synchronized from docs/modelzoo/mld.md by tools/syncmodelzoocards.py. -->
MLD - Motion Latent Diffusion
Text-to-motion baseline integrated into the motius Model Zoo. The reproduction keeps the MLD motion VAE, latent denoiser, DDIM scheduler wiring, and SentenceT5 text wrapper in the native motius runtime, so inference no longer imports the upstream repository.
Weights
Current motius artifact:
Load through the same from_pretrained surface as the other reproduced baselines:
from motius.pipelines.mld import MLDPipeline
pipe = MLDPipeline.from_pretrained(
"ZeyuLing/Motius-MLD-HumanML3D",
device="cuda",
)
motions = pipe.infer_t2m(
["a person walks forward then sits down"],
[120],
num_inference_steps=50,
)Package the artifact from the upstream Lightning checkpoint:
python3 scripts/eval/convert_mld_checkpoint.py \
--model_ckpt ref_repo/MotionLCM/experiments_t2m/mld_humanml/mld_humanml_v1.ckpt \
--out_dir checkpoints/mld/humanml3dThe frozen SentenceT5-Large encoder is resolved by name rather than duplicated inside the artifact. For fully offline use, snapshot the text encoder into the local Hugging Face cache before calling from_pretrained.
Motion Representation
HumanML3D-263, the standard redundant T2M feature (Guo et al.), 20 fps, 22-joint SMPL skeleton. Per frame (263 dims):
MLD samples in latent space and decodes directly back to HumanML3D-263. Convert to SMPL or MotionStreamer-272 only when a cross-representation evaluator needs that space.
Evaluation
Generation follows the shared HumanML3D official-test protocol used by the leaderboard: 4042 official test ids, corrected selected captions under outputs/evaluation/t2m/humanml3d_official_test/captions/gt_motionclip_selected_20260622/, native 263-dim at 20 fps, and one prediction per test id.
python3 scripts/eval/mld_t2m_h3d263.py \
--anno_file outputs/evaluation/t2m/humanml3d_official_test/captions/gt_motionclip_selected_20260622/test_hml3d_official272_gtlen_motionclip_selected_caption.json \
--anno_data_dir . \
--model_path checkpoints/mld/humanml3d \
--num_inference_steps 50 \
--out_dir outputs/evaluation/t2m/humanml3d_official_test/hml263/mldThe full reproduction pipeline writes the canonical outputs:
Run the Taiji wrapper for full generation, conversion, and evaluators:
python3 scripts/submit/submit_mld_standard_pipeline_taiji.py \
--gpu V100 \
--num-gpus 8 \
--elasticReport current metrics from the generated evaluator JSONs under outputs/evaluation/t2m/humanml3d_official_test/_runs/<run>/metrics/. For HumanML3D-263 semantic metrics, the evaluator texts_dir must match the captions used for generation. The selected-caption official-test run is scored with outputs/evaluation/t2m/humanml3d_official_test/captions/gt_motionclip_selected_20260622/texts; scoring these outputs against the older CondMDI text files produces mismatched R-Precision / MM-Dist.
Current HumanML3D official-test metrics (4042 generated motions, selected caption protocol):
Physical diagnostics on SMPL motion_135: Slide 4.2199, Float 16.7402, Jitter 3.2692, Dynamic 20.1758.
Implementation Notes
- motius-native runtime:
motius.models.motion.mldwraps the shared native MLD VAE / denoiser / SentenceT5 components and does not importref_repoat inference time. - Scheduler: MLD uses
diffusers.DDIMSchedulerwith 50 inference steps by default (eta=0.0,steps_offset=1), matching the official inference config. - Classifier-free guidance: the denoiser has no LCM
time_cond_proj, so guidance uses the standard unconditional/conditional two-pass batch. - Normalization travels with the checkpoint:
Mean.npy/Std.npyare embedded in the artifact to avoid evaluator drift caused by mismatched HumanML3D statistics.
Direct Loading
from motius import Pipeline
pipeline = Pipeline.from_pretrained("ZeyuLing/Motius-MLD-HumanML3D")