Unsupervised Holistic Image Generation from Key Local Patches

Donghoon Lee, Sangdoo Yun, Sungjoon Choi, Hwiyeon Yoo, Ming-Hsuan Yang, Songhwai Oh

Introduction

The task of holistic image generation involves reconstructing a complete, realistic image from a set of small, unordered local patches. Unlike traditional image inpainting, which requires a predefined mask indicating the location of missing pixels, this approach requires the model to simultaneously solve for spatial arrangement and texture synthesis without explicit coordinate supervision. This "imagination" process allows the system to infer the global structure of an object or scene from just a few informative fragments.

High-level pipeline of the proposed algorithm for holistic image generation from local patches.

Methodology

The proposed framework utilizes a Generative Adversarial Network (GAN) designed to handle unordered inputs and perform joint spatial-textural inference. The architecture is composed of several key components:

  • Unsupervised Part Detection: The system identifies informative regions using the EdgeBox algorithm, which scores regions based on their "objectness" rather than relying on human-annotated key points.
  • Order-Invariant Encoding: To process patches regardless of their input sequence, a Siamese-style encoding network is employed. Feature vectors from individual patches are combined via summation, ensuring the final embedding is commutative and thus invariant to the order of the input shards.
  • Joint Prediction and Doubled U-Net: The generator is tasked with predicting both a spatial mask ($G_M$) and the final synthesized image ($G_I$). A "Doubled U-Net" architecture with skip connections preserves fine-grained details from the input patches while constructing the global scene.
  • Tripartite Loss Function: The model is optimized using a spatial loss for mask accuracy, an appearance loss to ensure patch integration without distortion, and an adversarial loss to maintain photographic realism.
Detailed architecture of the GAN-based framework, featuring Siamese encoding and a doubled U-Net for joint mask and image prediction.

Datasets and Evaluation

The model's versatility was demonstrated across seven diverse datasets, including CelebA-HQ for high-resolution faces, CompCars and Stanford Cars for rigid objects in various poses, and natural scene datasets like Flowers and Waterfalls. It was also tested on a Ceramic dataset, highlighting its potential for archaeological artifact restoration. Qualitative results show that the model can generate sharp, high-fidelity images where input patches are seamlessly integrated into a newly synthesized whole.

Key Insights

A significant finding is that the model learns the underlying geometry of objects—such as the relative positions of facial features—entirely through unsupervised training. Furthermore, the system exhibits a "creative" capacity; when provided with patches from different source images, it attempts to synthesize a coherent hybrid, blending textures and colors to reconcile the disparate inputs. This suggests the model is not merely copy-pasting but is learning a robust representation of object categories.

Conclusion

This GAN-based framework successfully addresses the challenge of holistic image generation from minimal, unordered local information. While it shows high fidelity on large datasets, performance on smaller datasets suggests a dependency on data volume for learning complex geometries. Future work may explore applying these techniques to more deformable objects and improving texture blending for highly conflicting inputs.

Summary updated

BibTeX
@inproceedings{lee2018unsupervised,
  author = {Donghoon Lee and Sangdoo Yun and Sungjoon Choi and Hwiyeon Yoo and Ming-Hsuan Yang and Songhwai Oh},
  title = {{Unsupervised Holistic Image Generation from Key Local Patches}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01228-1\_2},
}
Figure