Object-Aware Cropping for Self-Supervised Learning

Shlok Mishra, Anshul Shah, Ankan Bansal, Abhyuday Jagannatha, Janit Anjaria +3 more
12/1/2021
cs.CVcs.LG
contrastive-ssl

Official code: shlokk/object-cropping-ssl (18 stars, Python, last commit 2023-02-14).

Abstract

A core component of the recent success of self-supervised learning is cropping data augmentation, which selects sub-regions of an image to be used as positive views in the self-supervised loss. The underlying assumption is that randomly cropped and resized regions of a given image share information about the objects of interest, which the learned representation will capture.

Show full abstract

This assumption is mostly satisfied in datasets such as ImageNet where there is a large, centered object, which is highly likely to be present in random crops of the full image. However, in other datasets such as OpenImages or COCO, which are more representative of real world uncurated data, there are typically multiple small objects in an image. In this work, we show that self-supervised learning based on the usual random cropping performs poorly on such datasets. We propose replacing one or both of the random crops with crops obtained from an object proposal algorithm. This encourages the model to learn both object and scene level semantic representations. Using this approach, which we call object-aware cropping, results in significant improvements over scene cropping on classification and object detection benchmarks. For example, on OpenImages, our approach achieves an improvement of 8.8% mAP over random scene-level cropping using MoCo-v2 based pre-training. We also show significant improvements on COCO and PASCAL-VOC object detection and segmentation tasks over the state-of-the-art self-supervised learning approaches. Our approach is efficient, simple and general, and can be used in most existing contrastive and non-contrastive self-supervised learning frameworks.

View on arXivView PDF

Code Implementations(1)

This repo contains the code for the paper "Object-cropping for SSL".

181Python, ShellJul 19, 20213 years ago

Similar Papers

Cite this paper

@article{mishra2021objectaware,
  title  = {Object-Aware Cropping for Self-Supervised Learning},
  author = {Shlok Mishra and Anshul Shah and Ankan Bansal and Abhyuday Jagannatha and Janit Anjaria and Abhishek Sharma and David Jacobs and Dilip Krishnan},
  year   = {2021},
  eprint = {2112.00319},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.00319}
}

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

Discussion