ONNX
GGUF
English
text-to-motion
motion-generation
animation
3d-animation
character-animation
skeletal-animation
game-development
flow-matching
cpu-inference
qtmesheditor
feature-extraction
Instructions to use fernandotonon/QtMeshEditor-t2m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use fernandotonon/QtMeshEditor-t2m with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible embeddings server: llama serve -hf fernandotonon/QtMeshEditor-t2m:Q8_0 --embeddings
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible embeddings server: llama serve -hf fernandotonon/QtMeshEditor-t2m:Q8_0 --embeddings
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible embeddings server: ./build/bin/llama serve -hf fernandotonon/QtMeshEditor-t2m:Q8_0 --embeddings
- Llama new
- LM Studio
- Jan
- Ollama
How to use fernandotonon/QtMeshEditor-t2m with Ollama:
ollama run hf.co/fernandotonon/QtMeshEditor-t2m:Q8_0
- Unsloth Desktop
- Docker Model Runner
How to use fernandotonon/QtMeshEditor-t2m with Docker Model Runner:
docker model run hf.co/fernandotonon/QtMeshEditor-t2m:Q8_0
- Lemonade
How to use fernandotonon/QtMeshEditor-t2m with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull fernandotonon/QtMeshEditor-t2m:Q8_0
Run and chat with the model
lemonade run user.QtMeshEditor-t2m-Q8_0
List all available models
lemonade list
- Atomic Chat
Update card for v4 architecture + corrected 6D
Browse files
README.md
CHANGED
|
@@ -11,43 +11,56 @@ tags:
|
|
| 11 |
|
| 12 |
A small, **experimental** from-scratch text-to-motion model for
|
| 13 |
[QtMeshEditor](https://github.com/fernandotonon/QtMeshEditor). Given a text
|
| 14 |
-
prompt (an action keyword), it generates a
|
| 15 |
-
skeletal clip that QtMeshEditor retargets onto an
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
## Status: experimental
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
|
| 24 |
|
| 25 |
## Training data — permissive only
|
| 26 |
|
| 27 |
-
Trained from scratch on **clean, dynamic, single-action windows** mined from
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
AMASS / HumanML3D / KIT-ML were **excluded** (non-commercial). Idle/near-static
|
| 32 |
-
and multi-action-labelled windows were filtered out (they dominated the raw set
|
| 33 |
-
and caused pose collapse).
|
| 34 |
|
| 35 |
-
## Architecture
|
| 36 |
|
| 37 |
-
6D-rotation representation
|
| 38 |
-
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
## I/O contract
|
| 42 |
|
| 43 |
```
|
| 44 |
input "tokens" float32 [1, V] one-hot over the fixed action vocab (see t2m-vocab.json)
|
| 45 |
-
input "seed" float32 [1, Z] latent (
|
| 46 |
output "motion" float32 [1, T, C] C = 22*10 per-joint [tx,ty,tz, qx,qy,qz,qw, sx,sy,sz]
|
| 47 |
```
|
| 48 |
|
| 49 |
-
`t2m-vocab.json` ships the `{vocab, Z, T, C, J, joints}` the host
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
-
|
| 53 |
-
|
|
|
|
| 11 |
|
| 12 |
A small, **experimental** from-scratch text-to-motion model for
|
| 13 |
[QtMeshEditor](https://github.com/fernandotonon/QtMeshEditor). Given a text
|
| 14 |
+
prompt (an action keyword), it generates a 60-frame @30fps, 22-joint
|
| 15 |
+
**canonical WORLD-frame** skeletal clip that QtMeshEditor retargets onto an
|
| 16 |
+
arbitrary humanoid rig.
|
| 17 |
+
|
| 18 |
+
> The model QtMeshEditor actually downloads at runtime lives in the shared
|
| 19 |
+
> [`fernandotonon/QtMeshEditor-models`](https://huggingface.co/fernandotonon/QtMeshEditor-models)
|
| 20 |
+
> repo under `motion/`. This repo is the standalone model card + mirror.
|
| 21 |
|
| 22 |
## Status: experimental
|
| 23 |
|
| 24 |
+
The shipped **default** in QtMeshEditor is the deterministic **template-clip
|
| 25 |
+
retarget** (a curated library of 47 real CMU mocap clips across 15 actions,
|
| 26 |
+
with per-action variety) — that is the quality bar. This model is an opt-in
|
| 27 |
+
(`--model` / GUI checkbox / MCP `model:true`) that **falls back to the
|
| 28 |
+
template** automatically when unavailable or out of vocabulary. It produces
|
| 29 |
+
coherent, upright motion with per-generate variety, but is stylistically
|
| 30 |
+
gentler/less crisp than the real-mocap templates.
|
| 31 |
|
| 32 |
## Training data — permissive only
|
| 33 |
|
| 34 |
+
Trained from scratch on **clean, dynamic, single-action windows** mined from
|
| 35 |
+
the **CMU MoCap** database (commercial-OK). AMASS / HumanML3D / KIT-ML were
|
| 36 |
+
**excluded** (non-commercial). Windows are 30fps, 2s, selected for motion
|
| 37 |
+
energy and snapped to a calm near-neutral start frame; mirror-augmented.
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
+
## Architecture (v4)
|
| 40 |
|
| 41 |
+
- **6D-rotation** representation (Zhou et al. 2019), correctly column-packed.
|
| 42 |
+
- Cross-attention transformer decoder with an **absolute** per-frame pose head
|
| 43 |
+
(self-attention models temporal coherence; no error-accumulating cumsum).
|
| 44 |
+
- CVAE latent with z=0 supervision + aggregate-posterior matching.
|
| 45 |
+
- Per-sample velocity/acceleration matching in both 6D and true rotation
|
| 46 |
+
(geodesic) space; derived-local supervision (the quantity the retarget
|
| 47 |
+
renders); 1-2-1 output smoothing baked into the ONNX graph.
|
| 48 |
+
- ~7.6M params, exports to ONNX (one forward pass).
|
| 49 |
|
| 50 |
## I/O contract
|
| 51 |
|
| 52 |
```
|
| 53 |
input "tokens" float32 [1, V] one-hot over the fixed action vocab (see t2m-vocab.json)
|
| 54 |
+
input "seed" float32 [1, Z] latent noise (host samples ~N(0,0.5) and does best-of-N)
|
| 55 |
output "motion" float32 [1, T, C] C = 22*10 per-joint [tx,ty,tz, qx,qy,qz,qw, sx,sy,sz]
|
| 56 |
```
|
| 57 |
|
| 58 |
+
`t2m-vocab.json` ships the `{vocab, Z, T, C, J, joints, fps, frame}` the host
|
| 59 |
+
needs — `frame: "world"` marks the WORLD-frame convention (retarget takes a
|
| 60 |
+
world delta), `fps: 30`. Vocabulary: walk, run, jump, dance, march, kick,
|
| 61 |
+
punch, wave, climb, sit, throw, boxing, idle.
|
| 62 |
+
|
| 63 |
+
## Reproducing
|
| 64 |
|
| 65 |
+
`scripts/prep-t2m-v4.py` + `scripts/train-t2m-onnx-v4.py` in the QtMeshEditor
|
| 66 |
+
repo (one-time, offline dev tools — the app never runs Python).
|