HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Region-Aware Pretraining for Open-Vocabulary Object Detection with Vision Transformers

Dahun Kim; Anelia Angelova; Weicheng Kuo

Region-Aware Pretraining for Open-Vocabulary Object Detection with Vision Transformers

Abstract

We present Region-aware Open-vocabulary Vision Transformers (RO-ViT) - a contrastive image-text pretraining recipe to bridge the gap between image-level pretraining and open-vocabulary object detection. At the pretraining phase, we propose to randomly crop and resize regions of positional embeddings instead of using the whole image positional embeddings. This better matches the use of positional embeddings at region-level in the detection finetuning phase. In addition, we replace the common softmax cross entropy loss in contrastive learning with focal loss to better learn the informative yet difficult examples. Finally, we leverage recent advances in novel object proposals to improve open-vocabulary detection finetuning. We evaluate our full model on the LVIS and COCO open-vocabulary detection benchmarks and zero-shot transfer. RO-ViT achieves a state-of-the-art 34.1 $AP_r$ on LVIS, surpassing the best existing approach by +7.8 points in addition to competitive zero-shot transfer detection. Surprisingly, RO-ViT improves the image-level representation as well and achieves the state of the art on 9 out of 12 metrics on COCO and Flickr image-text retrieval benchmarks, outperforming competitive approaches with larger models.

Code Repositories

Benchmarks

BenchmarkMethodologyMetrics
open-vocabulary-object-detection-on-lvis-v1-0RO-ViT
AP novel-LVIS base training: 32.1
zero-shot-cross-modal-retrieval-on-coco-2014RO-ViT
Image-to-text R@1: 68.9
Image-to-text R@10: 92.2
Image-to-text R@5: 87.8
Text-to-image R@1: 51.8
Text-to-image R@10: 83.0
Text-to-image R@5: 75.0
zero-shot-cross-modal-retrieval-on-flickr30kRO-ViT
Image-to-text R@1: 92.1
Image-to-text R@10: 99.7
Image-to-text R@5: 99.4
Text-to-image R@1: 80.7
Text-to-image R@10: 97.7
Text-to-image R@5: 96.1

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp