Skip to content

Trained YOLO v3 Deep Neural Network Model with Darknet-53 Architecture on 355 car images dataset. The average loss of 0.34 is achieved after 1222 iterations on Google Colab's GPU. OpenCV is used to load 'Trained YOLO weights' and test on new images. Able to detect and make Bounding boxes with 98.33 % Accuracy on the test set.

Notifications You must be signed in to change notification settings

ajaychouhan-nitbhopal/Car-Detection-by-Training-YOLO-v3-Model-with-Darknet-53-Architecture-and-OpenCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Car-Detection-by-Training-YOLO-v3-Algorithm-with-Using-OpenCV-and-Python

Hits

This is the code files for "Car Detection by Training YOLO v3 Algorithm with Darknet, Opencv and Python" on Car Detection dataset by Ajay Chouhan.

Overview

This is the code of Yolo v3 Algorithm which is trained on Car Detection Problem dataset. I used Google Colab's GPU to train Yolo v3. After 1222 iterations I got 0.343448 avg loss then I stopped the training.

NOTE- I reformed original dataset according to Darknet(framework used to run and train YOLO v3)

Dataset Overview

The data has been split into two groups:

  1. training_images folder has 1001 images in which only 355 have car in it.
  2. test_images folder has 175 images for testing model.
  3. train_solution_bounding_boxes (1).csv file has Bounding boxes data of abovementioned 355 images.

NOTE- I used this CSV file to generate 355 individual .TXT files, then I made ZIP file of 355 Car's images and 355 TXT files combined. (This zip file is used to train the model). Normalisation is also done for the right annotations. You can find the code for doing this process, in Repository as file named 'Code to make separated TXT files from CSV file.ipynb'

Dependencies

OpenCV

Darknet

Install missing dependencies with pip

Usage

  1. Train_YoloV3.ipynbis Jupyter Notebook which contains code for training YOLO v3 on Google Colab using GPU.
  2. Train_YoloV3.py is Python file which contains python code of 'Train_YoloV3.ipynbis' file.
  3. Code to make separated TXT files from CSV file.ipynb is jupyter notebook which contains code to generate 355 individual .TXT files for their respected images.
  4. Car Detection True Negative Result 1.JPG, Car Detection True Negative Result 2.JPG, Car Detection True Positve Result 1.JPG, Car Detection True Positve Result 2.JPG are 4 Jpeg images which I got as result.

Credits

This problem is taken from Kaggle.com I learned to use Google Colabs GPU to train YOLOv3 and object detection with OpenCV by PySource

About

Trained YOLO v3 Deep Neural Network Model with Darknet-53 Architecture on 355 car images dataset. The average loss of 0.34 is achieved after 1222 iterations on Google Colab's GPU. OpenCV is used to load 'Trained YOLO weights' and test on new images. Able to detect and make Bounding boxes with 98.33 % Accuracy on the test set.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published