/ReinforcementLearning-TrafficLights

ReinforcementLearning-TrafficLights

Primary LanguagePython

ReinforcementTrafficLights

Overview

ReinforcementTrafficLights is a reinforcement learning project aimed at optimizing traffic lights using the SUMO simulator as the environment. It utilizes the DPPO algorithm and TensorFlow.

Project Tutorial Video

Traffic Signal Control with Reinforcement Learning: A Real Project Tutorial

Installation

Before running the project, please install the following dependencies:

pip install ray pandas sumolib tensorflow==2.13

SUMO (Simulation of Urban MObility)

here.

Usage

Training

To train the model, use the following command:

python main.py --name [name_of_your_experiment] --mode train

Testing

To test the model, use the following command:

python main.py --name [name_of_your_experiment] --mode test