{ "info": { "author": "Bart Moyaers", "author_email": "bart.moyaers@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# BvhToMimic [WIP] [![Build Status](https://travis-ci.org/BartMoyaers/BvhToDeepMimic.svg?branch=master)](https://travis-ci.org/BartMoyaers/BvhToDeepMimic) [![PyPI version](https://badge.fury.io/py/bvhtodeepmimic.svg)](https://badge.fury.io/py/bvhtodeepmimic)\n\n## Goal\n\nThe [DeepMimic project](https://github.com/xbpeng/DeepMimic) currently offers no way to import custom reference motions. This is shown in [DeepMimic issue #23](https://github.com/xbpeng/DeepMimic/issues/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](https://github.com/SleepingFox88) for starting off the project. Original repository can be found [here](https://github.com/SleepingFox88/BvhToMimic). This repository currently works well with [this database](http://mocap.cs.sfu.ca/).\n\n## Installation\n`pip install bvhtodeepmimic` \nor \n`pip3 install bvhtodeepmimic`\n\nWill install the library together with the requirements. Currently works with python 3.6 or 3.7\n\n## Usage\nCreate a BvhConverter object:\n```python\nfrom bvhtomimic import BvhConverter\nconverter = BvhConverter(\"./Settings/settings.json\")\n```\n\nGenerate the DeepMimic text from a .bvh file:\n```python\nconverter.convertBvhFile(\"pathToBvhFile\", loop=False)\n```\n\nOr write directly to file:\n```python\nconverter.writeDeepMimicFile(pathToBvhFile, outputPath)\n```\n\nOr use [the example script](./example_script.py) that will convert all .bvh files located in ./InputBvh/ into Mimic Motion files, located in ./OutputMimic/ .\n\n## Progress\n\n![Walking_example](./Assets/walking_example.gif)\n\n(GIF has been generated using [this](http://mocap.cs.sfu.ca/nusmocap/0005_Walking001.bvh) mocap file from [this database](http://mocap.cs.sfu.ca/).)\n\n![SpeedVault_example](./Assets/SpeedVault_example.gif)\n\nWatch more videos of recorded conversions [here](https://www.youtube.com/playlist?list=PLd8lridYo1jPV26RsWZIGSJJew9nu4XSF).\n\n## Creating a settings file\n\nCurrently 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](./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.\n\n## Related Projects\n\n[List of related projects](https://github.com/SleepingFox88/DeepMimic-Animation-Conversion)\n\n### Notes\n\nThis code has been developed within the [ACRO research group](https://iiw.kuleuven.be/onderzoek/acro).", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/BartMoyaers/BvhToDeepMimic", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "bvhtodeepmimic", "package_url": "https://pypi.org/project/bvhtodeepmimic/", "platform": "", "project_url": "https://pypi.org/project/bvhtodeepmimic/", "project_urls": { "Homepage": "https://github.com/BartMoyaers/BvhToDeepMimic" }, "release_url": "https://pypi.org/project/bvhtodeepmimic/0.0.5/", "requires_dist": null, "requires_python": ">=3.6.*", "summary": "Convert .bvh files (Biovision Hierarchy) to DeepMimic format.", "version": "0.0.5" }, "last_serial": 5649154, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "a324bfca937a8935c5d0e1cffecbd343", "sha256": "21124999eb413b3d75b6e7c042d92da46618de9ec928f2f10ec48fd61f4ddfc5" }, "downloads": -1, "filename": "bvhtodeepmimic-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a324bfca937a8935c5d0e1cffecbd343", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9195, "upload_time": "2019-08-07T12:22:25", "url": "https://files.pythonhosted.org/packages/01/31/7bbba48e704b08e7f573fe848a0c3c741d41de2e6bd05c7bd5aaa0021d25/bvhtodeepmimic-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2207041c5ff5c94d0147a00d371461e9", "sha256": "d8eeab2b987c1e4c6ea286c713153614e5dfd25c4949de4d062296c1acf10503" }, "downloads": -1, "filename": "bvhtodeepmimic-0.0.1.tar.gz", "has_sig": false, "md5_digest": "2207041c5ff5c94d0147a00d371461e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6628, "upload_time": "2019-08-07T12:22:27", "url": "https://files.pythonhosted.org/packages/ac/e5/97022153ce654a7594a0d71ea3f8c603647c0a1dec8dd0371febe1271071/bvhtodeepmimic-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "cb0ccb46bceff46056774d4753ba6973", "sha256": "28d868c15978f10e95e8b96911014889fb38724f026e27ace135f7caac67c5d2" }, "downloads": -1, "filename": "bvhtodeepmimic-0.0.2.tar.gz", "has_sig": false, "md5_digest": "cb0ccb46bceff46056774d4753ba6973", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6579, "upload_time": "2019-08-07T13:54:16", "url": "https://files.pythonhosted.org/packages/a7/40/bae0f50967eabdcb7d8299f733497ae5385ff70eed9972146fc1b20400c4/bvhtodeepmimic-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "98732a7d5571166aaad7c4851b7d5e12", "sha256": "824e4127e12f8d561d49a264ba13cf1669e06027af4d0c3810b388d52a36cfd9" }, "downloads": -1, "filename": "bvhtodeepmimic-0.0.3.tar.gz", "has_sig": false, "md5_digest": "98732a7d5571166aaad7c4851b7d5e12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6797, "upload_time": "2019-08-07T15:37:24", "url": "https://files.pythonhosted.org/packages/c0/e1/b57c29ec5c34de8c9cffb6e09bc7f7f070ede8a8ff46014881f3e52a297e/bvhtodeepmimic-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "ed32a6dade141294f8185a99cc6dea8f", "sha256": "5361594c8b5dd04fc863c160179e18fde91541158dc3f4de91ecc19503b22e6a" }, "downloads": -1, "filename": "bvhtodeepmimic-0.0.4.tar.gz", "has_sig": false, "md5_digest": "ed32a6dade141294f8185a99cc6dea8f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.*", "size": 6820, "upload_time": "2019-08-08T08:14:30", "url": "https://files.pythonhosted.org/packages/6e/83/c8f3cdac7cd85be7ac16fe1bb8704a5f3cd8963b5f78ec7ae949cbbeb1a6/bvhtodeepmimic-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "0ae12ea4e76fc5306b8da952c5f4205a", "sha256": "a1e2dbaa676ce759e98158191c66d0210c582bb61d14f069e78210a7f6ebec3f" }, "downloads": -1, "filename": "bvhtodeepmimic-0.0.5.tar.gz", "has_sig": false, "md5_digest": "0ae12ea4e76fc5306b8da952c5f4205a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.*", "size": 6838, "upload_time": "2019-08-08T09:45:04", "url": "https://files.pythonhosted.org/packages/b7/cf/138ce108aef88bced748b06ccca18a9f454003b304fc318af8f9b430ef1e/bvhtodeepmimic-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0ae12ea4e76fc5306b8da952c5f4205a", "sha256": "a1e2dbaa676ce759e98158191c66d0210c582bb61d14f069e78210a7f6ebec3f" }, "downloads": -1, "filename": "bvhtodeepmimic-0.0.5.tar.gz", "has_sig": false, "md5_digest": "0ae12ea4e76fc5306b8da952c5f4205a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.*", "size": 6838, "upload_time": "2019-08-08T09:45:04", "url": "https://files.pythonhosted.org/packages/b7/cf/138ce108aef88bced748b06ccca18a9f454003b304fc318af8f9b430ef1e/bvhtodeepmimic-0.0.5.tar.gz" } ] }