Skip to content

MinhHung7/BKAI_Hackathon_2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BKAI_Hackathon_2024

The repository for BKAI Hackathon 2024 - Traffic Vehicle Detection Track. The competition focuses solely on one task: detecting and classifying vehicle types from traffic cameras under normal or challenging conditions (nighttime, rain, glare, etc.).

The team's score is 0.79/1.0 on scoreboard. We fine-tune RCNN and DETR model for object detection task, then compare their results and choose the best result based on top mAP score and accuracy. The pipeline follows this The Traffic Vehicle Detection Pipeline

The data preprocessing

The origin dataset consists 11022 images (6392 daytime images and 4630 nighttime images). All of images is divided into 10 scenes, each scene is captured by a road camera

Examples of origin dataset

Unfortunately, the dataset is heavily imbalanced, the number of vehicles like trucks and coach is very less, but the number of motorbike and car is high, so we use data augmentation techniques to increase accuracy and learnable of models, consists flipped and copy-paste techniques.

  • The flipped techinique is used by Albumentation library.
  • The copy-paste techniques is achieved by with each scene, we find the image has the less vehicles, it mean that iamges has more space, and we will copy the image of coaches and trucks to paste into that space After augment data, we split the new dataset into 2 parts: daytime and nighttime datasets

The dataset before augment

The dataset after augment

The training

In the training phase, we use 2 pre-trained models are RCNN and DETR for object detection task, with previous data preprocessing phase, the both models achive high mAP score > 0.85. With each model, we train it on daytime and nighttime datasets, this will help the models have good recognization on difference conditions (light and no-light conditions).

  • The total time we take for daytime training is 4 hours with 20000 epochs
  • The total time we take for nighttime training is 2 hours with 10000 epochs

The inference

In the inference, we use both 2 models to detect on the test dataset, then compare the score each sample on 2 models to choose the best results with higher score

Test_predict1 Test_

About

The repository for BKAI Hackathon 2024 - Traffic Vehicle Detection Track. The competition focuses solely on one task: detecting and classifying vehicle types from traffic cameras under normal or challenging conditions (nighttime, rain, glare, etc.).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors