Rethinking Training from Scratch for Object Detection

Yang Li, Hong Zhang, Yu Zhang
6/6/2021
cs.CV
transformer-attention

Official code: wxzs5/direct-pretraining (22 stars, Python, Apache-2.0, last commit 2021-06-08).

Abstract

The ImageNet pre-training initialization is the de-facto standard for object detection. He et al. found it is possible to train detector from scratch(random initialization) while needing a longer training schedule with proper normalization technique.

Show full abstract

In this paper, we explore to directly pre-training on target dataset for object detection. Under this situation, we discover that the widely adopted large resizing strategy e.g. resize image to (1333, 800) is important for fine-tuning but it's not necessary for pre-training. Specifically, we propose a new training pipeline for object detection that follows `pre-training and fine-tuning', utilizing low resolution images within target dataset to pre-training detector then load it to fine-tuning with high resolution images. With this strategy, we can use batch normalization(BN) with large bath size during pre-training, it's also memory efficient that we can apply it on machine with very limited GPU memory(11G). We call it direct detection pre-training, and also use direct pre-training for short. Experiment results show that direct pre-training accelerates the pre-training phase by more than 11x on COCO dataset while with even +1.8mAP compared to ImageNet pre-training. Besides, we found direct pre-training is also applicable to transformer based backbones e.g. Swin Transformer. Code will be available.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Fast and accurate pipeline for training object detector

221Python, ShellJun 4, 20215 years agoApache-2.0

Similar Papers

Cite this paper

@article{li2021rethinking,
  title  = {Rethinking Training from Scratch for Object Detection},
  author = {Yang Li and Hong Zhang and Yu Zhang},
  year   = {2021},
  eprint = {2106.03112},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.03112}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.03112.svg)](https://codeofpaper.com/paper/2106.03112)

Discussion