Convert .bvh files (Biovision Hierarchy) to DeepMimic format.
Project description
BvhToMimic [WIP]
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.
Progress
(GIF has been generated using this mocap file from this database.)
Watch more videos of recorded conversions here.
Dependencies
Python sudo apt install python
numpy pip install numpy
bvh pip install bvh
tqdm pip install tqdm
pyquaternion pip install pyquaternion
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.
Running the project
python BvhToMimic.py
Will convert all .bvh files located in /InputBvh/ into Mimic Motion files, located in /OutputMimic/
Related Projects
Notes
Most parts of this code have been developed within the ACRO research group.
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
Hashes for bvhtodeepmimic-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21124999eb413b3d75b6e7c042d92da46618de9ec928f2f10ec48fd61f4ddfc5 |
|
MD5 | a324bfca937a8935c5d0e1cffecbd343 |
|
BLAKE2b-256 | 01317bbba48e704b08e7f573fe848a0c3c741d41de2e6bd05c7bd5aaa0021d25 |