Few-shot object detection (FSOD) aims to expand an object detector for novel categories given only a few instances for training. The few training samples restrict the performance of FSOD model. Recent text-to-image generation models have shown promising results in generating high-quality images. How applicable these synthetic images are for FSOD tasks remains under-explored. This work extensively studies how synthetic images generated from state-of-the-art text-to-image generators benefit FSOD tasks. We focus on two perspectives: (1) How to use synthetic data for FSOD? (2) How to find representative samples from the large-scale synthetic dataset? We design a copy-paste-based pipeline for using synthetic data. Specifically, saliency object detection is applied to the original generated image, and the minimum enclosing box is used for cropping the main object based on the saliency map. After that, the cropped object is randomly pasted on the image, which comes from the base dataset. We also study the influence of the input text of text-to-image generator and the number of synthetic images used. To construct a representative synthetic training dataset, we maximize the diversity of the selected images via a sample-based and cluster-based method. However, the severe problem of high false positives (FP) ratio of novel categories in FSOD can not be solved by using synthetic data. We propose integrating CLIP, a zero-shot recognition model, into the FSOD pipeline, which can filter 90% of FP by defining a threshold for the similarity score between the detected object and the text of the predicted category. Extensive experiments on PASCAL VOC and MS COCO validate the effectiveness of our method, in which performance gain is up to 21.9% compared to the few-shot baseline.
翻译:少样本目标检测(FSOD)旨在通过只有少数实例的训练来扩展物体检测器用于新的类别。少量的训练样本限制了FSOD模型的性能。最近的文本到图像生成模型已经展示了高质量图像的生成能力,然而这些合成图像对于FSOD任务的应用尚未得到充分探索。本文探究了由最先进的文本到图像生成器生成的人工图像如何帮助FSOD任务。我们重点关注两个方面:(1)如何使用人工数据提高FSOD性能?(2)如何从大规模人工数据集中挑选出代表性样本?我们设计了一种基于复制-粘贴的人工数据生成过程。具体地,我们使用显著性对象检测方法检测原始生成的图像,然后根据显著图对主要目标进行最小包围盒剪裁,接着将剪裁后的目标随机粘贴到来自基础数据集的图像上。我们还研究了文本到图像生成器的输入文本和使用的人工图像数量对性能的影响。为了构建一个代表性的人工训练集,我们通过基于样本和基于聚类的方法最大化所选图像的多样性。然而,在FSOD中新类别的高假阳性(FP)率问题无法通过使用人工数据解决。因此,我们提出将零样本识别模型CLIP集成到FSOD管线中,通过定义检测到的对象和预测类别文本之间的相似度得分阈值来过滤90%的FP。在PASCAL VOC和MS COCO上广泛的实验验证了我们的方法的有效性,在少样本基线的基础上性能提高了21.9%。