Giter VIP home page Giter VIP logo

infogail-pomdp's Introduction

Multi-Modal Imitation Learning in Partially Observable Environments

This repository contains data and TensorFlow 1.1x code for the preprint โ€œMulti-Modal Imitation Learning in Partially Observable Environments".

Dependency on Linux

  1. Install cuda 10.0 if it's not available already.

  2. Install anaconda if it's not available already, and create a new environment. You need to install a few things, namely, OpenMPI, TensorFlow 1.12, Stable Baselines, OpenAI Gym and MuJoCo. (Please refer to "this link" for installation of MuJoCo physics simulator.)

sudo apt-get update && sudo apt-get install cmake libopenmpi-dev zlib1g-dev

wget https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh
conda update -n base -c defaults conda
conda create --name mmim python=3.6
conda activate mmim

conda install pip
conda install numpy pyyaml setuptools cmake cffi tqdm pyyaml scipy ipython mkl mkl-include cython typing h5py nltk spacy numpydoc scikit-learn jpeg

pip install mujoco-py
pip install stable-baselines[mpi]

conda install tensorflow-gpu=1.12.0
conda install gym

Export Expert Demos

  1. Import the Python files of customized partial observable Gym environments mujoco/expert/hopper_v3.py to the corresponding folder of the Gym local directory [Gym dir]/gym/envs/mujoco/.

  2. Configurate mujoco/expert/config.py for desirable behaviors (default to train PPO expert from scratch for 5M iterations).

  3. Run expert.py to get .npy file containing expert demonstrations.

cd mojoco/expert
python3 expert.py

Run Imitation

All the tunable hyperparameters and network structures including hidden dimensions, activation functions, learning rates, training iterations, gamma and lambda used in GAE, clipping range in PPO used for training the imitation policy are variables in mujoco/config.py.

cd mojoco/expert
python3 train.py

Training logs are printed to stdout if config.log_path is None.

infogail-pomdp's People

Stargazers

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

Watchers

 avatar  avatar

infogail-pomdp's Issues

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.