Downloads · 30 days
4
12% of all-time downloads
Wojtekb30/Motion-RVQ-263d-reconstructor-humanML
Motion-RVQ-263d-reconstructor-humanML is a machine learning model from Wojtekb30. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as cc-by-nc-4.0.
This model uses Residual Vector Quantization (RVQ) to reconstruct motion represented as 263-dimensional frame vectors. It is a custom PyTorch model (not a Transformers AutoModel) and is loaded from safetensors with rv…
Downloads · 30 days
4
12% of all-time downloads
All-time downloads
34
Public
Repo size
74.7 MB
Likes
0
Public
Click a slice to open those files.
.safetensors74.6 MB · 100%
From the Hugging Face model README
This model uses Residual Vector Quantization (RVQ) to reconstruct motion represented as 263-dimensional frame vectors.
It is a custom PyTorch model (not a Transformers AutoModel) and is loaded from safetensors with rvq_model.py.

(T, 263) per sequence (frame-major)motion_rvq_weights.safetensors - main published checkpointconfig.json - model configuration metadatarvq_model.py - model architecture (MotionRVQ_VAE)TestRVQ.py - inference + 3-panel visualizationTrainRVQ.py - training scriptrvq_humanml_dataset.py - training dataset loaderMean.npy, Std.npy - normalization statistics000001.npy, 000012.npy - sample motion filesmotion_rvq_weights.pth can be treated as a legacy artifact; code uses motion_rvq_weights.safetensors.
pip install torch safetensors numpy matplotlib
Run the provided visualization script:
python TestRVQ.py
By default, TestRVQ.py uses 000001.npy. You can change FILE_TO_TEST in TestRVQ.py to another sequence.
Minimal loading example:
from pathlib import Path
import torch
from safetensors.torch import load_file
from rvq_model import MotionRVQ_VAE
base = Path(".")
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model = MotionRVQ_VAE().to(device)
state_dict = load_file(str(base / "motion_rvq_weights.safetensors"), device=str(device))
model.load_state_dict(state_dict)
model.eval()
Expected layout:
rvq/
TrainRVQ.py
rvq_model.py
rvq_humanml_dataset.py
Mean.npy
Std.npy
new_joint_vecs/
*.npy
Run training:
python TrainRVQ.py
Output checkpoint:
motion_rvq_weights.safetensors