RobeSafe-UAH / DQN-CARLA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deep-Q Learning

Deep Reinforcement Learning based on DQN using CARLA Simulator for self-driving vehicles. DQN architecture

Overview

This project uses CARLA Simulator and DQN algorithm to training agents which could predict the following action to be taken by a self-driving vehicle in terms of control commands. Several agents are contemplated in the project depending on the input data used to train the Deep Reinforcement Learning algorithm. Both training and validation programs are available in the repository.

Requirements

  • Python3.6
  • Numpy
  • Tensorflow==1.14.0
  • Keras==2.2.4
  • OpenCV==4.1.2

This requirements will be installed automatically by using

pip3 install -e requirements.txt"

Get Started and Usage

config.py

Choose the desire settings in config.py before launch any training or play stage. Make sure that the paths involve in the program exist, if not, create them to avoid failures in execution.

src/gent_model.py

Settings for Neural Networks involve in training process.

launch_DQN.py

In a terminal make:

python3 launch_DQN.py

Results

Each training attempt generates a log file into logs folder where some metrics are saved in order to check how the process is working. DQN average reward DQN average distance DQN maximum reward

Video

DQN gif

About


Languages

Language:Python 100.0%