Learning Continuous Implicit Representation for Near-Periodic Patterns

Bowei Chen, Tiancheng Zhi, Martial Hebert, Srinivasa G. Narasimhan

Introduction

Many man-made structures, such as skyscraper facades, brick walls, and tiled carpets, follow a "near-periodic" layout. These Near-Periodic Patterns (NPP) present a unique challenge for computer vision: they require a delicate balance between global structural consistency (maintaining a perfect grid) and local variation (preserving unique details like a reflection in a single window or a crack in a brick).

Existing methods typically fall into two categories: general-purpose inpainters (like CNNs) that often blur global structures, and lattice-based methods that are brittle and fail if periodicity detection is slightly inaccurate. NPP-Net bridges this gap by utilizing Neural Implicit Representations (NIR) to learn these patterns from a single image.

Methodology: The NPP-Net Framework

NPP-Net optimizes a Multi-Layer Perceptron (MLP) to map coordinates $(x, y)$ to RGB values. Unlike standard coordinate-based networks, it incorporates three specialized components to handle periodicity:

  1. Periodicity-Aware Input Warping: Raw coordinates are warped using a bivariate function $f_p(x,y) = (x \cos \theta + y \sin \theta) \pmod p$. This explicitly informs the network of the repeating signal, facilitating the learning of global layouts.
  2. Periodicity Proposal Module: To mitigate the brittleness of detection, the system searches for the "Top-K" candidate periodicities and augments the input with multiple warped features, ensuring robustness against estimation errors.
  3. Periodicity-Guided Patch Loss: For inpainting, the model samples patches from known areas that should correspond to the missing region based on the detected periodicity. A combination of perceptual and contextual losses ensures the synthesized content is both structurally aligned and locally realistic.
The NPP-Net pipeline, featuring periodicity-aware warping and specialized loss functions.

Experiments and Results

The authors evaluated NPP-Net on 532 images across benchmarks including the PSU Near-Regular Texture Database (NRTDB), the Describable Textures Dataset (DTD), and a custom set of complex real-world scenes.

Quantitative Performance

On the NRTDB dataset, NPP-Net achieved a state-of-the-art LPIPS (perceptual distance) of 0.188, outperforming general deep learning baselines like Lama (0.196) and specialized periodicity methods like BPI (0.254). A lower LPIPS score indicates that the results are significantly more visually convincing to human observers.

Qualitative Impact

NPP-Net excels at "un-occluding" scenes by removing foreground objects like trees or cars. It maintains the underlying window grid perfectly while filling gaps with plausible textures rather than blurry averages. Furthermore, the model demonstrates a remarkable ability to extrapolate patterns beyond their original boundaries.

Qualitative comparison of NPP-Net against baseline methods for complex scene inpainting.

Key Insights

  • Warping vs. Activation: While periodic activation functions (like SIREN) are common, this research finds that warping the input space is far more effective for extrapolating patterns beyond original image boundaries.
  • Single-Image Optimization: Because NPPs contain internal redundancy, the image itself serves as the dataset. This avoids the need for massive labeled datasets of facades.
  • Handling Local Variance: By using contextual loss on periodic-shifted patches, the model avoids producing a "perfect" but fake-looking average tile, instead synthesizing realistic local variations.

Conclusion and Future Work

NPP-Net provides a robust solution for representing and reconstructing near-periodic patterns. While it currently relies on periodicity detection being within roughly 10% of the true value and assumes planar scenes, future work may extend this approach to temporal periodicity in video or complex 3D curved surfaces.

Summary updated

BibTeX
@inproceedings{chen2022learning,
  author = {Bowei Chen and Tiancheng Zhi and Martial Hebert and Srinivasa G. Narasimhan},
  title = {{Learning Continuous Implicit Representation for Near-Periodic Patterns}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19784-0\_31},
}
Figure