T-former: An Efficient Transformer for Image Inpainting

Ye Deng, Siqi Hui, Sanping Zhou, Deyu Meng, Jinjun Wang
5/12/2023
cs.CV

Official code: dengyecode/T-former_image_inpainting (30 stars, MIT, last commit 2023-06-25). 1 more implementation below.

Abstract

Benefiting from powerful convolutional neural networks (CNNs), learning-based image inpainting methods have made significant breakthroughs over the years. However, some nature of CNNs (e.g. local prior, spatially shared parameters) limit the performance in the face of broken images with diverse and complex forms. Recently, a class of attention-based network architectures, called transformer, has shown significant performance on natural language processing fields and high-level vision tasks. Compared with CNNs, attention operators are better at long-range modeling and have dynamic weights, but their computational complexity is quadratic in spatial resolution, and thus less suitable for applications involving higher resolution images, such as image inpainting. In this paper, we design a novel attention linearly related to the resolution according to Taylor expansion. And based on this attention, a network called $T$-former is designed for image inpainting. Experiments on several benchmark datasets demonstrate that our proposed method achieves state-of-the-art accuracy while maintaining a relatively low number of parameters and computational complexity. The code can be found at \href{https://github.com/dengyecode/T-former_image_inpainting}{github.com/dengyecode/T-former\_image\_inpainting}

View on arXivView PDF

Code Implementations(2)

MIT
304PythonJul 9, 20223 years agoMIT
MIT

Code for the paper titled "Sparse Self-Attention Transformer for Image Inpainting".

283PythonJun 14, 20238 months agoMIT

Similar Papers

Cite this paper

@article{deng2023tformer,
  title  = {T-former: An Efficient Transformer for Image Inpainting},
  author = {Ye Deng and Siqi Hui and Sanping Zhou and Deyu Meng and Jinjun Wang},
  year   = {2023},
  eprint = {2305.07239},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.07239v2}
}

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

Discussion