Code Monkey home page Code Monkey logo

shadow_hand_experiments_openai's Introduction

Shadow Hand Experiments (OpenAI gym and Mujoco Simulator)

This repository contains the scripts and results of running HER+DDPG experiments on the shadow dexterous hand.

Report and Video

The Report is available in the reporsitory with the name AER1517_Project.pdf, while the video is available here.

Pre-requisites

OpenAI Gym

Please follow the instructions to install the OpenAI gym in your system. As part of the OpenAI gym installation, make sure to install the mujoco_py wrapper as well with the provided instructions.

OpenAI Baselines

The OpenAI Baselines can be installed by following the instructions here. Make sure you are able to run the example 1 given in the instructions that runs PPO with mujoco humanoid.

Reproducing Results

Copy the the run_shadow_experiments.sh into the baselines folder.

Training Agents

Run the following command to train all 6 agents for 200 epochs.

$ bash run_shadow_experiments.sh -b <path to baselines folder>

Plotting Graphs

In order to plot the results from the logs run the following python script

$ python ./logs/hand_manipulator_lc_plotter.py -i < Dir path [touch logs]> -i <Dir path [no touch logs]> -t <title> -o <output file path>

Visualizing the Policy

The run_shadow_experiments.sh script can also be used to visualize the agent behavior. The following command template runs the the provided trained model in the provided mojovco environement. You can run bash run_shadow_experiments.sh -h for the usage message.

$ bash run_shadow_experiments.sh -b <path to baselines folder> -r HandManipulateBlock-v0 -f <path to baselines>/models/HandManipulateBlock-v0_her_2M_t0

shadow_hand_experiments_openai's People

Contributors

abhitoronto avatar

Watchers

 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.