Git Product home page Git Product logo

bvhtodeepmimic's Introduction

BvhToMimic Build Status PyPI version Codecov PyPI - Python 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.

Related Projects

List of related projects

Notes

This code has been developed within the ACRO research group.

bvhtodeepmimic's People

Contributors

sloganking avatar bartmoyaers avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.