HRFormer: High-Resolution Transformer for Dense Prediction

Yuhui Yuan, Rao Fu, Lang Huang, Weihong Lin, Chao Zhang +2 more
10/18/2021
cs.CV
transformer-attention

Official code: HRNet/HRFormer (525 stars, Python, MIT, last commit 2022-10-19).

Abstract

We present a High-Resolution Transformer (HRFormer) that learns high-resolution representations for dense prediction tasks, in contrast to the original Vision Transformer that produces low-resolution representations and has high memory and computational cost. We take advantage of the multi-resolution parallel design introduced in high-resolution convolutional networks (HRNet), along with local-window self-attention that performs self-attention over small non-overlapping image windows, for improving the memory and computation efficiency.

Show full abstract

In addition, we introduce a convolution into the FFN to exchange information across the disconnected image windows. We demonstrate the effectiveness of the High-Resolution Transformer on both human pose estimation and semantic segmentation tasks, e.g., HRFormer outperforms Swin transformer by $1.3$ AP on COCO pose estimation with $50\%$ fewer parameters and $30\%$ fewer FLOPs. Code is available at: https://github.com/HRNet/HRFormer.

View on arXivView PDF

Code Implementations(1)

HRNet/HRFormerOfficial100%
MIT

[ NeurIPS2021] This is an official implementation of our paper "HRFormer: High-Resolution Transformer for Dense Prediction".

52567Python, ShellAug 12, 20214 years agoMIT
classificationhrnetpose-estimationsegmentationtransformer+1 more

Similar Papers

Cite this paper

@article{yuan2021hrformer,
  title  = {HRFormer: High-Resolution Transformer for Dense Prediction},
  author = {Yuhui Yuan and Rao Fu and Lang Huang and Weihong Lin and Chao Zhang and Xilin Chen and Jingdong Wang},
  year   = {2021},
  eprint = {2110.09408},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.09408}
}

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

Discussion