Giter Club home page Giter Club logo

gher's Introduction

Guided goal generation for hindsight multi-goal reinforcement learning

The detail of this paper shows here.

Prerequisites

GHER requires python3.6, tensorflow-gpu 1.8.0, mujoco-engine with license, mujoco-py, openAI baselines.

Installation

git clone https://github.com/Baichenjia/GHER.git
cd GHER
pip install -e .

The conditional RNN model

Set the envname parameter in GHER/gmm_model/CONDIG.py file. This file describes the hyper-parameters in proposed conditional RNN model. Model architecture defined in file GHER/gmm_model/gmm_model.py. We have pre-trained the RNN model in all tasks and save the Tensorflow model parameters in folder GHER/gmm_model/gmm_save/. When G-HER start training, the pre-trained RNN model will be loaded according to envname setup.

Train a G-HER agent

Training an agent is simple, cd GHER/experiment/ and then

python train.py

This will train a GHER+DDPG agent on the FetchPush task. You can choose the other tasks by setting the choice in train.py file. Then set the same environment name in GHER/gmm_model/CONDIG.py to load the specific pre-trained RNN model.

Results

We reproduce 3 baselines includes: HER, typical UVFAs in multi-goal setup. Both of them are under the sparse rewards setup. We also reproduce a vanilla DDPG with a shaped reward for comparison. We trained all the baselines with 1 cpu core and 1 NVIDIA 1080Ti GPU in a single machine. The policy file and learning curve are saved in folder GHER/experiment/result/. You are free to use these pre-trained baseline results. We illustrate the learning curve of baselines and proposed G-HER result shows in cd GHER/experiment/result/pic. You can plot the learning curve with

python plot.py

Play with G-HER

We save the pre-trained GHER agent in GHER/experiment/result/Gher-result/. To visualize the performance of the pre-trained best policy, cd GHER/experiment/result and

python play.py

This will use the pre-trained FetchPickAndPlace policy to rollout for 20 episodes. You are free to use other policies in other tasks by modifying the policy_file choice. The recorded video was shown here.

gher's People

Contributors

mrdadaguy avatar baichenjia avatar

Watchers

James Cloos 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.