Skip to content

A simple autonomous driving implementation using python and jupyter notebook

License

Notifications You must be signed in to change notification settings

rifatrakib/car-detection

Repository files navigation

More on Machine Learning & Deep Learning

Find more of my deep learning models on the following links:

More ML/DL models in the following links:

Car Detection

A simple autonomous driving implementation using python and jupyter notebook. In this notebook, you will learn about object detection using the very powerful YOLO model. Many of the ideas in this notebook are described in the two YOLO papers:

Redmon et al., 2016 and Redmon and Farhadi, 2016.

Important

Please download the dataset from the following link, and put it in the model_data folder. Download Dataset

This project deals with:

  • Use object detection on a car detection dataset using YOLO algorithm.
  • Deal with bounding boxes.
  • YOLO is a state-of-the-art object detection model that is fast and accurate.
  • It runs an input image through a CNN which outputs a 19x19x5x85 dimensional volume.
  • The encoding can be seen as a grid where each of the 19x19 cells contains information about 5 boxes.
  • You filter through all the boxes using non-max suppression. Specifically:
    • Score thresholding on the probability of detecting a class to keep only accurate (high probability) boxes
    • Intersection over Union (IoU) thresholding to eliminate overlapping boxes.
  • Because training a YOLO model from randomly initialized weights is non-trivial and requires a large dataset as well as lot of computation, we used previously trained model parameters in this notebook.

References:

The ideas presented in this notebook came primarily from the two YOLO papers. The implementation here also took significant inspiration and used many components from Allan Zelener's GitHub repository. The pre-trained weights used in this exercise came from the official YOLO website.

The Drive.ai Sample Dataset (provided by drive.ai) is licensed under a Creative Commons Attribution 4.0 International License. We are grateful to Brody Huval, Chih Hu and Rahul Patel for providing this data.

About

A simple autonomous driving implementation using python and jupyter notebook

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published