Skip to content

Latest commit

 

History

History
85 lines (67 loc) · 3.29 KB

File metadata and controls

85 lines (67 loc) · 3.29 KB

GTAVSDC: GTA V Self Driving Car

The goal of this project is to create an AI agent that can navigate the streets of Los Santos, the fictional city in GTA 5, while following a predetermi-ned route.

The main challenge of this project is to develop an AI agent that can generalize well to new situations and environments, beyond the specific scenarios it has been trained on. In addition, it is important to ensure that the AI agent operates safely and does not cause harm to pedestrians or other vehicles.

Table of content

Introduction

In recent years, self-driving cars have become a hot topic in the world of technology and transportation. The idea of vehicles that can operate autonomously, without human intervention, has captured the imaginations of many engineers and researchers around the globe. As a result, numerous companies and organizations are working on developing this technology to make it a reality.

One way to test and develop self-driving car algorithms is through simulation. Video game environments, such as Grand Theft Auto V (GTA 5), provide an opportunity to create a realistic simulation for autonomous driving. In this project, we explore the use of supervised AI to control a self-driving car in GTA 5.

Features

Lane Detection

Our AI agent uses lane detection to determine the direction of the road and to stay in the correct lane. We use OpenCV with the Cany mask to find the lanes.

Following a Route

Our AI agent uses another CNN to detect the route and follow it. We use a CNN to detect the route. This model is not an independent model, it is a part of the main model. The main model uses the output of this model to determine the direction of the road and to stay in the correct lane.

Features to be added

  • Object detection
  • Traffic lights detection

Installation

To install the project, you need to install the following dependencies:

Then Clone the repo using the following command:

git clone --recurse-submodules git@github.com:BerqiaMouad/GTAVSelfDrvingCarSupervisedAI.git 

Usage

To run the project, you need to go to the project directory and then go the AI directory and run the Drive.py file using the following command:

python Drive.py

Wait for the model to be loaded, you will see a message in the terminal indicating that the model is loaded. Then press F8 to start the AI agent. To stop the AI agent, press F9.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.