Outpainting by Queries

Kai Yao, Penglei Gao, Xi Yang, Kaizhu Huang, Jie Sun +1 more
7/12/2022
21 citations
cs.CV
transformer-attention

Official code: Kaiseem/QueryOTR (53 stars, Python, Apache-2.0, last commit 2022-11-27).

Abstract

Image outpainting, which is well studied with Convolution Neural Network (CNN) based framework, has recently drawn more attention in computer vision. However, CNNs rely on inherent inductive biases to achieve effective sample learning, which may degrade the performance ceiling.

Show full abstract

In this paper, motivated by the flexible self-attention mechanism with minimal inductive biases in transformer architecture, we reframe the generalised image outpainting problem as a patch-wise sequence-to-sequence autoregression problem, enabling query-based image outpainting. Specifically, we propose a novel hybrid vision-transformer-based encoder-decoder framework, named \textbf{Query} \textbf{O}utpainting \textbf{TR}ansformer (\textbf{QueryOTR}), for extrapolating visual context all-side around a given image. Patch-wise mode's global modeling capacity allows us to extrapolate images from the attention mechanism's query standpoint. A novel Query Expansion Module (QEM) is designed to integrate information from the predicted queries based on the encoder's output, hence accelerating the convergence of the pure transformer even with a relatively small dataset. To further enhance connectivity between each patch, the proposed Patch Smoothing Module (PSM) re-allocates and averages the overlapped regions, thus providing seamless predicted images. We experimentally show that QueryOTR could generate visually appealing results smoothly and realistically against the state-of-the-art image outpainting approaches.

View on arXivView PDF

Code Implementations(1)

Kaiseem/QueryOTROfficial100%
Apache-2.0

[ECCV2022] Official PyTorch implementation of the paper "Outpainting by Queries"

536PythonJul 11, 20224 years agoApache-2.0
eccv2022image-generationoutpaintingtransformer-architecture

Similar Papers

Cite this paper

@article{yao2022outpainting,
  title  = {Outpainting by Queries},
  author = {Kai Yao and Penglei Gao and Xi Yang and Kaizhu Huang and Jie Sun and Rui Zhang},
  year   = {2022},
  eprint = {2207.05312},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.05312v1}
}

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

Discussion