Home

Awesome

Training-Time-Friendly Network for Real-Time Object Detection

The code for implementing the TTFNet (Accepted to AAAI2020).

image-20190807160835333

Highlights

Performances

<img src="imgs/table2.png" alt="Table" width=300 />

Table

TT stands for training time. * indicates that the result is not presented in the original paper. fast stands for the super-fast version and 10x stands for the long-training version.

All the training time is measured on 8 GTX 1080Ti, and all the inference speed is measured using converged models on 1 GTX 1080Ti. Note that the training time does not include the time consumed by evaluation.

Installation

Our TTFNet is based on mmdetection. Please check INSTALL.md for installation instructions, and you may want to see the original README.md. We will submit a pull request soon.

Note that the darknet part was transplanted (i.e., MXNet => Pytorch) from another toolbox Gluoncv. In addition, portions of the code are borrowed from CornerNet and CenterNet. Thanks for their work !

Inference

We provide the following converged models.

ModelTraining HoursFPSAP(minival)Link
TTFNet-18 (1x)1.8112.225.9Download
TTFNet-18 (2x)3.6112.328.1Download
TTFNet-18 (no-pretrain 10x)-121.030.3Download
TTFNet-18 (10x)-113.631.8Download
TTFNet-34 (2x)4.186.631.3Download
TTFNet-34 (no-pretrain 10x)-89.233.2Download
TTFNet-34 (10x)-88.435.3Download
TTFNet-53 (1x)3.154.832.9Download
TTFNet-53 (2x)6.154.435.1Download
TTFNet-53 (no-pretrain 10x)-57.236.2Download
TTFNet-53 (10x)30.657.039.3Download

We also provide the pretrained Darknet53 and DLA-34 here.

The following command will evaluate converged TTFNet-53 on 8 GPUs:

./tools/dist_test.sh configs/ttfnet/ttfnet_d53_2x.py /path/to/the/checkpoint 8

Training

The following commands will train TTFNet-18 on 8 GPUs for 24 epochs and TTFNet-53 on 8 GPUs for 12 epochs:

./tools/dist_train.sh configs/ttfnet/ttfnet_r18_2x.py 8
./tools/dist_train.sh configs/ttfnet/ttfnet_d53_1x.py 8

Citations

Please consider citing our paper in your publications if the project helps your research. BibTeX reference is as follows.

@article{liu2019training,
  title   = {Training-Time-Friendly Network for Real-Time Object Detection},
  author  = {Zili Liu, Tu Zheng, Guodong Xu, Zheng Yang, Haifeng Liu, Deng Cai},
  journal = {arXiv preprint arXiv:1909.00700},
  year    = {2019}
}