Skip to main content

VolumetricSMPL body model.

Project description

VolumetricSMPL

Description

VolumetricSMPL is an extension of the SMPL body model that incorporates a volumetric (signed distance field, SDF) representation. This enables seamless interaction with 3D geometries, such as scenes, objects, and other humans.

Installation

Ensure that PyTorch and PyTorch3D are installed with GPU support. Then, install VolumetricSMPL via:

pip install VolumetricSMPL

Usage

VolumetricSMPL extends the interface of the SMPL-X package by attaching a volumetric representation to the body model. This allows for querying signed distance fields for arbitrary points and accessing collision loss terms.

A more detailed tutorial is available here, demonstrating how to integrate VolumetricSMPL into applications requiring human-scene, human-object, and human-human interactions.

Example Usage

import smplx
from VolumetricSMPL import attach_volume

# Create a SMPL body and extend it with volumetric functionalities (supports SMPL, SMPLH, and SMPL-X)
model = smplx.create(**smpl_parameters)
attach_volume(model)

# Forward pass
smpl_output = model(**smpl_data)  

# Ensure valid SMPL variables (pose parameters, joints, and vertices)
assert model.joint_mapper is None, "VolumetricSMPL requires valid SMPL joints as input."

# Access volumetric functionalities
model.volume.query(scan_point_cloud)                 # Query SDF for given points
model.volume.selfpen_loss(smpl_output)               # Compute self-intersection loss
model.volume.collision_loss(smpl_output, scan_point_cloud)  # Compute collisions with external geometries

Pretrained Models

Pretrained models are automatically fetched and loaded. They can also be found in the dev branch inside the ./models directory.

Contact

For questions, please contact Marko Mihajlovic (markomih@ethz.ch) or open an issue on GitHub.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

volumetricsmpl-1.0.4.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

VolumetricSMPL-1.0.4-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file volumetricsmpl-1.0.4.tar.gz.

File metadata

  • Download URL: volumetricsmpl-1.0.4.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for volumetricsmpl-1.0.4.tar.gz
Algorithm Hash digest
SHA256 5382b941eef854a2bb20d3a37ff17ce5991d9cf7350c7aa4f9374fac30128db0
MD5 c08bec5cead85c0d6027ca5b7022ff96
BLAKE2b-256 43a012e3f97bbdffe8c9b8385bc18d23af6401216b6743905e80a1d271928077

See more details on using hashes here.

File details

Details for the file VolumetricSMPL-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: VolumetricSMPL-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for VolumetricSMPL-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 aed868225c3605068b30e49c2e7c4975d8beebc6e904210339dedff2e74291a1
MD5 0e5e3ef84c1d56d40e13d411cf484f2a
BLAKE2b-256 c18adf274f938f314992812eae6470ed0ad945d12e92efc5719892f1547bd31a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page