Skip to content

Dghitman/TipsTricks_Project_TrLights

Repository files navigation

TipsTricks-Project-TrLights


Article on databases: https://www.researchgate.net/publication/327808220_The_DriveU_Traffic_Light_Dataset_Introduction_and_Comparison_with_Existing_Datasets

Results

Faster R-CNN FPN on Lisa dataset, 3 epochs, batch = 16, LR_on_plateau, Adam
https://drive.google.com/file/d/1h7PfPPYH8ZyR1egjDF1vl0-83aseZHR-/view?usp=sharing
Performance on test video: https://drive.google.com/file/d/1F-1yy4BSjNHT75andGyOidVUf_m__CGx/view?usp=sharing

Faster R-CNN on Lisa+Bosch datasets, 8k+8k photos, 3 epochs
https://drive.google.com/file/d/1RiIs1-aqPIEr4a_EP64SnuQvvmZNubeP/view?usp=sharing
Perfomance on test video: https://drive.google.com/file/d/12P5xmOzrwSSlhCHv7AHcfIB0U6CP6A11/view?usp=sharing

8 epochs with Bosch, Lisa and S2TLD datasets
https://drive.google.com/file/d/1zrfmFG5lz84of6Ul7e0USBSlIyzdm2ZX/view?usp=sharing

Detection at night
https://drive.google.com/file/d/16lRq48L-5rzCxDWzMRgPQ5FR5rmwFm-4/view?usp=sharing

Some info

We used Faster RCNN to find traffic lights on video. Training data consists of LISA, Bosch and S2TLD datasets. You can find links for this datasets in "useful links" file. The code with downloading all datasets is in Datasets.ipynb file.

Our task was to find traffic lights only at daytime thus we didn't use night data. Although you can find some expirements with night data in "Detection/" directory (Night model training.ipynb).

Faster RCNN gives very good results in finding traffic lights but one main downside is speed. So, since Faster RCNN is not fast enough to find boxes for each frame, we processed only each 4-th frame. Results may not be as accurate but the speed significantly increases. Also there's no much need in finding accurate position of a traffic lights (as we only care if we can move or not at the moment) and the difference in update time for boxes almost can not be caught by a human eye (0.012 sec instead of 0.003 sec for a 30 fps video)

Experiments

The experiments included attempts to use the Yolo model and the transformer DETR. It was especially interesting to test the second approach because the transformer architecture for images is a new idea, and a paper with it was published on May 28th, 2020 (https://arxiv.org/abs/2005.12872). We managed to detect traffic lights, i.e. one class using this network (DETR experiment.ipynb). With YOLO there were difficulties primarily with the interaction with google colab. Many settings for successful operation of this network are Linux-friendly, which was not available to us.
Thus, the Faster R-CNN architecture with the FPN backbone was used in this paper. You can read more about its work in the following article: https://jonathan-hui.medium.com/understanding-feature-pyramid-networks-for-object-detection-fpn-45b227b9106c. For convenience we have created a brief and informal description of all neural networks available to us, this file was meant only for each other to facilitate understanding of the architectures: Architectures.pdf.

Every file with .py extension is in pep8 format and contains the main component from final .ipynb file.

resize.py
configuration.py
transforms.py
dataloaders.py
model_training.py
inference.py

You can find final .ipynb file in "/Detection" folder (The final code of training the model.ipynb.) . ALso this folder contains some of our expirements.

About

bla bla lba

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors