Skip to main content

MPI IK

A simple inverse kinematics solver for MANO hand model, SMPL body model, and SMPL-H body+hand model.

Installation

pip install eden-mpi-ik

For development:

pip install "eden-mpi-ik[dev]"

Usage

from mpi_ik import MANO_LEFT_MODEL_PATH, KinematicModel, KinematicPCAWrapper, MANOArmature, Solver

mesh = KinematicModel(MANO_LEFT_MODEL_PATH, MANOArmature, scale=1000)
wrapper = KinematicPCAWrapper(mesh, n_pose=12)
solver = Solver(verbose=True)

_, keypoints = mesh.set_params(pose_pca=pose_pca, pose_glb=pose_glb, shape=shape)
# keypoints (21, 3)
params_est = solver.solve(wrapper, keypoints)

See examples/mano_example.py for a full working example.

Model Download

Download the official model files from the following sites (registration required):

Model Preparation

Convert official MANO/SMPL/SMPL-H model files into the format expected by this package. By default, converted models are saved to ~/.cache/mpi_ik/:

# Output defaults to ~/.cache/mpi_ik/mano_left.pkl
mpi-ik-prepare --model-type mano-left --input path/to/mano_v1_2/models/MANO_LEFT.pkl

# Or specify a custom output path
mpi-ik-prepare --model-type mano-left --input path/to/mano_v1_2/models/MANO_LEFT.pkl --output custom/path/mano_left.pkl

The cache directory can be overridden with the MPI_IK_CACHE_DIR environment variable.

Acknowledgement

This project is based on Minimal-IK by Yuxiao Zhou.

Metadata

Release files for eden-mpi-ik 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eden-mpi-ik 0.3.2
File Size Uploaded Provenance Actions
eden_mpi_ik-0.3.2.tar.gz 11.3 kB Without provenance Details for eden_mpi_ik-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for eden-mpi-ik 0.3.2
File Interpreter ABI Platform Actions
eden_mpi_ik-0.3.2-py3-none-any.whl Python 3 none any Details for eden_mpi_ik-0.3.2-py3-none-any.whl

Total release size: 21.6 kB

Release files / eden_mpi_ik-0.3.2.tar.gz

Download URL eden_mpi_ik-0.3.2.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5e17bfad6d609be03c5392afc5762004b9697c7c34b7e4a169fa850fcb60f1f9
BLAKE2b-256 checksum
How to use checksums
ca9642d1291ccad7c0c0a4174ee47a054b900ff2827bd2cf20ecec763baf34b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / eden_mpi_ik-0.3.2-py3-none-any.whl

Download URL eden_mpi_ik-0.3.2-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93905ec738b08c24781686648556b2c2d03092077f448213dd309aa00c25c141
BLAKE2b-256 checksum
How to use checksums
b82b79ec4063799cbb58e8492a274d2ff93768465c28f1919219df95a3f2fdf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Security for eden-mpi-ik 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page