body-models
Parametric human models with a shared NumPy, PyTorch, and JAX API.
Installation
Requires Python 3.11 or newer. NumPy is included; add extras for PyTorch or JAX.
pip install body-models
pip install "body-models[torch]"
pip install "body-models[jax]"
Example
from body_models.gnm.numpy import GNM
model = GNM()
params = model.get_rest_pose(batch_dims=(1,))
vertices = model.forward_vertices(**params)
skeleton = model.forward_skeleton(**params)
Public assets such as GNM Head download on first use. Models with restricted assets require registration with their upstream project.
Models
| Category | Models |
|---|---|
| Bodies | SMPL, SMPL-H, SMPL-X, ANNY, MHR, SOMA |
| Heads | FLAME, GNM Head |
| Hands | MANO |
| Anatomy | SKEL |
| Measurements | GarmentMeasurements |
See the documentation for setup, parameters, and API details.
License
The library uses Apache 2.0. Model assets retain their upstream licenses; see each model's documentation.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file body_models-0.26.0.tar.gz.
File metadata
- Download URL: body_models-0.26.0.tar.gz
- Upload date:
- Size: 127.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8eb25ea5a84e9a62f9479c89cb1a0354a2b92247840da0f3ca35fdc693e3f22
|
|
| MD5 |
e03827defaf96d60ec7b8da129ec5960
|
|
| BLAKE2b-256 |
5144720c99713b629abffd3fd8af3aef38309161dfe8498bf0b1c60785dbf78f
|
File details
Details for the file body_models-0.26.0-py3-none-any.whl.
File metadata
- Download URL: body_models-0.26.0-py3-none-any.whl
- Upload date:
- Size: 184.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad876e5b74834998f81f9f59b97ee7dfea653888c8ae31bebc4db37db90b8481
|
|
| MD5 |
2870d1cf3adaf14a98b0ffc91b277637
|
|
| BLAKE2b-256 |
05c19031811c9925f296abf4ec46013afcb88c87d0beee90b33a4e2a098eeaeb
|