paper-with-me

홈 › Papers

Drop the GAN: In Defense of Patches Nearest Neighbors as Single Image Generative Models

2021-03-29 · CVPR 2022 1 · Niv Granot, Ben Feinstein, Assaf Shocher, Shai Bagon, Michal Irani

Single image generative models perform synthesis and manipulation tasks by capturing the distribution of patches within a single image. The classical (pre Deep Learning) prevailing approaches for these tasks are based on an optimization process that maximizes patch similarity between the input and generated output. Recently, however, Single Image GANs were introduced both as a superior solution for such manipulation tasks, but also for remarkable novel generative tasks. Despite their impressiveness, single image GANs require long training time (usually hours) for each image and each task. They often suffer from artifacts and are prone to optimization issues such as mode collapse. In this paper, we show that all of these tasks can be performed without any training, within several seconds, in a unified, surprisingly simple framework. We revisit and cast the "good-old" patch-based methods into a novel optimization-free framework. We start with an initial coarse guess, and then simply refine the details coarse-to-fine using patch-nearest-neighbor search. This allows generating random novel images better and much faster than GANs. We further demonstrate a wide range of applications, such as image editing and reshuffling, retargeting to different sizes, structural analogies, image collage and a newly introduced task of conditional inpainting. Not only is our method faster ($\times 10^3$-$\times 10^4$ than a GAN), it produces superior results (confirmed by quantitative and qualitative evaluation), less artifacts and more realistic global structure than any of the previous approaches (whether GAN-based or classical patch-based).

📄 PDF Abstract BibTeX arXiv:2103.15545

Code (2)

ariel415el/Efficient-GPNN pytorch
iyttor/GPNN pytorch

Tasks

Image GenerationImage Manipulation

Similar Papers 제목 키워드 기반

On Nearest Neighbors in Non Local Means Denoising

2017-11-20 · Iuri Frosio, Jan Kautz

To denoise a reference patch, the Non-Local-Means denoising filter processes a set of neighbor patches. Few Nearest Neighbors (NN) are used to limit the computational burden of the algorithm. Here here we show analytical…

Denoising

Certified Robustness of Nearest Neighbors against Data Poisoning and Backdoor Attacks

2020-12-07 · Jinyuan Jia, Yupei Liu, Xiaoyu Cao, Neil Zhenqiang Gong

Data poisoning attacks and backdoor attacks aim to corrupt a machine learning classifier via modifying, adding, and/or removing some carefully selected training examples, such that the corrupted classifier makes incorrec…

Data Poisoning

On the Robustness of Deep K-Nearest Neighbors

2019-03-20 · Chawin Sitawarin, David Wagner

Despite a large amount of attention on adversarial examples, very few works have demonstrated an effective defense against this threat. We examine Deep k-Nearest Neighbor (DkNN), a proposed defense that combines k-Neares…

Training-Time Attacks against k-Nearest Neighbors

2022-08-15 · Ara Vartanian, Will Rosenbaum, Scott Alfeld

Nearest neighbor-based methods are commonly used for classification tasks and as subroutines of other data-analysis methods. An attacker with the capability of inserting their own data points into the training set can ma…

ClassificationDimensionality Reduction

Interpolation between Convolution and Attention via K-Nearest Neighbors

2026-05-31 · Mingi Kang arxiv

The shift from Convolutional Neural Networks to Transformers has reshaped computer vision, yet these two architectural families are typically viewed as fundamentally distinct. Convolutional Neural Networks are defined by…