Delving Globally into Texture and Structure for Image Inpainting

Haipeng Liu, Yang Wang, Meng Wang, Yong Rui
9/17/2022
cs.CV
transformer-attention

Official code: htyjers/DGTS-Inpainting (31 stars, Python, Apache-2.0, last commit 2024-07-04).

Abstract

Image inpainting has achieved remarkable progress and inspired abundant methods, where the critical bottleneck is identified as how to fulfill the high-frequency structure and low-frequency texture information on the masked regions with semantics. To this end, deep models exhibit powerful superiority to capture them, yet constrained on the local spatial regions.

Show full abstract

In this paper, we delve globally into texture and structure information to well capture the semantics for image inpainting. As opposed to the existing arts trapped on the independent local patches, the texture information of each patch is reconstructed from all other patches across the whole image, to match the coarsely filled information, specially the structure information over the masked regions. Unlike the current decoder-only transformer within the pixel level for image inpainting, our model adopts the transformer pipeline paired with both encoder and decoder. On one hand, the encoder captures the texture semantic correlations of all patches across image via self-attention module. On the other hand, an adaptive patch vocabulary is dynamically established in the decoder for the filled patches over the masked regions. Building on this, a structure-texture matching attention module anchored on the known regions comes up to marry the best of these two worlds for progressive inpainting via a probabilistic diffusion process. Our model is orthogonal to the fashionable arts, such as Convolutional Neural Networks (CNNs), Attention and Transformer model, from the perspective of texture and structure information for image inpainting. The extensive experiments over the benchmarks validate its superiority. Our code is available at https://github.com/htyjers/DGTS-Inpainting.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[ACM Multimedia 2022] Delving Globally into Texture and Structure for Image Inpainting

312PythonJul 10, 20222 years agoApache-2.0

Similar Papers

Cite this paper

@article{liu2022delving,
  title  = {Delving Globally into Texture and Structure for Image Inpainting},
  author = {Haipeng Liu and Yang Wang and Meng Wang and Yong Rui},
  year   = {2022},
  eprint = {2209.08217},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.08217}
}

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

Discussion