Query-guided Attention in Vision Transformers for Localizing Objects Using a Single Sketch

03/15/2023
by   Aditay Tripathi, et al.
0

In this work, we investigate the problem of sketch-based object localization on natural images, where given a crude hand-drawn sketch of an object, the goal is to localize all the instances of the same object on the target image. This problem proves difficult due to the abstract nature of hand-drawn sketches, variations in the style and quality of sketches, and the large domain gap existing between the sketches and the natural images. To mitigate these challenges, existing works proposed attention-based frameworks to incorporate query information into the image features. However, in these works, the query features are incorporated after the image features have already been independently learned, leading to inadequate alignment. In contrast, we propose a sketch-guided vision transformer encoder that uses cross-attention after each block of the transformer-based image encoder to learn query-conditioned image features leading to stronger alignment with the query sketch. Further, at the output of the decoder, the object and the sketch features are refined to bring the representation of relevant objects closer to the sketch query and thereby improve the localization. The proposed model also generalizes to the object categories not seen during training, as the target image features learned by our method are query-aware. Our localization framework can also utilize multiple sketch queries via a trainable novel sketch fusion strategy. The model is evaluated on the images from the public object detection benchmark, namely MS-COCO, using the sketch queries from QuickDraw! and Sketchy datasets. Compared with existing localization methods, the proposed approach gives a 6.6% and 8.0% improvement in mAP for seen objects using sketch queries from QuickDraw! and Sketchy datasets, respectively, and a 12.2% improvement in AP@50 for large objects that are `unseen' during training.

READ FULL TEXT

page 1

page 4

page 7

research
08/14/2020

Sketch-Guided Object Localization in Natural Images

We introduce the novel problem of localizing all the instances of an obj...
research
12/01/2022

Multimodal Query-guided Object Localization

Consider a scenario in one-shot query-guided object localization where n...
research
09/24/2021

Localizing Infinity-shaped fishes: Sketch-guided object localization in the wild

This work investigates the problem of sketch-guided object localization ...
research
04/02/2023

Sketch-based Video Object Localization

We introduce Sketch-based Video Object Localization (SVOL), a new task a...
research
08/20/2022

Fuse and Attend: Generalized Embedding Learning for Art and Sketches

While deep Embedding Learning approaches have witnessed widespread succe...
research
05/09/2022

I Know What You Draw: Learning Grasp Detection Conditioned on a Few Freehand Sketches

In this paper, we are interested in the problem of generating target gra...
research
10/25/2022

A Comparative Attention Framework for Better Few-Shot Object Detection on Aerial Images

Few-Shot Object Detection (FSOD) methods are mainly designed and evaluat...

Please sign up or login with your details

Forgot password? Click here to reset