Lune

CVPR2021Top-tier venue

Generating Diverse Structure for Image Inpainting With Hierarchical VQ-VAE

Jialun Peng, Dong Liu, Songcen Xu, Houqiang Li

Abstract

Given an incomplete image without additional constraint, image inpainting natively allows for multiple solutions as long as they appear plausible. Recently, multiplesolution inpainting methods have been proposed and shown the potential of generating diverse results. However, these methods have difficulty in ensuring the quality of each solution, e.g. they produce distorted structure and/or blurry texture. We propose a two-stage model for diverse inpainting, where the first stage generates multiple coarse results each of which has a different structure, and the second stage refines each coarse result separately by augmenting texture. The proposed model is inspired by the hierarchical vector quantized variational auto-encoder (VQ-VAE), whose hierarchical architecture disentangles structural and textural information. In addition, the vector quantization in VQ-VAE enables autoregressive modeling of the discrete distribution over the structural information. Sampling from the distribution can easily generate diverse and high-quality structures, making up the first stage of our model. In the second stage, we propose a structural attention module inside the texture generation network, where the module utilizes the structural information to capture distant correlations. We further reuse the VQ-VAE to calculate two feature losses, which help improve structure coherence and texture realism, respectively. Experimental results on CelebA-HQ, Places2, and ImageNet datasets show that our method not only enhances the diversity of the inpainting solutions but also improves the visual quality of the generated multiple images. Code and models are available at: https://github.com/USTC-JialunPeng/ Diverse-Structure-Inpainting.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

51 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Contextual Residual Aggregation for Ultra High-Resolution Image Inpainting cites Free-Form Image Inpainting With Gated Convolution
  • UCTGAN: Diverse Image Inpainting Based on Unsupervised Cross-Space Translation cites Coherent Semantic Attention for Image Inpainting
  • UCTGAN: Diverse Image Inpainting Based on Unsupervised Cross-Space Translation cites StructureFlow: Image Inpainting via Structure-Aware Appearance Flow
  • UCTGAN: Diverse Image Inpainting Based on Unsupervised Cross-Space Translation cites Free-Form Image Inpainting With Gated Convolution
  • Diverse Image Inpainting with Bidirectional and Autoregressive Transformers cites UCTGAN: Diverse Image Inpainting Based on Unsupervised Cross-Space Translation
  • Diverse Image Inpainting with Bidirectional and Autoregressive Transformers cites StructureFlow: Image Inpainting via Structure-Aware Appearance Flow
  • Diverse Image Inpainting with Bidirectional and Autoregressive Transformers cites Free-Form Image Inpainting With Gated Convolution
  • Coherent Semantic Attention for Image Inpainting cites Free-Form Image Inpainting With Gated Convolution
  • Improving Diffusion Models for Inverse Problems using Manifold Constraints cites RePaint: Inpainting using Denoising Diffusion Probabilistic Models
  • StructureFlow: Image Inpainting via Structure-Aware Appearance Flow cites Free-Form Image Inpainting With Gated Convolution
  • Bridging Global Context Interactions for High-Fidelity Image Completion cites Contextual Residual Aggregation for Ultra High-Resolution Image Inpainting
  • Bridging Global Context Interactions for High-Fidelity Image Completion cites UCTGAN: Diverse Image Inpainting Based on Unsupervised Cross-Space Translation
  • Bridging Global Context Interactions for High-Fidelity Image Completion cites Free-Form Image Inpainting With Gated Convolution
  • RePaint: Inpainting using Denoising Diffusion Probabilistic Models cites UCTGAN: Diverse Image Inpainting Based on Unsupervised Cross-Space Translation
  • RePaint: Inpainting using Denoising Diffusion Probabilistic Models cites Diverse Image Inpainting with Bidirectional and Autoregressive Transformers
  • RePaint: Inpainting using Denoising Diffusion Probabilistic Models cites StructureFlow: Image Inpainting via Structure-Aware Appearance Flow
  • RePaint: Inpainting using Denoising Diffusion Probabilistic Models cites Free-Form Image Inpainting With Gated Convolution
  • TextDiffuser: Diffusion Models as Text Painters cites UCTGAN: Diverse Image Inpainting Based on Unsupervised Cross-Space Translation
  • TextDiffuser: Diffusion Models as Text Painters cites Diverse Image Inpainting with Bidirectional and Autoregressive Transformers
  • TextDiffuser: Diffusion Models as Text Painters cites StructureFlow: Image Inpainting via Structure-Aware Appearance Flow
  • TextDiffuser: Diffusion Models as Text Painters cites RePaint: Inpainting using Denoising Diffusion Probabilistic Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers51

  1. RePaint: Inpainting using Denoising Diffusion Probabilistic ModelsAndreas Lugmayr, Martin Danelljan, Andrés Romero, Fisher Yu et al.CVPR 2022 · 1,425 citations
  2. Improving Diffusion Models for Inverse Problems using Manifold ConstraintsHyungjin Chung, Byeongsu Sim, Dohoon Ryu, Jong Chul YeNeurIPS 2022 · 738 citations
  3. TextDiffuser: Diffusion Models as Text PaintersJingye Chen, Yupan Huang, Tengchao Lv, Lei Cui et al.NeurIPS 2023 · 290 citations
  4. Diverse Image Inpainting with Bidirectional and Autoregressive TransformersYingchen Yu, Fangneng Zhan, Rongliang Wu, Jianxiong Pan et al.ACM MM 2021 · 153 citations
  5. Bridging Global Context Interactions for High-Fidelity Image CompletionChuanxia Zheng, Tat-Jen Cham, Jianfei Cai, Dinh Q. PhungCVPR 2022 · 114 citations

Builds on6

  1. Free-Form Image Inpainting With Gated ConvolutionJiahui Yu, Zhe Lin, Jimei Yang, Xiaohui Shen et al.ICCV 2019 · 1,990 citations
  2. Coherent Semantic Attention for Image InpaintingHongyu Liu, Bin Jiang, Yi Xiao, Chao YangICCV 2019 · 395 citations
  3. StructureFlow: Image Inpainting via Structure-Aware Appearance FlowYurui Ren, Xiaoming Yu, Ruonan Zhang, Thomas H. Li et al.ICCV 2019 · 356 citations
  4. Contextual Residual Aggregation for Ultra High-Resolution Image InpaintingZili Yi, Qiang Tang, Shekoofeh Azizi, Daesik Jang et al.CVPR 2020
  5. UCTGAN: Diverse Image Inpainting Based on Unsupervised Cross-Space TranslationLei Zhao, Qihang Mo, Sihuan Lin, Zhizhong Wang et al.CVPR 2020

Related papers

  1. Locally Hierarchical Auto-Regressive Modeling for Image GenerationTackgeun You, Saehoon Kim, Chiheon Kim, Doyup Lee et al.NeurIPS 2022 · 17 citations
  2. Efficient-VQGAN: Towards High-Resolution Image Generation with Efficient Vision TransformersShiyue Cao, Yueqin Yin, Lianghua Huang, Yu Liu et al.ICCV 2023 · 33 citations
  3. Image Inpainting Based on Multi-frequency Probabilistic Inference ModelJin Wang, Chen Wang, Qingming Huang, Yunhui Shi et al.ACM MM 2020 · 7 citations
  4. Towards Accurate Image Coding: Improved Autoregressive Image Generation with Dynamic Vector QuantizationMengqi Huang, Zhendong Mao, Zhuowei Chen, Yongdong ZhangCVPR 2023
  5. Hierarchical Sketch Induction for Paraphrase GenerationTom Hosking, Hao Tang, Mirella LapataACL 2022
Dusk over the sea between two cliffs drawn in fine vertical lines