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.
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)
The data has been split into two groups:
- training_images folder has 1001 images in which only 355 have car in it.
- test_images folder has 175 images for testing model.
- 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'
Install missing dependencies with pip
- Train_YoloV3.ipynbis Jupyter Notebook which contains code for training YOLO v3 on Google Colab using GPU.
- Train_YoloV3.py is Python file which contains python code of 'Train_YoloV3.ipynbis' file.
- 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.
- 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.
This problem is taken from Kaggle.com I learned to use Google Colabs GPU to train YOLOv3 and object detection with OpenCV by PySource