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
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 volumetricsmpl-1.0.3.tar.gz.
File metadata
- Download URL: volumetricsmpl-1.0.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b058bfc91a973c3c2ba4e4ee80a4884ae810a4139c7ae886c3f57bfc8f94ddd4
|
|
| MD5 |
768843b5244b598fe85427cc7b57e3bc
|
|
| BLAKE2b-256 |
48156fd48ee71fea62c07a271038a36a612dbbdff2f1c00d4810fcd64ad5bb86
|
File details
Details for the file VolumetricSMPL-1.0.3-py3-none-any.whl.
File metadata
- Download URL: VolumetricSMPL-1.0.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dbe69d512af293896ab3e59e4a78ce9771ea5c90c8e88582c6d56de8ad990ab
|
|
| MD5 |
56c20b000aee94dcd22eed83643e3f3b
|
|
| BLAKE2b-256 |
e1dc979baebbd2b174ae2ad128f71b7c7cc69d0aff0fd9a5959c44b4acc41350
|