Don't Look into the Dark: Latent Codes for Pluralistic Image Inpainting

Haiwei Chen, Yajie Zhao
3/1/2024

No official code found. Best implementation: nintendops/latent-code-inpainting (43 stars, MIT, last commit 2024-07-02).

Abstract

We present a method for large-mask pluralistic image in-painting based on the generative framework of discrete latent codes. Our method learns latent priors, discretized as tokens, by only performing computations at the visible locations of the image. This is realized by a restrictive partial encoder that predicts the token label for each visible block, a bidirectional transformer that infers the missing labels by only looking at these tokens, and a dedicated synthesis network that couples the tokens with the partial image priors to generate coherent and pluralistic complete image even under extreme mask settings. Experiments on public benchmarks validate our design choices as the proposed method outperforms strong baselines in both visual quality and diversity metrics.

View on arXivView PDF

Code Implementations(1)

MIT

PyTorch implementation for the paper Don't Look into the Dark: Latent Codes for Pluralistic Image Inpainting (CVPR2024).

436C++, CudaMay 15, 20242 years agoMIT

Similar Papers

Cite this paper

@article{chen2024dont,
  title  = {Don't Look into the Dark: Latent Codes for Pluralistic Image Inpainting},
  author = {Haiwei Chen and Yajie Zhao},
  year   = {2024},
  eprint = {2403.18186},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2403.18186},
  journal = {CVPR 2024 2024}
}

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

Discussion