Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
library_name: hftrainer
|
| 4 |
+
pipeline_tag: text-to-motion
|
| 5 |
+
tags:
|
| 6 |
+
- motion-generation
|
| 7 |
+
- text-to-motion
|
| 8 |
+
- autoregressive
|
| 9 |
+
- diffusion
|
| 10 |
+
- humanml3d
|
| 11 |
+
- motionstreamer
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# MotionStreamer (hftrainer reproduction)
|
| 15 |
+
|
| 16 |
+
Self-contained, `ref_repo`-independent reproduction of **MotionStreamer** (Xiao
|
| 17 |
+
et al., ICCV 2025), packaged as an [hftrainer](https://github.com/) `ModelBundle`
|
| 18 |
+
artifact. Causal TAE + LLaMA autoregressive transformer + per-token diffusion
|
| 19 |
+
head are vendored in-tree; the `save_pretrained`/`from_pretrained` round-trip is
|
| 20 |
+
**bit-identical**.
|
| 21 |
+
|
| 22 |
+
- **Task:** Text-to-Motion 路 **Representation:** MotionStreamer-272 (30 fps)
|
| 23 |
+
- **Text encoder:** SentenceT5-XXL (`sentence-transformers/sentence-t5-xxl`, frozen, reloaded by name)
|
| 24 |
+
- **Paper:** [arXiv:2503.15451](https://arxiv.org/abs/2503.15451) 路 **Code:** https://github.com/zju3dv/MotionStreamer
|
| 25 |
+
|
| 26 |
+
## Usage
|
| 27 |
+
|
| 28 |
+
```python
|
| 29 |
+
from hftrainer.models.motionstreamer import MotionStreamerBundle
|
| 30 |
+
from hftrainer.pipelines.motionstreamer import MotionStreamerPipeline
|
| 31 |
+
|
| 32 |
+
bundle = MotionStreamerBundle.from_pretrained("ZeyuLing/hftrainer-motionstreamer-humanml272", device="cuda")
|
| 33 |
+
pipe = MotionStreamerPipeline(bundle, device="cuda")
|
| 34 |
+
motions = pipe.infer_t2m(["a person walks forward then turns around"], [120]) # list of (T, 272)
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
Files: `tae.safetensors` 路 `ar.safetensors` (LLaMA AR + diffusion head) 路
|
| 38 |
+
`ms_config.json` 路 `Mean.npy` / `Std.npy`. The SentenceT5-XXL text encoder is
|
| 39 |
+
reloaded by name and not duplicated here.
|