This code is provided a modified Faster R-CNN for FIR pedestrians detection on SCUT Dataset.
The code RPN in this repo is written based on the MATLAB implementation of RPN+BF. Details about RPN+BF in: zhangliliang/RPN_BF.
The code external/code3.2.1
and external/toolbox
is clone from SCUT-CV/SCUT_FIR_Pedestrian_Dataset which is based on Caltech dataset tool and Piotr's Image & Video Matlab Toolbox. Detials about Piotr’s Toolbox are in:pdollar/toolbox.
The SCUT FIR Pedestrians Dataset is a large far infrared pedestrian detection dataset. Detials about SCUT dataset are in: SCUT-CV.
- ubuntu (16.04 64bit)
- MATLAB (our is MATLAB 2016b)
- GPU: 1080ti or better
-
Clone the TFRCN reposityory
git clone --recursive https://github.com/xzhewei/TFRCN.git
-
Build Caffe
In
./external/caffe
directory, there is our used caffe version. Follow the instruction to set up the prerequisites for Caffe. Usemake matcaffe
Build the mex file. -
Download the SCUT Dataset
- Download the SCUT Dataset the videos into
./external/code3.2.1/data-scut/videos
directory - Download the SCUT Dataset the annotations into
./external/code3.2.1/data-scut/annotations
directory
- Download the SCUT Dataset the videos into
-
Download the VGG-16 pretrain model in
VGG16_pretrain.zip
from BaiduYun or GoogleDrive, and unzip it in the repo folder. -
RUN
./startup()
and./tfrcn_build()
-
Start MATLAB from the repo folder
-
Training data preparation
Extract image and annotation file into
./datasets
extract_img_anno_scut('./external/code3.2.1/data-scut','./datasets/scut/')
-
Run
script_tfrcn_train_scut
to train and test the TFRCN model on SCUT. The result will auto copy into./external/code3.2.1/data-scut/res
-
Run
dbEval_scut
, it would give the evaluation results on SCUT. The Reasonable MR is ~10%, Overall MR is ~33%.