HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Bridging Global Context Interactions for High-Fidelity Image Completion

Chuanxia Zheng Tat-Jen Cham Jianfei Cai Dinh Phung

Bridging Global Context Interactions for High-Fidelity Image Completion

Abstract

Bridging global context interactions correctly is important for high-fidelity image completion with large masks. Previous methods attempting this via deep or large receptive field (RF) convolutions cannot escape from the dominance of nearby interactions, which may be inferior. In this paper, we propose to treat image completion as a directionless sequence-to-sequence prediction task, and deploy a transformer to directly capture long-range dependence in the encoder. Crucially, we employ a restrictive CNN with small and non-overlapping RF for weighted token representation, which allows the transformer to explicitly model the long-range visible context relations with equal importance in all layers, without implicitly confounding neighboring tokens when larger RFs are used. To improve appearance consistency between visible and generated regions, a novel attention-aware layer (AAL) is introduced to better exploit distantly related high-frequency features. Overall, extensive experiments demonstrate superior performance compared to state-of-the-art methods on several datasets.

Code Repositories

lyndonzheng/TFill
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
image-inpainting-on-ffhq-512-x-512TFill
FID: 3.50
image-inpainting-on-places2-1TFill (20-50% free-form)
FID: 22.13
image-inpainting-on-places2-valTFill (20-30% free form)
FID: 15.2
PD: 87.2

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp