/Reinforcement-Learning-CARLA

Reinforcement learning using CARLA simulator

Primary LanguagePython

CARLA-Reinforcement learning

In this repository tensorflow implementation of Deep Q-Learning is used for self-driving vehicle in CARLA environment. The algorithm is implemented in a quite simple environment with few surrounding vehicles. An example of the result can be seen below. Note that the agent requires to be trained longer than the figure provided with more obstacles on the road.

Figure_1

Installation

Clone the repository git clone https://github.com/shayantaherian/Reinforcement-Learning-CARLA/.git

Install the requirement requirement.txt

CARLA Installation

Download Carla you can just download the compiled version from here. Note that it is reuiqred to download the stable version of the simulator

Taining

First run the carla server CarlaUE4.sh from the save directory

Then run python Main.py. To test the results run python Test.py Note that to add more vehicle into simulation run py -3.7 spawn_npc.py -n # which # is the number of surrounding vehicle

References

Carla-RL

CARLA