Example: biology

arXiv:2012.07177v2 [cs.CV] 23 Jun 2021

Simple Copy-Paste is a Strong Data Augmentation Methodfor Instance SegmentationGolnaz Ghiasi*1 Yin Cui*1 Aravind Srinivas* 1,2 Rui Qian 1,3 Tsung-Yi Lin1 Ekin D. Cubuk1 Quoc V. Le1 Barret Zoph11 Google Research, Brain Team2UC Berkeley3 Cornell UniversityAbstractBuilding instance segmentation models that are data-efficient and can handle rare object categories is animportant challenge in computer vision. Leveraging dataaugmentations is a promising direction towards addressingthis challenge. Here, we perform a systematic study ofthe Copy-Paste augmentation ( , [13, 12]) for instancesegmentation where we randomly paste objects onto animage. Prior studies on Copy-Paste relied on modeling thesurrounding visual context for pasting the objects.

is additive with semi-supervised methods that leverage extra data through pseudo labeling (e.g. self-training). On COCO instance segmentation, we achieve 49.1 mask AP and 57.3 box AP, an improvement of +0.6 mask AP and +1.5 box AP over the previous state-of-the-art. We further demonstrate that Copy-Paste can lead to significant

Tags:

  Additives

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of arXiv:2012.07177v2 [cs.CV] 23 Jun 2021

1 Simple Copy-Paste is a Strong Data Augmentation Methodfor Instance SegmentationGolnaz Ghiasi*1 Yin Cui*1 Aravind Srinivas* 1,2 Rui Qian 1,3 Tsung-Yi Lin1 Ekin D. Cubuk1 Quoc V. Le1 Barret Zoph11 Google Research, Brain Team2UC Berkeley3 Cornell UniversityAbstractBuilding instance segmentation models that are data-efficient and can handle rare object categories is animportant challenge in computer vision. Leveraging dataaugmentations is a promising direction towards addressingthis challenge. Here, we perform a systematic study ofthe Copy-Paste augmentation ( , [13, 12]) for instancesegmentation where we randomly paste objects onto animage. Prior studies on Copy-Paste relied on modeling thesurrounding visual context for pasting the objects.

2 How-ever, we find that the simple mechanism of pasting objectsrandomly is good enough and can provide solid gains ontop of strong baselines. Furthermore, we show Copy-Pasteis additive with semi-supervised methods that leverageextra data through pseudo labeling ( self-training).On COCO instance segmentation, we achieve maskAP and box AP, an improvement of + mask APand + box AP over the previous state-of-the-art. Wefurther demonstrate that Copy-Paste can lead to significantimprovements on the LVIS benchmark. Our baseline modeloutperforms the LVIS 2020 Challenge winning entry by+ mask AP on rare IntroductionInstance segmentation [22, 10] is an important task incomputer vision with many real world applications.

3 In-stance segmentation models based on state-of-the-art con-volutional networks [11, 57, 67] are often the same time, annotating large datasets for instancesegmentation [40, 21] is usually expensive and time-consuming. For example, 22 worker hours were spent per*Equal contribution. Correspondence to: Work done during an internship at Google and checkpoints for our models are available of COCO Dataset20253035404550 COCO Box APStandard Aug. + Copy-PasteFigure 1. Data-efficiency on the COCO benchmark: Combiningthe Copy-Paste augmentation along with Strong Aug. (large scalejittering) allows us to train models that are up to 2 more data-efficient than Standard Aug. (standard scale jittering). The aug-mentations are highly effective and provide gains of +10 AP inthe low data regime (10% of data) while still being effective in thehigh data regime with a gain of +5 AP.

4 Results are for Mask R-CNN EfficientNet-B7 FPN trained on an image size of 640 instance masks for COCO [40]. It is therefore impera-tive to develop new methods to improve the data-efficiencyof state-of-the-art instance segmentation , we focus on data augmentation [50] as a simpleway to significantly improve the data-efficiency of instancesegmentation models. Although many augmentation meth-ods such as scale jittering and random resizing have beenwidely used [26, 25, 20], they are more general-purposein nature and have not been designed specifically for in-stance segmentation. An augmentation procedure that ismoreobject-aware, both in terms of category and shape,is likely to be useful for instance segmentation. The Copy-Paste augmentation [13, 12, 15] is well suited for this pasting diverse objects of various scales to new back-ground images, Copy-Paste has the potential to create chal-lenging and novel training data for [ ] 23 Jun 2021 Figure 2.

5 We use a simple copy and paste method to create new images for training instance segmentation models. We apply random scalejittering on two random training images and then randomly select a subset of instances from one image to paste onto the other key idea behind the Copy-Paste augmentation is topaste objects from one image to another image. This canlead to acombinatorialnumber of new training data, withmultiple possibilities for: (1) choices of the pair of sourceimage from which instances are copied, and the target im-age on which they are pasted; (2) choices of object instancesto copy from the source image; (3) choices of where to pastethe copied instances on the target image. The large varietyof options when utilizing this data augmentation method al-lows for lots of exploration on how to use the techniquemost effectively.

6 Prior work [12, 15] adopts methods for de-ciding where to paste the additional objects by modeling thesurrounding visual context. In contrast, we find that a sim-ple strategy of randomly picking objects and pasting them atrandom locations on the target image provides a significantboost on top of baselines across multiple settings. Specif-ically, it gives solid improvements across a wide range ofsettings with variability in backbone architecture, extent ofscale jittering, training schedule and image combination with large scale jittering, we show thatthe Copy-Paste augmentation results in significant gains inthe data-efficiency on COCO (Figure 1). In particular, wesee a data-efficiency improvement of 2 over the com-monly used standard scale jittering data augmentation.

7 Wealso observe a gain of +10 Box AP on the low-data regimewhen using only 10% of the COCO training then show that the Copy-Paste augmentation strategyprovides additional gains with self-training [44, 73] whereinwe extract instances from ground-truth data and paste themonto unlabeled data annotated with pseudo-labels. Usingan EfficientNet-B7 [56] backbone and NAS-FPN [17] ar-chitecture, we achieve Box AP and Mask AP onCOCO test-devwithout test-time augmentations. Thisresult surpasses the previous state-of-the-art instance seg-mentation models such as SpineNet [11] ( mask AP)and DetectoRS ResNeXt-101-64x4d with test time aug-mentation [43] ( mask AP). The performance also sur-passes state-of-the-art bounding box detection results ofEfficientDet-D7x-1536 [57] ( box AP) and YOLOv4-P7-1536 [61] ( box AP) despite using a smaller imagesize of 1280 instead of , we show that the Copy-Paste augmentation re-sults in better features for the two-stage training proceduretypically used in the LVIS benchmark [21].

8 Using Copy-Paste we get improvements of and mask AP on therare and common categories, Copy-Paste augmentation strategy is easy to pluginto any instance segmentation codebase, can utilize un-labeled images effectively and does not create training orinference overheads. For example, our experiments withMask-RCNN show that we can drop Copy-Paste into itstraining, and without any changes, the results can be eas-ily improved, , by + AP for 48 Related WorkData to the volume of workon backbone architectures [35, 51, 53, 27, 56] and detec-tion/segmentation frameworks [19, 18, 47, 38, 26, 39], rel-atively less attention is paid to data augmentations [50]in the computer vision community. Data augmentationssuch as random crop [36, 35, 51, 53], color jittering [53],Auto/RandAugment [6, 7] have played a big role in achiev-ing state-of-the-art results on image classification [27, 56],self-supervised learning [28, 24, 5] and semi-supervisedlearning [64] on the ImageNet [48] benchmark.

9 Theseaugmentations are more general purpose in nature and aremainly used for encodinginvariances to data transforma-tions, a principle well suited for image classification [48].Mixing Image contrast to augmenta-tions that encode invariances to data transformations, thereexists a class of augmentations that mix the informationcontained in different images with appropriate changes togroundtruth labels. A classic example is the mixup dataaugmentation [66] method which creates new data pointsfor free from convex combinations of the input pixels andthe output labels. There have been adaptations of mixupsuch as CutMix [65] that pastes rectangular crops of an im-age instead of mixing all pixels. There have also been appli-cations of mixup and CutMix to object detection [69].

10 TheMosaic data augmentation method employed in YOLO-v4 [1] is related to CutMix in the sense that one creates anew compound image that is a rectangular grid of multi-ple individual images along with their ground truths. Whilemixup, CutMix and Mosaic are useful in combining multi-ple images or their cropped versions to create new trainingdata, they are still notobject-awareand have not been de-signed specifically for the task of instance simple way to combine in-formation from multiple images in anobject-awaremanneris to copy instances of objects from one image and pastethem onto another image. Copy-Paste is akin to mixup andCutMix but only copying the exact pixels corresponding toan object as opposed to all pixels in the object s boundingbox.