Python implementation of Evolving Boxes for Fast Vehicle Detection, a paper on ICME 2017.
This project is released under the BSD 3-clause "New" or "Revised" License (details in LICENSE file). If you think our work is useful in your research, please consider citing:
@inproceedings{wang2017evolving,
title={Evolving Boxes for Fast Vehicle Detection},
author={Wang, Li and Lu, Yao and Wang, Hong and Zheng, Yingbin and Ye, Hao and Xue, Xiangyang},
booktitle={IEEE International Conference on Multimedia and Expo (ICME)},
year={2017}
}
Our implementation is based on the Faster R-CNN, please see the Requirements for helping configure your Caffe environment.
To run the demo
python tools/demo.py
Models can be seen at data/vgg16_eb_5(1-3-5)_final.caffemodel
which indicate the use of features of final convolutional layer( the 1st, 3rd and the 5th convolutional layers).
We trained and tested our model on the recent DETRAC vehicle detection dataset, you can download datasets at their website.
Training and validation datasets preparation operations can be seen at data/data_prepare/*
:
Considering the continuous frames in each directory (25 frames per seconds), we trained our model every three frames for saving traing time.
In order to prevent mistaking foreground with background, ignored regions in every picture are replaced by black occlusions.
My datasets directory structure like this:
*DATA_PATH
*Insight-MVT_Annotation_Train
*Cloudy_MVI_39931
*...
*Insight-MVT_Annotation_Test
*MVI_39031
*...
*anno
*Cloudy_MVI_39931
*...
We have four options of multi-layer feature concatenation:1-3-5(1st, 3rd and 5th convolutional layers), 3-5, 3-4-5 and only final convolutional layer.
You need replace the DATA_PATH
in experiments/scripts/train.sh
with your own dataset path
./experiments/scripts/train.sh GPU([0-9]) NET(VGG16) DATASET(detrac) HYPERNET(1-3-5/3-5/3-4-5/5)
The training models are saved under output/default/
Like Training process, you need to replace theDATA_PATH
in experiments/scripts/test.sh
:
./experiments/scripts/test.sh GPU([0-9]) NET(VGG16) DATASET(detrac) HYPERNET(1-3-5/3-5/3-4-5/5)
The testing results are saved as files in data/test_results
according to the detection submission format.
Thank you for appreciating our works.
If you have any question, please contact [email protected]