CoolFace
Modelpublic

ZeyuLing/hftrainer-motiongpt-humanml3d

sourceHugging Faceotherupdated 3mo agoView on Hugging Face
0likes
Model Card

<!-- This model card is synchronized from docs/modelzoo/motiongpt.md by tools/syncmodelzoocards.py. -->

MotionGPT - Human Motion as a Foreign Language

Text-to-motion baseline integrated into the hftrainer Model Zoo. The runtime is self-contained under hftrainer.models.motion.motiongpt.network and does not import the original repository at inference time.

TaskText-to-Motion (T2M), motion-language generation
Bundle / PipelineMotionGPTBundle / MotionGPTPipeline
Processed HF artifact`ZeyuLing/hftrainer-motiongpt-humanml3d`
Motion representationHumanML3D-263 (263-dim, 20 fps, 22 joints)
ArchitectureMotion tokenizer VQ-VAE + FLAN-T5-base-style language model with motion tokens
PaperMotionGPT: Human Motion as a Foreign Language, Jiang et al., NeurIPS 2023 - arXiv:2306.14795
Original codehttps://github.com/OpenMotionLab/MotionGPT

Weights

Self-contained hftrainer artifact:

ArtifactLocationContentsStatus
MotionGPT HumanML3D`ZeyuLing/hftrainer-motiongpt-humanml3d`motiongpt_s3_h3d.tar + assets/meta/{mean,std}.npy + deps/flan-t5-base/ + model_index.jsonpublic Hub artifact
local mirrorcheckpoints/baselines/motiongptsame layoutoptional local cache

Use directly from the Hub:

python
from hftrainer.pipelines.motiongpt import MotionGPTPipeline

pipe = MotionGPTPipeline.from_pretrained(
    "ZeyuLing/hftrainer-motiongpt-humanml3d",
    bundle_kwargs={"local_files_only": False},
    device="cuda",
)
motions = pipe.infer_t2m(
    ["a person walks forward then sits down"],
    [120],
)  # list of (T, 263)

For a local mirror:

python
pipe = MotionGPTPipeline.from_pretrained(
    "checkpoints/baselines/motiongpt",
    bundle_kwargs={"local_files_only": True},
    device="cuda",
)

Motion Representation

MotionGPT natively generates HumanML3D-263 at 20 fps. For shared SMPL and MotionStreamer-272 evaluation, use the validated bridge:

text
HumanML3D-263 -> SMPL motion_135 via IK refine-80 -> MotionStreamer-272

The artifact packages the released MotionGPT checkpoint, HumanML3D statistics, and the local FLAN-T5-base tokenizer/config files required to instantiate the language model without a separate upstream checkout.

HumanML3D Leaderboard Metrics

The row below uses the shared HumanML3D official-test caption protocol and the HML263 round-trip GT reference for SMPL-based evaluators. MotionCLIP metrics use raw projection embeddings without L2 normalization.

EvaluatorR1 upR2 upR3 upFID downMM downDiv up
MotionStreamer-2720.49400.63520.694423.681119.678125.5410
MotionCLIP-135 no-L20.36880.50490.582884.875642.857923.2174

Physical metrics:

Slide downFloat downJitter downDynamic down
3.878310.88355.168021.0609

Implementation Notes

  • —Artifact inference imports only hftrainer.models.motion.motiongpt.network.
  • —The released checkpoint has FLAN-T5-base / T5-v1.1 FFN shapes rather than ordinary t5-base FFN shapes.
  • —The checkpoint stores a distinct LM head while sharing the encoder and decoder input embeddings; the bundle keeps shared_encoder_decoder_untied_lm_head.
  • —The validated HumanML3D setting uses the official no-length prompt mode (official_nolen) and the selected-caption official-test protocol.