DPT: Deformable Patch-based Transformer for Visual Recognition
Authors:
Open Access
- 17 October 2021
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 2899-2907
Abstract
Transformer has achieved great success in computer vision, while how to split patches in an image remains a problem. Existing methods usually use a fixed-size patch embedding which might destroy the semantics of objects. To address this problem, we propose a new Deformable Patch (DePatch) module which learns to adaptively split the images into patches with different positions and scales in a data-driven way rather than using predefined fixed patches. In this way, our method can well preserve the semantics in patches. The DePatch module can work as a plug-and-play module, which can easily be incorporated into different transformers to achieve an end-to-end training. We term this DePatch-embedded transformer as Deformable Patch-based Transformer (DPT) and conduct extensive evaluations of DPT on image classification and object detection. Results show DPT can achieve 81.8% top-1 accuracy on ImageNet classification, and 43.7% box AP with RetinaNet, 44.3% with Mask R-CNN on MSCOCO object detection. Code has been made available at: https://github.com/CASIA-IVA-Lab/DPT.Keywords
All Related Versions
Funding Information
- Research and Development Projects in the Key Areas of Guangdong Province (2020B010165001)
- National Natural Science Foundation of China (61772527,61976210,62002357,61876086,61806200,62002356,61633002)
This publication has 17 references indexed in Scilit:
- Non-local Neural Networks2018
- Focal Loss for Dense Object Detection2017
- Deformable Convolutional Networks2017
- Mask R-CNN2017
- Look Closer to See Better: Recurrent Attention Convolutional Neural Network for Fine-Grained Image Recognition2017
- Aggregated Residual Transformations for Deep Neural Networks2017
- Deep Residual Learning for Image Recognition2016
- Rethinking the Inception Architecture for Computer Vision2016
- ImageNet Large Scale Visual Recognition ChallengeInternational Journal of Computer Vision, 2015
- Microsoft COCO: Common Objects in Context2014