Git Product home page Git Product logo

shunchan0677 / infogail Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yunzhuli/infogail

0.0 2.0 0.0 486.47 MB

[NIPS 2017] InfoGAIL: Interpretable Imitation Learning from Visual Demonstrations

License: MIT License

Makefile 5.29% M4 0.07% Roff 4.17% C 16.86% Batchfile 6.20% Shell 0.83% HTML 9.52% CSS 0.03% JavaScript 0.01% C++ 51.97% RobotFramework 0.33% XSLT 0.38% TeX 2.16% Python 2.14% M 0.01% Dockerfile 0.02%

infogail's Introduction

By Yunzhu Li, Jiaming Song, Stefano Ermon

Introduction

Modified codebase of TORCS, with the ability to extract dashboard views.

InfoGAIL implementation, attached with two examples: pass & turn.

Citing InfoGAIL

If you find this codebase useful in your research, please consider citing:

@article{li2017inferring,
    title={InfoGAIL: Interpretable Imitation Learning from Visual Demonstrations},
    author={Li, Yunzhu and Song, Jiaming and Ermon, Stefano},
    journal={arXiv preprint arXiv:1703.08840},
    year={2017}
}

Requirements

  1. Python 2.7
  2. Tensorflow 0.12.1
  3. Keras 1.2.2
  4. xautomation

Install and Configure TORCS

In the following section, we only show the commands for running example 0 (indicating pass). Users can replace 0 with 1 to run example 1 (indicating turn).

  1. Install all the dependencies of TORCS, including but not limited to:
sudo apt-get install libplib-dev
sudo apt-get install libopenal-dev
sudo apt-get install libalut-dev

See http://torcs.sourceforge.net/ for more information

  1. cd to the torcs-1.3.4/ folder, type the following commands to install TORCS:
./configure
make
sudo make install
sudo make datainstall

Default installation directories are:

/usr/local/bin
/usr/local/lib/torcs
/usr/local/share/games/torcs

Run the torcs command to play TORCS.

  1. Copy the modified tracks files in the modified_tracks/ folder to the torcs folder /usr/local/share/games/torcs/tracks/road
  2. Type the following commands to configure the running environment:
rm -rf ~/.torcs
cp -r torcs_config_ai_0 ~/.torcs

Download training data and pretrained weights

  1. Training data
  1. Pretrained weights

Run with pretrained weights

  1. cd to wgail_info_0/

  2. open drive.py and edit line 20-21 in concert with downloaded data and weights

  3. change variable code in line 14 into different values (0 or 1) to observe different behaviors

  4. type the python drive.py to run pass with pretrained weights

    Run pass with different latent codes (0 or 1):

    Run turn with different latent codes (0 or 1):

Training

  1. cd to wgail_info_0/
  2. open wgail_info.py and edit line 17-19 in concert with downloaded data and weights
  3. open models.py and edit line 508 to specify the place to store the weights, edit line 422 to specify the place to store the log file
  4. type python wgail_info.py to train on pass, note that the weights trained via behavior cloning are used to initialize the policy network

Misc.

  1. Track selection:

    • pass: chenyi-Street 1
    • turn: chenyi-Brondehach
  2. torcs-1.3.4 in this repository is a modified version of the original codebase released by Bernhard Wymann. This version holds the ability of extracting and transmitting visual information.

References

DeepDriving

Using Keras and Deep Deterministic Policy Gradient to play TORCS

TORCS - The Open Race Car Simulator

SnakeOil

Simulated Car Racing Championship Competition Software Manual

infogail's People

Contributors

yunzhuli avatar shunchan0677 avatar

Watchers

James Cloos avatar paper2code - bot 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.