Coder Social home page Coder Social logo

rgalljamov / learn2walk Goto Github PK

View Code? Open in Web Editor NEW
18.0 4.0 4.0 259.3 MB

The code corresponding to the paper "Improving Sample Efficiency of Deep Reinforcement Learning for Bipedal Walking".

Python 100.00%
mujoco mujoco-py sample-efficiency bipedal-robots humanoid-walking reinforcement-learning gym deep-reinforcement-learning

learn2walk's Introduction

Improving Sample Efficiency of Deep Reinforcement Learning for Bipedal Walking

Abstract

Reinforcement learning holds a great promise of enabling bipedal walking in humanoid robots. However, despite encouraging recent results, training still requires significant amounts of time and resources, precluding fast iteration cycles of the control development. Therefore, faster training methods are needed. In this paper, we investigate a number of techniques for improving sample efficiency of on-policy actor-critic algorithms and show that a significant reduction in training time is achievable with a few straightforward modifications of the common algorithms, such as PPO and DeepMimic, tailored specifically towards the problem of bipedal walking. Action space representation, symmetry prior induction, and cliprange scheduling proved effective at reducing sample complexity by a factor of 4.5. These results indicate that domain-specific knowledge can be readily utilized to reduce training times and thereby enable faster development cycles in challenging robotic applications.

Installation

  1. Install CUDA 10.1 following this medium post.
  2. Follow these instructions to install anaconda.
  3. Create a conda environment from the .yml file located in the repository with conda env create -f path/to/conda_env.yml
  4. Install MuJoCo and mujoco-py following these instructions.

Main scripts, files and folders

  • scripts/config_light.py specifies the simulation environment, as well as main hyperparameters and main experimental/training settings
  • scripts/common/config.py allows detailed control over all hyperparameters and experimental/training settings
  • scripts/train.py trains a policy on the specified environment
  • scripts/run.py loads a policy from a specified path and executes it on the environment defined in the config files. The execution can be rendered.
  • mujoco/gym_mimic_envs/mimic_env.py implements the Base class to use a MuJoCo environment in the context of imitation learning
  • mujoco/gym_mimic_envs/mujoco/mimic_walker3d.py is the main environment used during our experiments to train policies to generate stable human-like walking
    • mujoco/gym_mimic_envs/mujoco/assets/walker3d_flat_feet.xml defines the morphology and inertial properties of the walker
  • scripts/mocap/ref_trajecs.py loads the post-processed mocap data from assets/ref_trajecs and prepares it for usage with an RL environment.
  • graphs/ contains the processed monitoring data of different policies during training that were logged to Weights & Biases.

Supplementary videos

  • Main video for the submission is located in the media folder
  • Videos of the walking gait recorded using different action spaces can be found in media/videos_action_spaces and in the following Google Drive Folder

Questions?

Please contact Rustam Galljamov in case you have any questions regarding the code.

learn2walk's People

Contributors

mlkeychain avatar rgalljamov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.