Skip to main content

BvhToMimic [WIP] Build Status PyPI version

Goal

The DeepMimic project currently offers no way to import custom reference motions. This is shown in DeepMimic issue #23. This project aims to transfer animation data from .BVH files into DeepMimic motion files. Motion files can then be used to train DeepMimic skills. Many thanks to user SleepingFox88 for starting off the project. Original repository can be found here. This repository currently works well with this database.

Installation

pip install bvhtodeepmimic
or
pip3 install bvhtodeepmimic

Will install the library together with the requirements. Currently works with python 3.6 or 3.7

Usage

Create a BvhConverter object:

from bvhtomimic import BvhConverter
converter = BvhConverter("./Settings/settings.json")

Generate the DeepMimic text from a .bvh file:

converter.convertBvhFile("pathToBvhFile", loop=False)

Or write directly to file:

converter.writeDeepMimicFile(pathToBvhFile, outputPath)

Or use the example script that will convert all .bvh files located in ./InputBvh/ into Mimic Motion files, located in ./OutputMimic/ .

Progress

Walking_example

(GIF has been generated using this mocap file from this database.)

SpeedVault_example

Watch more videos of recorded conversions here.

Creating a settings file

Currently joints in .bvh files have to be manually assigned by name to the corresponding joints in the DeepMimic humanoid model. This is done by assigning the .bvh model's bone names to the corresponding joint properties in ./Settings/settings.json. On top of the joint assignments, this file should also include settings to change the scale by which the .bvh file should be transformed, and the joints used to identify the root rotation of the model.

List of related projects

Notes

This code has been developed within the ACRO research group.

Metadata

Release files for bvhtodeepmimic 0.0.5

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

Source distribution (sdist)

Source distribution for bvhtodeepmimic 0.0.5
File Size Uploaded Provenance
bvhtodeepmimic-0.0.5.tar.gz 6.8 kB Without provenance Details

Release files / bvhtodeepmimic-0.0.5.tar.gz

Download URL bvhtodeepmimic-0.0.5.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a1e2dbaa676ce759e98158191c66d0210c582bb61d14f069e78210a7f6ebec3f
BLAKE2b-256 checksum
How to use checksums
b7cf138ce108aef88bced748b06ccca18a9f454003b304fc318af8f9b430ef1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7

Security for bvhtodeepmimic 0.0.5

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