GitHunt
TA

Tanwar-12/Traffic-Sign-Detection-

Traffic sign detection involves the use of deep learning yolov5 techniques to identify and locate traffic signs in images or video streams. This is a critical component of many intelligent transportation systems, including autonomous vehicles and traffic management systems.

๐“๐‘๐€๐…๐…๐ˆ๐‚ ๐’๐ˆ๐†๐ ๐ƒ๐„๐“๐„๐‚๐“๐ˆ๐Ž๐ ๐˜๐Ž๐‹๐Ž๐•5

TF

Detect The Traffic Sign Using YoloV5

๐ƒ๐€๐“๐€ ๐‚๐Ž๐‹๐‹๐„๐‚๐“๐ˆ๐Ž๐:

Data Collected from Roboflow website.

๐“๐€๐’๐Š: ๐Ž๐›๐ฃ๐ž๐œ๐ญ ๐ƒ๐ž๐ญ๐ž๐œ๐ญ๐ข๐จ๐ง

๐ƒ๐€๐“๐€ ๐ˆ๐๐…๐Ž๐‘๐Œ๐€๐“๐ˆ๐Ž๐:

  • Total 3708 traffic sign images are present in 43 classes .
  • Total 2538 images for training and 701 images for validation present in 2 classes.
  • Create bounding boxes with the help of makesense.ai website.

    ๐“๐‘๐€๐…๐…๐ˆ๐‚ ๐’๐ˆ๐†๐

image

๐ƒ๐€๐“๐€ ๐๐‘๐„๐๐‘๐€๐“๐ˆ๐Ž๐:

  • Prepare folder structure that can be accept by YoloV5.

  • Total 3708 images for training and 352 images for validation present in 43 classes.

  • Create a bounding boxes with the help of label-img And makesense.ai website according to YoloV5.

    ๐’๐“๐„๐๐’ ๐“๐Ž ๐”๐’๐„ ๐˜๐Ž๐‹๐Ž๐•5

  • Cloning the YoloV5 file from official repository.

  • Changing the directory of yolov5

  • Installing the dependencies

  • Download all versions pre-trained weights

๐’๐“๐„๐๐’ ๐๐„๐…๐Ž๐‘๐„ ๐“๐‘๐€๐ˆ๐๐ˆ๐๐† ๐‚๐”๐’๐“๐Ž๐Œ ๐ƒ๐€๐“๐€๐’๐„๐“:

  1. Go to yolov5/data/

  2. Open coco128.yaml

  3. Edit the following inside it:

    A. Training and Validation file path

    B. Number of classes and Class names.

๐“๐‘๐€๐ˆ๐๐ˆ๐๐† ๐˜๐Ž๐‹๐Ž๐•5 ๐Œ๐Ž๐ƒ๐„๐‹:

  • Set images size 408 with batch of 8
  • Train model on 1000 epochs
  • Gives the data file path as well as give pre-trained weights path.

VISUALISE THE TRAINING METRICS WITH THE HELP OF TENSORBOARD

๐๐‘๐„๐ƒ๐ˆ๐‚๐“๐„๐ƒ ๐ˆ๐Œ๐€๐†๐„๐’:

image

๐“๐„๐’๐“ ๐•๐ˆ๐ƒ๐„๐Ž

vid.traffci.3.mp4

Languages

Jupyter Notebook100.0%

Contributors

Created July 27, 2023
Updated November 25, 2025