Skip to main content
QUICK REVIEW

[Paper Review] PixelNN: Example-based Image Synthesis

Aayush Bansal, Yaser Sheikh|arXiv (Cornell University)|Aug 17, 2017
Generative Adversarial Networks and Image SynthesisComputer Science43 references6 citations
TL;DR

PixelNN proposes a two-stage image synthesis method that combines a CNN-based regressor with pixel-wise nearest-neighbor matching to generate diverse, high-frequency, photorealistic images from incomplete inputs like low-resolution images, edges, or normal maps. By leveraging deep feature descriptors for local pixel matching, it overcomes mode collapse in GANs and enables controllable, interpretable synthesis with multiple plausible outputs per input.

ABSTRACT

We present a simple nearest-neighbor (NN) approach that synthesizes high-frequency photorealistic images from an "incomplete" signal such as a low-resolution image, a surface normal map, or edges. Current state-of-the-art deep generative models designed for such conditional image synthesis lack two important things: (1) they are unable to generate a large set of diverse outputs, due to the mode collapse problem. (2) they are not interpretable, making it difficult to control the synthesized output. We demonstrate that NN approaches potentially address such limitations, but suffer in accuracy on small datasets. We design a simple pipeline that combines the best of both worlds: the first stage uses a convolutional neural network (CNN) to maps the input to a (overly-smoothed) image, and the second stage uses a pixel-wise nearest neighbor method to map the smoothed output to multiple high-quality, high-frequency outputs in a controllable manner. We demonstrate our approach for various input modalities, and for various domains ranging from human faces to cats-and-dogs to shoes and handbags.

Motivation & Objective

  • Address the mode collapse problem in conditional GANs that limits diversity in generated outputs.
  • Enable user control over image synthesis by making the process interpretable through on-the-fly training set pruning.
  • Overcome the lack of interpretability in deep generative models by using non-parametric nearest-neighbor matching.
  • Improve generalization on small datasets by using local pixel composition instead of global image matching.
  • Generate high-frequency, photorealistic outputs from incomplete signals such as edges, low-res images, and normal maps.

Proposed method

  • Train a CNN to regress a single, smoothed output from an incomplete input (e.g., low-res image or edge map).
  • Extract deep features from the CNN’s output using a multiscale descriptor to capture local context and enable pixel-wise matching.
  • Perform pixel-wise nearest-neighbor search in the training set using the deep feature descriptor to find the most similar patches.
  • Compose the final high-frequency output by copying and pasting corresponding pixels from the nearest training examples.
  • Enable controllable synthesis by filtering the training set to include only examples matching user-specified criteria (e.g., a specific cat breed).
  • Leverage dense pixel-level correspondences between training images and synthesized outputs for potential label transfer or analysis.

Experimental results

Research questions

  • RQ1Can a non-parametric nearest-neighbor approach generate diverse, high-frequency, photorealistic images from incomplete inputs without suffering from mode collapse?
  • RQ2Can pixel-wise composition using deep features improve generalization and representational power compared to global image matching?
  • RQ3To what extent can nearest-neighbor matching provide interpretability and user control in image synthesis compared to end-to-end deep generative models?
  • RQ4How does the performance of nearest-neighbor-based synthesis compare quantitatively to state-of-the-art GAN-based methods in terms of edge and normal estimation fidelity?
  • RQ5Can the dense pixel correspondences generated by the method support downstream tasks like semantic label transfer?

Key findings

  • PixelNN generates multiple diverse, high-quality outputs per input, significantly outperforming GAN-based baselines in diversity, as shown by improved performance from random to oracle selection across 72 runs.
  • Quantitative evaluation on surface normal estimation shows PixelNN achieves a mean angular error of 12.3° and median of 9.1°, with 87.5% of pixels within 30° error, outperforming the baseline Pix-to-Pix model.
  • For edge detection, PixelNN achieves an average precision (AP) of 0.89, comparable to real image performance and significantly better than the baseline model.
  • The approach enables controllable synthesis: users can guide outputs toward specific styles (e.g., a specific cat breed) by filtering the training set, demonstrating intuitive user control.
  • Failure cases occur when no suitable nearest neighbors exist, highlighting the need for efficient search optimization, which could be addressed with systems like Scanner.
  • The method naturally produces dense pixel-level correspondences between training images and synthesized outputs, enabling potential applications in label transfer and image analysis.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.