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. 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}.
翻译:为了在极端的地表-地下失衡状态下培训精确的深物体探测器,必须始终采用超软取样方法,这种方法要么重新标本所有培训样本的一组(硬取样方法,(eg)偏差抽样,OHEM),要么使用所有培训样本,但有区别地进行重新加权(软取样方法,(eg Colleam Loss,GHM)。在本文中,我们质疑这种硬/软取样方法对于培训精确的深物体探测器的必要性。虽然以前的研究表明,没有超温采样方法的培训探测器将大大降低准确性,但我们发现,这种退化来自不合理的分类梯度,而不是由于不平衡而导致的不合理的分类梯度,而不是缺乏再采样/再加权。我们发现后,我们提出了一个简单而有效的测试样本(emph{Sampinging-Free)机制,以便通过初始化和损失规模达到合理的分类梯度。与具有多重超比度的超度采样采样方法不同,我们的免采样机制是完全的数据诊断,而没有费性高的超分度。我们核查了我们基于固定定位/固定地址/固定式检测目标的方法的有效性。