Giter Site home page Giter Site logo

worldmodelsfordeeprl's Introduction

WorldModelsForDeepRL

Introduction

This repository incorporates the World Model generative model architecture developed by Ha & Schmidhuber here to enhance Deep Reinforcement Learning agents by reducing the dimensionality of the raw image states to a compressed feature vector. We consider Deep Deterministic Policy Gradients (DDPG) and Proximal Policy Optimization (PPO).

Setup

Follow these steps to install the repository dependencies

  1. Clone the repository with git clone https://github.com/shawnmanuel000/WorldModelsForDeepRL.git

  2. Cd into the repository root directory and install the required packages in Python3 with pip3 install -r requirements.txt

  3. In case the Box2D fails to build, you may be missing 'swig'. If so, follow the instructions in ./dependencies/swig_{OS}/swig3.0.8/Doc/Manual/preface.html

  4. Test the three saved models by running python3 visualize.py

Training

  1. To train the RL agents asynchronously, run the following line with either ddpg or ppo bash train_a3c.sh [ddpg|ppo]

  2. To train the RL agents synchronously, run the following line with either ddpg or ppo python3 train_a3c.py --model [ddpg|ppo] --runs 500

  3. To train the complete World Model with controller, run the following line bash train_worldmodel.sh

worldmodelsfordeeprl's People

Contributors

shawnmanuel000 avatar

Stargazers

 avatar Philippe Weingertner avatar

Watchers

zouhair avatar James Cloos avatar Robert Moss avatar Jayesh K. Gupta avatar Louis Dressel avatar Zachary Sunberg avatar Mykel Kochenderfer avatar Ritchie Lee avatar Aiden Kim avatar Yi-Chun Chen avatar Maxime avatar Jon Cox avatar  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.