Skip to content

Latest commit

 

History

History
65 lines (40 loc) · 2 KB

File metadata and controls

65 lines (40 loc) · 2 KB

Driver Behavior Detection using YOLOv10

This repository contains code and resources for detecting driver behaviors using the YOLOv10 object detection model. The dataset used for training is sourced from Roboflow, containing images labeled with three classes: mobile phone, seatbelt, and cigarette.

Overview

The objective of this project is to detect and classify specific driver behaviors that could be indicators of risky driving. By using YOLOv10, we aim to create an efficient and accurate model capable of real-time detection.

Dataset

  • Source: Roboflow
  • Total Images: 9,901
  • Classes:
    • Mobile Phone
    • Seatbelt
    • Cigarette

Model

Setup and Installation

Prerequisites

  • Python 3.10 or later
  • PyTorch (version compatible with your CUDA setup)
  • Other dependencies listed in requirements.txt

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/Driver-Behavior-Detection-using-YOLOv10.git
    cd Driver-Behavior-Detection-using-YOLOv10
  2. Create and activate a virtual environment::

    python -m venv
    venv source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  3. Install the required dependencies::

    pip install -r requirements.txt

Results

The trained YOLOv10 model achieves an overall mAP50 of 0.616 on a test dataset containing 2,393 images across three classes: mobile phone, seatbelt, and cigarette.

Acknowledgements

  • Thanks to Roboflow for providing the dataset.
  • Special thanks to Ultralytics for their implementation of YOLOv10.

Contact

For any inquiries or feedback, feel free to reach out: