yomita/instanthmr-web
InstantHMR for the browser
2 min readupdated
The InstantHMR model has been adapted to run directly in the browser using onnxruntime-web via WebGPU and WASM. From a single image frame, the model estimates human pose, body shape, and camera parameters, outputting a 3D mesh and keypoints. The conversion includes translating weights to fp32 for compatibility and fixing operations for correct execution in WebGPU. The tool is designed for web developers building motion and posture analysis applications.
Key features
- Browser format: Optimized for onnxruntime-web to run on WebGPU and WASM.
- Weight conversion: Translating to fp32 speeds up CPU execution and supports devices without shader-f16 support.
- Precise outputs: Prediction of pose, body shape, camera translation, and 2D/3D keypoints.
- SAM license: The model is distributed under a special license restricting non-commercial use.
What you can do
- Web motion analysis: Integrate into applications for physical activity and posture assessment (for example, analyzing standing up from a chair).
- Client-side computing: Run 3D human pose estimation locally in the browser without sending video to a server.
- Mobile web solutions: Use a high-performance version of the model for interactive web pages.
Example
The model accepts a single 288x288 pixel RGB crop along with auxiliary vectors and returns MHR pose parameters, body shape, and keypoints.
Read more
Details• Output accuracy: matches original CPU outputs within 0.012 for the camera and 0.3 px for 2D points
• Format: ONNX files for the network and MHR body
• Limitations: non-commercial use due to training data license










Comments