TokenHMR
TokenHMR recovers 3D human pose and shape from a single image by predicting discrete pose tokens.
Pose · 1,347 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Pose
- Parameters
- 687.6M
- Operations
- 1,347
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2024
- Cited by
- 71 (as of 30 October 2026)
- Authors
- Sai Kumar Dwivedi, Yu Sun, Priyanka Patel and others
- Source
- GitHub: saidwivedi/TokenHMR
- License
- LicenseRef-MPI-TokenHMR-NonCommercial
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m20987
- Graph hash
- 41293320221b7a5367afe68109799a16469ee5d718218398db44e0f3564ca05a
- Skeleton hash
- 0769eb9c6c8c71f319cfcb9ee7707b8373db8da1f4c45d65bb2769cd6f4874fa
- Architecture hash
- 0ebe5c5f9c5a87f509ad445a5fd210c85a6bd96e24fa84273992c06cce3cf297
- Diagram SHA-256
- b9b79c46767909330ea492e5abe49f00308ec61a81145a5aa5eac8f1c9ef86e8
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
TokenHMR estimates a person's 3D body pose and shape from a single image. It starts from an observation about earlier regressors: the more accurately a method fits 2D keypoints, the less accurate it is at predicting 3D pose. The paper identifies the common weak-perspective camera assumption as a key cause, since that camera model does not match the camera that took the picture.
The model responds with two changes. The first is a loss, Threshold-Adaptive Loss Scaling (TALS), that penalizes large 2D and pseudo-ground-truth errors but only minimally penalizes small ones. The second gives the model its name: instead of regressing continuous pose, the network predicts discrete pose tokens through classification. A tokenizer is first trained on AMASS and MOYO motion capture data, and its pretrained decoder then serves as an additional head that turns the predicted tokens into a body pose. The backbone is a ViT-H/16 with a standard transformer decoder, following HMR2.0, and the body pose branch ends in logits of size 160 × 2048 that are multiplied with the codebook.
With the same data and backbone, the paper reports a 7.6% reduction in 3D error compared to HMR2.0 on the EMDB dataset. It puts the cost of discretizing pose at about 2.5mm of 3D accuracy. The authors' repository lists a paper version (100K iterations with ViTPose pretraining) and a release version (200K iterations with HMR2.0 pretraining).
Key idea. TokenHMR recasts body pose regression as prediction of discrete pose tokens decoded by a pretrained tokenizer, and adds a loss that scales down small 2D and pseudo-ground-truth errors.
- TokenHMR
- human mesh recovery
- 3D human pose and shape
- HPS regression
- SMPL
- tokenized pose representation
- pose tokens
- TALS
- Threshold-Adaptive Loss Scaling
- VQ-VAE pose prior
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{dwivedi2024tokenhmradvancinghumanmesh,
title={TokenHMR: Advancing Human Mesh Recovery with a Tokenized Pose Representation},
author={Sai Kumar Dwivedi and Yu Sun and Priyanka Patel and Yao Feng and Michael J. Black},
year={2024},
eprint={2404.16752},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2404.16752},
}