TileGen: Tileable, Controllable Material Generation and Capture

Xilong Zhou, Milos Hasan, Valentin Deschaintre, Paul Guerrero, Kalyan Sunkavalli, Nima Khademi Kalantari · DOI · OpenReview

TL;DR

This paper introduces TILEGEN, a novel generative model for creating spatially-varying materials that are always tileable and can be controlled by input patterns. This addresses the limitations of existing methods that often produce non-tileable textures or lack fine-grained control over material structure, making TILEGEN a more practical tool for content creation.

What Problem Does This Paper Address?

Creating realistic materials for computer graphics is a challenging and time-consuming process. While generative adversarial networks (GANs) have shown promise in generating material textures, existing methods like MaterialGAN often produce materials that are not tileable (meaning they can't be seamlessly repeated to cover a larger surface) and lack control over the coarse structure of the material, such as the arrangement of bricks in a wall or the pattern of wrinkles in leather. This limits their practical use in real-world applications. Furthermore, reconstructing materials from single photographs often results in artifacts and non-tileable outputs. TILEGEN aims to solve these issues by providing a method that generates inherently tileable materials and allows users to control their structure through input patterns.

Methods

TILEGEN is built upon the StyleGAN2 architecture but with crucial modifications to ensure tileability. All convolutional, upsampling, and downsampling operations are replaced with "wrap-around" versions, meaning they operate as if the image is on a torus, naturally producing periodic outputs.

A key innovation is the conditional generation capability. TILEGEN can optionally take an "input pattern" image, which guides the generation of material structure. This pattern is encoded and fed into the StyleGAN2 decoder, allowing users to dictate the placement of features like bricks or wrinkles. The model separates the "style" (e.g., color, roughness) from the "structure" (e.g., layout), enabling independent control.

For material capture from photographs, TILEGEN employs an inverse rendering approach. It optimizes material parameters (albedo, height, roughness, etc.) such that when rendered with a known lighting setup (like a flash), the output matches a target image. This optimization is guided by a style loss (based on VGG features) and a low-resolution L1 loss, which are less prone to overfitting than per-pixel losses. The tileable nature of the generated materials and the use of random translations during optimization further help in producing artifact-free and practical results.

Datasets

The authors trained TILEGEN on synthetic datasets generated from Adobe Substance node graphs. They created models for specific material categories:

  • Conditional models: Tile/brick and leather.
  • Unconditional models: Stone and metal.

They also mention using a dataset from Deschaintre et al. [2018] to train an unconditional model for comparison with MaterialGAN. No new benchmarks were introduced.

Key Insights and Ideas

  • Tileability as a core architectural constraint: By modifying standard GAN operations to be periodic, the authors ensure tileability is an inherent property of the generated outputs, rather than an afterthought.
  • Disentanglement of style and structure: The conditional input pattern allows for explicit control over the material's structure, while a separate latent code controls its stylistic appearance. This separation is crucial for both generation and inverse rendering.
  • Robust inverse rendering via style loss: Using a style loss instead of per-pixel losses, combined with random translations during optimization, effectively mitigates common artifacts like flash burn-in and produces more plausible, tileable material reconstructions.
  • Category-specific models are powerful: Training models for specific material classes allows for more meaningful control and better adherence to realistic material properties within that class.

Key Results

  • TILEGEN successfully generates seamless, tileable materials for various categories like tiles, leather, stone, and metal.
  • The conditional generation allows users to control the layout of features (e.g., brick patterns, wrinkle placement) by providing input patterns.
  • The inverse rendering approach can reconstruct tileable materials from single photographs, producing cleaner results than previous methods like MaterialGAN, which often exhibit artifacts and are not tileable.
  • The generated materials can be larger than the input target image, a capability not offered by previous pixel-based methods.
  • The optimization process for material capture takes approximately two minutes per target image.

Limitations and Future Work

  • Category-specific training: The approach requires training a separate network for each material class, which can be computationally intensive.
  • Resolution and training time: Current generators are limited to 512x512 resolution and require several days of training on multiple GPUs. Future work aims to increase resolution and reduce training time.
  • Optimization speed: While usable, the two-minute optimization time for material capture could be improved with faster solvers.
  • Real-world data: Training TILEGEN on actual material sample photographs from specific categories is suggested as a future direction to create even more valuable generators.
  • Extending to more categories: The authors envision extending the approach to a wider range of material types.

Summary updated

BibTeX
@inproceedings{zhou2022tilegen,
  author = {Xilong Zhou and Milos Hasan and Valentin Deschaintre and Paul Guerrero and Kalyan Sunkavalli and Nima Khademi Kalantari},
  title = {{TileGen: Tileable, Controllable Material Generation and Capture}},
  booktitle = {SIGGRAPH Asia},
  year = {2022},
  doi = {10.1145/3550469.3555403},
}
Figure