Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoDrive Banner

AutoDrive

Autonomous Driving: Pedestrians and Vehicles Detection using YOLOv11

This project is part of the Data Science and AI Course at Faculty of Electrical Engineering Sarajevo. We utilize the YOLO (You Only Look Once) object detection model to detect pedestrians and vehicles in driving scenarios, classify traffic lights and track lane, primarily using dashcam footage and images. Different configurations and sizes of the YOLO model were explored to evaluate performance.

License GitHub stars

Table of Contents

Overview

Team Members:

What to expect in AutoDrive v2:

  • AutoDrive v1 was accurate but too slow, because it is running 3 models simultaneously on one frame and that is not suitable for real-time applications. In this version we are using 2 models, one for detection and one for segmentation.

  • The detection model is used to detect objects in first frame, while the segmentation model is used to segment the lane and road on second frame. This approach is more efficient and allows for real-time applications.

  • But still we are not satisfied with using two frames, in future versions we are going to work on merging all models in one, if it is possible since YOLO is strict when it comes to annotation formatting and merging segmentation and detection tasks, and displaying them on one frame while maintaining real-time performance.

Installation

Clone the repository:

git clone https://github.com/bkosovac1/redziBOT

or clone on Replit:
Run on Repl.it

Datasets

Detection Model
The dataset used for training and evaluation of detection model is available on RoboFlow. It consists of approximately 16,346 frames of classes relevant to this project: green-light, red-light, yellow-light, pedestrian, car, truck, bus, motorbike, bicycle.

Segmentation Model
The dataset used for training and evaluation is available on RoboFlow. It consists of approximately 1927 frames capturing roads and side-lines. Classes are lane and road. We used same model in version 1

Training

Training was done on nano and large size of YOLOv11 model. The training process was optimised with recommended optimizer for that specific dataset. Following are the training parameters and results of all models. Training was conducted using various sizes of the YOLOv11 model (nano and large). Key training parameters and validation results are summarized below:

Model YOLO Size Epochs Batch Size Learning Rate Optimizer Momentum Dropout Precision (P) Recall (R) mAP50 mAP50-95
Detection Model large 10 16 0.001429 Auto: AdamW 0.9 0.0 81.1% 68.4% 75.5% 44.2%
Detection Model nano 25 32 0.001429 Auto: AdamW 0.9 0.0 81.1% 65.6% 72.9% 41.9%
Segmentation Model large 50 16 0.001667 Auto: AdamW 0.9 0.0 83.2% 86.4% 85.8% 77.2%
Segmentation Model nano 100 64 0.001667 Auto: AdamW 0.9 0.0 82.9% 88.9% 86.8% 78.7%

Results

Below are some key performance indicators and visualizations from our training runs.

1. Detection with Large YOLOv11 model

  • Precision-Confidence Curve:

    P Curve ID1
  • Recall-Confidence Curve:

    R Curve ID1
  • Precision-Recall Curve:

    PR Curve ID1
  • Confusion Matrix:

    Confusion Matrix ID1
  • Results:

    Results ID1

2. Detection with Nano YOLOv11 model

  • Precision-Confidence Curve:

    P Curve ID2
  • Recall-Confidence Curve:

    R Curve ID2
  • Precision-Recall Curve:

    PR Curve ID2
  • Confusion Matrix:

    Confusion Matrix ID2
  • Results:

    Results ID2

3. Segmentation with Large YOLOv11 model

  • Precision-Confidence Curve:

    P Curve ID3
  • Recall-Confidence Curve:

    R Curve ID3
  • Precision-Recall Curve:

    PR Curve ID3
  • Confusion Matrix:

    Confusion Matrix ID3
  • Results:

    Results ID3

4. Segmentation with Nano YOLOv11 model

  • Precision-Confidence Curve:

    P Curve ID4
  • Recall-Confidence Curve:

    R Curve ID4
  • Precision-Recall Curve:

    PR Curve ID4
  • Confusion Matrix:

    Confusion Matrix ID4
  • Results:

    Results ID4

Project: AutoDrive Poster Presentation

Poster Presentation Poster Presentation

Contributing

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

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Autonomous driving perception demo: YOLO-based pedestrian/vehicle detection with training/inference notebooks, dataset handling, and visual evaluation.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages