Skip to content

Repository files navigation

Vehicle Detection

Vehicle Detection Using Deep Learning and YOLO Algorithm.

(Train YOLO v5 on a Custom Dataset)

Dataset

take or find vehicle images for create a special dataset for fine-tuning.

Train : 70%

Validition : 20%

Test : 10%

Clone Vehicle-Detection Repository

cd Vehicle-Detection
pip install -r requirements.txt

wandb

to have mAP, loss, confusion matrix, and other metrics, sign in www.wandb.ai.

pip install wandb

Train

fine-tuning on a pre-trained model of yolov5.

python train.py --img 640 --batch 16 --epochs 50 --data dataset.yaml --weights yolov5m.pt

Test

after train, gives you weights of train and you should use them for test.

python detect.py --weights runs/train/exp12/weights/best.pt --source test_images/imtest13.JPG

you can also use the weight file in path 'runs/train/exp12/weights/best.pt' without the train. this weight is the result of 128 epoch train on the following dataset.

My Vehicle Dataset

https://b2n.ir/vehicleDataset

Team Members

1. Keval Ravani - Team & Programming Lead
2. Parthvi Rathod - Research & Development lead
3. Jay Rajodiya - Programming Analyst
4. Sneha Ramudu - Research & Documentation Analyst
5. Yashasvi Jain - Supporting  Research Analyst

About

This vehicle identification project utilizes the YOLOv5 deep learning model for detecting and classifying vehicles from images, videos, and live streams. It supports real-time inference, saving outputs with bounding boxes, confidence scores, and class labels, making it ideal for traffic monitoring and smart surveillance systems.

Topics

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages