Generating natural images with direct Patch Distributions Matching

Ariel Elnekave, Yair Weiss
3/22/2022
42 citations
cs.CV

Official code: ariel415el/GPDM (69 stars, Python, Apache-2.0, last commit 2024-05-23). 1 more implementation below.

Abstract

Many traditional computer vision algorithms generate realistic images by requiring that each patch in the generated image be similar to a patch in a training image and vice versa. Recently, this classical approach has been replaced by adversarial training with a patch discriminator.

Show full abstract

The adversarial approach avoids the computational burden of finding nearest neighbors of patches but often requires very long training times and may fail to match the distribution of patches. In this paper we leverage the recently developed Sliced Wasserstein Distance and develop an algorithm that explicitly and efficiently minimizes the distance between patch distributions in two images. Our method is conceptually simple, requires no training and can be implemented in a few lines of codes. On a number of image generation tasks we show that our results are often superior to single-image-GANs, require no training, and can generate high quality images in a few seconds. Our implementation is available at https://github.com/ariel415el/GPDM

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
ariel415el/GPDMOfficial69PythonApache-2.02024-05-23
ariel415el/Efficient-GPNNCommunity17PythonApache-2.02022-11-24
ariel415el/GPDMOfficial100%
Apache-2.0

Original Pytorch implementation of the GPDM model introduced in "Generating natural images with direct patch distributions matching"

697PythonOct 5, 20212 years agoApache-2.0
Apache-2.0

An efficient implementation of GPNN

175Python, ShellNov 11, 20214 years agoApache-2.0

Similar Papers

Cite this paper

@article{elnekave2022generating,
  title  = {Generating natural images with direct Patch Distributions Matching},
  author = {Ariel Elnekave and Yair Weiss},
  year   = {2022},
  eprint = {2203.11862},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.11862}
}

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

Discussion