Is Heuristic Sampling Necessary in Training Deep Object Detectors?

Joya Chen, Dong Liu, Tong Xu, Shiwei Wu, Yifei Cheng +1 more
9/11/2019
13 citations
cs.CV

Official code: chenjoya/sampling-free (293 stars, Python, last commit 2021-09-03). Most starred: facebookresearch/maskrcnn-benchmark, a community implementation (9,358 stars, Python, MIT, last commit 2023-02-16, 32× the official stars). 1 more implementation below.

Abstract

To train accurate deep object detectors under the extreme foreground-background imbalance, heuristic sampling methods are always necessary, which either re-sample a subset of all training samples (hard sampling methods, \eg biased sampling, OHEM), or use all training samples but re-weight them discriminatively (soft sampling methods, \eg Focal Loss, GHM). In this paper, we challenge the necessity of such hard/soft sampling methods for training accurate deep object detectors.

Show full abstract

While previous studies have shown that training detectors without heuristic sampling methods would significantly degrade accuracy, we reveal that this degradation comes from an unreasonable classification gradient magnitude caused by the imbalance, rather than a lack of re-sampling/re-weighting. Motivated by our discovery, we propose a simple yet effective \emph{Sampling-Free} mechanism to achieve a reasonable classification gradient magnitude by initialization and loss scaling. Unlike heuristic sampling methods with multiple hyperparameters, our Sampling-Free mechanism is fully data diagnostic, without laborious hyperparameters searching. We verify the effectiveness of our method in training anchor-based and anchor-free object detectors, where our method always achieves higher detection accuracy than heuristic sampling methods on COCO and PASCAL VOC datasets. Our Sampling-Free mechanism provides a new perspective to address the foreground-background imbalance. Our code is released at \url{https://github.com/ChenJoya/sampling-free}.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
chenjoya/sampling-freeOfficial293Python–2021-09-03
facebookresearch/maskrcnn-benchmarkCommunity9,358PythonMIT2023-02-16

IEEE TIP: Is heuristic sampling necessary in training deep object detectors? Try sampling-free object detectors!

29326Python, CudaSep 11, 20195 years ago
MIT

Fast, modular reference implementation of Instance Segmentation and Object Detection algorithms in PyTorch.

9,3582,447Python, CudaOct 24, 20183 years agoMIT

Similar Papers

Cite this paper

@article{chen2019heuristic,
  title  = {Is Heuristic Sampling Necessary in Training Deep Object Detectors?},
  author = {Joya Chen and Dong Liu and Tong Xu and Shiwei Wu and Yifei Cheng and Enhong Chen},
  year   = {2019},
  eprint = {1909.04868},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.04868}
}

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/1909.04868.svg)](https://codeofpaper.com/paper/1909.04868)

Discussion