Git Product home page Git Product logo

rl_carla's Introduction

rl-CARLA

The basic idea is using Raw Image as state spaces to train DDPG Agent. The network architecture is quite simple, if you want to know more, you can check here. In order to evaluate the performance of the RL method, we first used supervised learning to train a network as baseline. Then we investigate the performance of RL methods (DDPG), both with and without pretraining.

Demo

imitation

DDPG

image image image

Result

              Town1(Train)                              Town2(Test)

Installation

Clone the git repository

$ git clone https://github.com/zhangfuyang/DDPG-CARLA.git

$ cd DDPG-CARLA & pip -r requirements.txt

(Use $DDPG_DIR as the root directory of the source)

Install Carla Simulator

  1. Download the Carla you can just download the compiled version from here . Make sure the version of the simulator is 0.8.2(stable), I'm not sure if other development or old stable versions are compatible.

  2. extract to the directory you want $ tar -xvf CARLA_0.8.2.tar.gz $CARLA_DIR

Training

  1. First start the Carla server cd $CARLA_DIR ./CarlaUE4.sh -carla-server -benchmark -fps=10

  2. Run ddpg_main.py cd $DDPG_DIR python ddpg_main.py

Test the model

  1. Start the Carla server

  2. python test_ddpg.py -model_path='models/'

Some Detail of implementation

  1. Use pretrain Network https://github.com/carla-simulator/imitation-learning to extract feature. Then connected with actor and critic net.

rl_carla's People

Contributors

zhangfuyang 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.