{"id":13838305,"url":"https://github.com/google-research/robopianist","last_synced_at":"2025-05-14T22:08:53.587Z","repository":{"id":143360309,"uuid":"615527047","full_name":"google-research/robopianist","owner":"google-research","description":"[CoRL '23] Dexterous piano playing with deep reinforcement learning.","archived":false,"fork":false,"pushed_at":"2024-11-02T22:36:31.000Z","size":2291,"stargazers_count":639,"open_issues_count":7,"forks_count":52,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-04-14T22:11:37.178Z","etag":null,"topics":["bimanual","dexterous-manipulation","mujoco","piano","reinforcement-learning","shadow-hand"],"latest_commit_sha":null,"homepage":"https://kzakka.com/robopianist/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google-research.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-03-17T22:55:10.000Z","updated_at":"2025-04-10T07:18:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"7d1fc3b1-0a0e-4a2a-8819-2e680c45f6f6","html_url":"https://github.com/google-research/robopianist","commit_stats":{"total_commits":54,"total_committers":4,"mean_commits":13.5,"dds":0.05555555555555558,"last_synced_commit":"c5d82bef2bfa608a355c133ab052027441839cba"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-research%2Frobopianist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-research%2Frobopianist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-research%2Frobopianist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google-research%2Frobopianist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google-research","download_url":"https://codeload.github.com/google-research/robopianist/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254235700,"owners_count":22036964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bimanual","dexterous-manipulation","mujoco","piano","reinforcement-learning","shadow-hand"],"created_at":"2024-08-04T15:01:49.626Z","updated_at":"2025-05-14T22:08:48.569Z","avatar_url":"https://github.com/google-research.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# RoboPianist: Dexterous Piano Playing with Deep Reinforcement Learning\n\n[![build][tests-badge]][tests]\n[![docs][docs-badge]][docs]\n[![PyPI Python Version][pypi-versions-badge]][pypi]\n[![PyPI version][pypi-badge]][pypi]\n\n[tests-badge]: https://github.com/google-research/robopianist/actions/workflows/ci.yml/badge.svg\n[docs-badge]: https://github.com/google-research/robopianist/actions/workflows/docs.yml/badge.svg\n[tests]: https://github.com/google-research/robopianist/actions/workflows/ci.yml\n[docs]: https://google-research.github.io/robopianist/\n[pypi-versions-badge]: https://img.shields.io/pypi/pyversions/robopianist\n[pypi-badge]: https://badge.fury.io/py/robopianist.svg\n[pypi]: https://pypi.org/project/robopianist/\n\n[![Video](http://img.youtube.com/vi/VBFn_Gg0yD8/hqdefault.jpg)](https://youtu.be/VBFn_Gg0yD8)\n\nRoboPianist is a new benchmarking suite for high-dimensional control, targeted at testing high spatial and temporal precision, coordination, and planning, all with an underactuated system frequently making-and-breaking contacts. The proposed challenge is *mastering the piano* through bi-manual dexterity, using a pair of simulated anthropomorphic robot hands.\n\nThis codebase contains software and tasks for the benchmark, and is powered by [MuJoCo](https://mujoco.org/).\n\n- [Latest Updates](#latest-updates)\n- [Getting Started](#getting-started)\n- [Installation](#installation)\n  - [Install from source](#install-from-source)\n  - [Install from PyPI](#install-from-pypi)\n  - [Optional: Download additional soundfonts](#optional-download-additional-soundfonts)\n- [MIDI Dataset](#midi-dataset)\n- [CLI](#cli)\n- [Contributing](#contributing)\n- [FAQ](#faq)\n- [Citing RoboPianist](#citing-robopianist)\n- [Acknowledgements](#acknowledgements)\n- [Works that have used RoboPianist](#works-that-have-used-robopianist)\n- [License and Disclaimer](#license-and-disclaimer)\n\n-------\n\n## Latest Updates\n\n- [24/12/2023] Updated install script so that it checks out the correct Menagerie commit. Please re-run `bash scripts/install_deps.sh` to update your installation.\n- [17/08/2023] Added a [pixel wrapper](robopianist/wrappers/pixels.py) for augmenting the observation space with RGB images.\n- [11/08/2023] Code to train the model-free RL policies is now public, see [robopianist-rl](https://github.com/kevinzakka/robopianist-rl).\n\n-------\n\n## Getting Started\n\nWe've created an introductory [Colab](https://colab.research.google.com/github/google-research/robopianist/blob/main/tutorial.ipynb) notebook that demonstrates how to use RoboPianist. It includes code for loading and customizing a piano playing task, and a demonstration of a pretrained policy playing a short snippet of *Twinkle Twinkle Little Star*. Click the button below to get started!\n\n[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/google-research/robopianist/blob/main/tutorial.ipynb)\n\n## Installation\n\nRoboPianist is supported on both Linux and macOS and can be installed with Python \u003e= 3.8. We recommend using [Miniconda](https://docs.conda.io/en/latest/miniconda.html) to manage your Python environment.\n\n### Install from source\n\nThe recommended way to install this package is from source. Start by cloning the repository:\n\n```bash\ngit clone https://github.com/google-research/robopianist.git \u0026\u0026 cd robopianist\n```\n\nNext, install the prerequisite dependencies:\n\n```bash\ngit submodule init \u0026\u0026 git submodule update\nbash scripts/install_deps.sh\n```\n\nFinally, create a new conda environment and install RoboPianist in editable mode:\n\n```bash\nconda create -n pianist python=3.10\nconda activate pianist\n\npip install -e \".[dev]\"\n```\n\nTo test your installation, run `make test` and verify that all tests pass.\n\n### Install from PyPI\n\nFirst, install the prerequisite dependencies:\n\n```bash\nbash \u003c(curl -s https://raw.githubusercontent.com/google-research/robopianist/main/scripts/install_deps.sh) --no-soundfonts\n```\n\nNext, create a new conda environment and install RoboPianist:\n\n```bash\nconda create -n pianist python=3.10\nconda activate pianist\n\npip install --upgrade robopianist\n```\n\n### Optional: Download additional soundfonts\n\nWe recommend installing additional soundfonts to improve the quality of the synthesized audio. You can easily do this using the RoboPianist CLI:\n\n```bash\nrobopianist soundfont --download\n```\n\nFor more soundfont-related commands, see [docs/soundfonts.md](docs/soundfonts.md).\n\n## MIDI Dataset\n\nThe PIG dataset cannot be redistributed on GitHub due to licensing restrictions. See [docs/dataset](docs/dataset.md) for instructions on where to download it and how to preprocess it.\n\n## CLI\n\nRoboPianist comes with a command line interface (CLI) that can be used to download additional soundfonts, play MIDI files, preprocess the PIG dataset, and more. For more information, see [docs/cli.md](docs/cli.md).\n\n## Contributing\n\nWe welcome contributions to RoboPianist. Please see [docs/contributing.md](docs/contributing.md) for more information.\n\n## FAQ\n\nSee [docs/faq.md](docs/faq.md) for a list of frequently asked questions.\n\n## Citing RoboPianist\n\nIf you use RoboPianist in your work, please use the following citation:\n\n```bibtex\n@inproceedings{robopianist2023,\n  author = {Zakka, Kevin and Wu, Philipp and Smith, Laura and Gileadi, Nimrod and Howell, Taylor and Peng, Xue Bin and Singh, Sumeet and Tassa, Yuval and Florence, Pete and Zeng, Andy and Abbeel, Pieter},\n  title = {RoboPianist: Dexterous Piano Playing with Deep Reinforcement Learning},\n  booktitle = {Conference on Robot Learning (CoRL)},\n  year = {2023},\n}\n```\n\n## Acknowledgements\n\nWe would like to thank the following people for making this project possible:\n\n- [Philipp Wu](https://www.linkedin.com/in/wuphilipp/) and [Mohit Shridhar](https://mohitshridhar.com/) for being a constant source of inspiration and support.\n- [Ilya Kostrikov](https://www.kostrikov.xyz/) for constantly raising the bar for RL engineering and for invaluable debugging help.\n- The [Magenta](https://magenta.tensorflow.org/) team for helpful pointers and feedback.\n- The [MuJoCo](https://mujoco.org/) team for the development of the MuJoCo physics engine and their support throughout the project.\n\n## Works that have used RoboPianist\n\n- *Privileged Sensing Scaffolds Reinforcement Learning*, Hu et. al. ([paper](https://openreview.net/forum?id=EpVe8jAjdx), [website](https://penn-pal-lab.github.io/scaffolder/))\n\n## License and Disclaimer\n\n[MuJoco Menagerie](https://github.com/deepmind/mujoco_menagerie)'s license can be found [here](https://github.com/deepmind/mujoco_menagerie/blob/main/LICENSE). Soundfont licensing information can be found [here](docs/soundfonts.md). MIDI licensing information can be found [here](docs/dataset.md). All other code is licensed under an [Apache-2.0 License](LICENSE).\n\nThis is not an officially supported Google product.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-research%2Frobopianist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle-research%2Frobopianist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle-research%2Frobopianist/lists"}