A benchmark for high-dimensional robot control
Project description
RoboPianist: A Benchmark for High-Dimensional Robot Control
RoboPianist 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.
This codebase contains software and tasks for the benchmark, and is powered by MuJoCo.
- Getting Started
- Installation
- MIDI Dataset
- CLI
- Contributing
- FAQ
- Citing RoboPianist
- Acknowledgements
- License and Disclaimer
Getting Started
We've created an introductory Colab 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!
Installation
RoboPianist is supported on both Linux and macOS and can be installed with Python 3.8 up to 3.10. We recommend using Miniconda to manage your Python environment.
3.11 will be supported once the numba team resolves #8304.
Install from source
The recommended way to install this package is from source. Start by cloning the repository:
git clone https://github.com/google-research/robopianist.git && cd robopianist
Next, install the prerequisite dependencies:
git submodule init && git submodule update
bash scripts/install_deps.sh
Finally, create a new conda environment and install RoboPianist in editable mode:
conda create -n pianist python=3.10
conda activate pianist
pip install -e ".[dev]"
To test your installation, run make test
and verify that all tests pass.
Install from PyPI
First, install the prerequisite dependencies:
bash <(curl -s https://raw.githubusercontent.com/google-research/robopianist/main/scripts/install_deps.sh) --no-soundfonts
Next, create a new conda environment and install RoboPianist:
conda create -n pianist python=3.10
conda activate pianist
pip install --upgrade robopianist
Optional: Download additional soundfonts
We recommend you install additional soundfonts to improve the quality of the synthesized audio. The RoboPianist CLI can be used to list out all available soundfonts, change the default soundfont, and download additional ones. To list out all available commands, run:
robopianist soundfont --help
For more information, see docs/soundfonts.md.
MIDI Dataset
The PIG dataset cannot be redistributed on GitHub due to licensing restrictions. See docs/dataset for instructions on where to download and how to process the
CLI
RoboPianist comes with a command line interface (CLI) that can be used to download additional soundfonts, play MIDI files, preprocess the PIG dataset, and more. To see a list of available commands, run robopianist --help
.
Contributing
We welcome contributions to RoboPianist. Please see docs/contributing.md for more information.
FAQ
See docs/faq.md for a list of frequently asked questions.
Citing RoboPianist
If you use RoboPianist in your work, please use the following citation:
@software{zakka2023robopianist,
author = {Zakka, Kevin 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},
title = {{RoboPianist: A Benchmark for High-Dimensional Robot Control}},
url = {https://github.com/google-research/robopianist},
year = {2023},
}
Acknowledgements
We would like to thank the following people for making this project possible:
- Philipp Wu and Mohit Shridhar for being a constant source of inspiration and support.
- Ilya Kostrikov for constantly raising the bar for RL engineering and for invaluable debugging help.
- The Magenta team for helpful pointers and feedback.
- The MuJoCo team for the development of the MuJoCo physics engine and their support throughout the project.
License and Disclaimer
MuJoco Menagerie's license can be found here. Soundfont licensing information can be found here. MIDI licensing information can be found here. All other code is licensed under an Apache-2.0 License.
This is not an officially supported Google product.
Project details
Release history Release notifications | RSS feed
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 robopianist-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff942803d356d138a819092cc31f6d225977bae8e61812684a53b26413734c4a |
|
MD5 | e75770420f4aec543db0ecc35f5d040a |
|
BLAKE2b-256 | 1b1bd342f9b6a22bc21cc3edca4032a6ed510b44b5bacef077ae1314d1395998 |