No project description provided
Project description
Note: This is an unofficial fork of https://github.com/NVIDIA/soma-retargeter.
SOMA Retargeter
Convert SOMA human motion captures into humanoid robot joint animation. Takes BVH motion files as input and produces robot-playable CSV joint data as output using GPU-optimized inverse kinematics via Newton and high-performance computation with NVIDIA Warp.
The retargeting pipeline handles proportional human-to-robot scaling, multi-objective IK solving with joint limits, feet stabilization to maintain ground contact, and per-DOF joint limit clamping. Currently supports SOMA as the input skeleton and Unitree G1 (29 DOF) as the output robot. Additional robot targets are planned.
SOMA Retargeter is part of the SOMA body model ecosystem for humanoid motion data.
Note: This project is in active development. The API may change between releases as the design is refined.
Requirements
- Python: 3.12
- Git LFS: Installed and initialized for asset downloads
- OS: Windows (x86-64) and Linux (x86-64, aarch64)
- GPU: NVIDIA GPU (Maxwell or newer), driver 545+ (CUDA 12). No local CUDA Toolkit installation required.
Installation
From PyPI (recommended)
pip install eden-soma-retargeter
soma-bvh-to-csv --help
This installs the soma_retargeter Python package and the soma-bvh-to-csv console script. The default retargeting config and the SOMA zero-frame BVH ship inside the wheel, so no LFS checkout is needed for the standard pipeline.
Runtime requirements: Python 3.12, NVIDIA GPU (Maxwell or newer), driver 545+.
From source (for contributors)
LFS only needs to be pulled if you plan to use the sample motions in assets/motions/ or rebuild the docs in assets/docs/. The wheel itself bundles only the default config and the SOMA zero-frame BVH that already live under soma_retargeter/configs/.
Method 1 (conda + pip)
1. Create and Activate Conda Environment
conda create -n soma-retargeter python=3.12 -y
conda activate soma-retargeter
2. Download LFS Assets
git lfs pull
3. Install the Library
pip install .
Method 2 (uv)
1. Install uv
Follow the official installation guide if uv is not yet installed.
2. Download LFS Assets
git lfs pull
3. Sync the Project
uv sync creates an isolated .venv virtual environment inside the project directory, installs the correct Python version and resolves all dependencies.
uv sync
Platform-specific notes
Note (Linux): For the GUI viewer to work, install tkinter
sudo apt-get install python3.12-tk
Note (Windows): If imgui-bundle fails to install, the Microsoft Visual C++ Redistributables may be missing. Download from the official Microsoft documentation.
Motion Data
This repo includes 10 sample BVH/CSV pairs in assets/motions/ for immediate testing.
For large-scale motion data, see the SEED dataset (Skeletal Everyday Embodiment Dataset) published by Bones Studio. SEED provides a large-scale collection of human motions on the SOMA uniform-proportion skeleton, which is the expected input format for this tool. The G1 robot motion data included in SEED was retargeted using SOMA Retargeter.
Quick Start
When using uv, replace
soma-bvh-to-csvwithuv run soma-bvh-to-csvin the commands below.
Interactive viewer (OpenGL)
soma-bvh-to-csv --viewer gl
This uses the bundled default config. To override:
soma-bvh-to-csv --config ./my_config.json --viewer gl
The viewer displays the source SOMA motion alongside the retargeted robot in a 3D viewport. Use the right panel to load BVH files, run retargeting, and save CSV output. Playback controls at the bottom allow scrubbing, speed adjustment, and looping. Toggle visibility of the skinned mesh, skeleton, joint axes, and positioning gizmos.
Batch conversion (headless)
Process a folder of BVH files without a display. Set import_folder and export_folder in the config file, then run:
soma-bvh-to-csv --config ./my_config.json --viewer null
Batch mode recursively finds all .bvh files in the import folder, processes them in configurable batch sizes, and writes CSV files to the export folder mirroring the input directory structure.
The same entry point is also reachable as a Python module, useful for embedding in other tools:
python -m soma_retargeter.app.bvh_to_csv_converter --viewer null
Code Overview
soma_retargeter/
| Module | Description |
|---|---|
app/bvh_to_csv_converter.py |
Main entry point (also exposed as the soma-bvh-to-csv console script). Drives both interactive and headless batch retargeting modes. |
animation/ |
Core data structures for skeletons, animation buffers, IK, and skinned meshes. |
assets/ |
File I/O for BVH, CSV, and USD formats. |
pipelines/ |
Retargeting pipeline: IK solving, feet stabilization, and joint limit clamping. |
robotics/ |
Human-to-robot scaling and robot output formatting. |
renderers/ |
Visualization for the interactive viewer. |
utils/ |
Math, pose, coordinate conversion, Newton and Warp helpers. |
configs/ |
JSON configuration for retargeting, scaling, and feet stabilization parameters, plus the default default_bvh_to_csv_converter_config.json shipped with the wheel. |
Related Work
SOMA Retargeter is a support tool within the SOMA ecosystem for humanoid motion data:
- SOMA Body Model - Parametric human body model with standardized skeleton, mesh, and shape parameters
- GEM-X - Human motion estimation from video
- Kimodo - Kinematic motion diffusion model for text and constraint-driven 3D human and robot motion generation
- ProtoMotions - GPU-accelerated simulation and learning framework for training physically simulated digital humans and humanoid robots
- SONIC - Whole-body control for humanoid robots, training locomotion and interaction policies
Acknowledgments
This project draws inspiration and builds upon excellent open-source work, including:
License
This codebase is licensed under Apache-2.0.
This project will download and install additional third-party open source software projects. Review the license terms of these open source projects before use.
Project details
Release history Release notifications | RSS feed
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 eden_soma_retargeter-0.1.1.tar.gz.
File metadata
- Download URL: eden_soma_retargeter-0.1.1.tar.gz
- Upload date:
- Size: 1.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f57b9495af16264b8781bd07c32f9aea35480ba26c47efd286d0a358c5310d80
|
|
| MD5 |
46bc8688db357550265735bd76067596
|
|
| BLAKE2b-256 |
d767636c384d9b92d0672fa537c3500fb858d225e2210a82f3322efad8da9026
|
Provenance
The following attestation bundles were made for eden_soma_retargeter-0.1.1.tar.gz:
Publisher:
release.yml on lalit-jayanti/eden-soma-retargeter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eden_soma_retargeter-0.1.1.tar.gz -
Subject digest:
f57b9495af16264b8781bd07c32f9aea35480ba26c47efd286d0a358c5310d80 - Sigstore transparency entry: 1476699439
- Sigstore integration time:
-
Permalink:
lalit-jayanti/eden-soma-retargeter@63f6a48ed8b8f2d963bc8b8729f4ecc18d5c4b82 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/lalit-jayanti
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@63f6a48ed8b8f2d963bc8b8729f4ecc18d5c4b82 -
Trigger Event:
push
-
Statement type:
File details
Details for the file eden_soma_retargeter-0.1.1-py3-none-any.whl.
File metadata
- Download URL: eden_soma_retargeter-0.1.1-py3-none-any.whl
- Upload date:
- Size: 1.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54dc978749cc20ce02ef3aacbb828930dfdd378d780867ea28355081ffcebc5f
|
|
| MD5 |
e2d71300a9dcaf849bed3482e2691bc0
|
|
| BLAKE2b-256 |
de7d045bc75f6242bfe5040f974c2798b8e58bd9f0a4b2c145439b94da6b1a7a
|
Provenance
The following attestation bundles were made for eden_soma_retargeter-0.1.1-py3-none-any.whl:
Publisher:
release.yml on lalit-jayanti/eden-soma-retargeter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eden_soma_retargeter-0.1.1-py3-none-any.whl -
Subject digest:
54dc978749cc20ce02ef3aacbb828930dfdd378d780867ea28355081ffcebc5f - Sigstore transparency entry: 1476699554
- Sigstore integration time:
-
Permalink:
lalit-jayanti/eden-soma-retargeter@63f6a48ed8b8f2d963bc8b8729f4ecc18d5c4b82 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/lalit-jayanti
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@63f6a48ed8b8f2d963bc8b8729f4ecc18d5c4b82 -
Trigger Event:
push
-
Statement type: