Adversarial Texture Optimization From RGB-D Scans

Jingwei Huang, Justus Thies, Angela Dai, Abhijit Kundu, Chiyu "Max" Jiang, Leonidas J. Guibas, Matthias Nießner, Thomas A. Funkhouser

Abstract

Realistic color texture generation is an important step in RGB-D surface reconstruction, but remains challenging in practice due to inaccuracies in reconstructed geometry, misaligned camera poses, and view-dependent imaging artifacts. In this work, we present a novel approach for color texture generation using a conditional adversarial loss obtained from weakly-supervised views. Specifically, we propose an approach to produce photorealistic textures for approximate surfaces, even from misaligned images, by learning an objective function that is robust to these errors. The key idea of our approach is to learn a patch-based conditional discriminator which guides the texture optimization to be tolerant to misalignments. Our discriminator takes a synthesized view and a real image, and evaluates whether the synthesized one is realistic, under a broadened definition of realism. We train the discriminator by providing as 'real' examples pairs of input views and their misaligned versions -- so that the learned adversarial loss will tolerate errors from the scans. Experiments on synthetic and real data under quantitative or qualitative evaluation demonstrate the advantage of our approach in comparison to state of the art.

Introduction: The Challenge of Blurry Textures

Creating photorealistic 3D models from consumer-grade RGB-D cameras (like a Kinect or mobile sensor) is notoriously difficult. While geometric reconstruction has seen significant progress, the resulting textures often appear blurry or "ghosted."

The primary culprit is misalignment. Tiny errors in camera tracking, noisy depth data, and unmodeled lens distortions cause the captured images to deviate from the reconstructed 3D surface. Traditional optimization methods use metrics like $L_2$ (mean squared error) to aggregate colors from different views. When images are slightly misaligned, an $L_2$ loss attempts to find the "average" color, which results in a loss of high-frequency detail. Previous attempts to fix this used complex parametric models to "warp" images into place, but these are often too rigid to handle the messy reality of a handheld scan.

Methodology: Learning a Misalignment-Tolerant Loss

We introduce a conditional adversarial optimization framework. Instead of using a fixed mathematical formula to evaluate texture quality, we employ a neural network (a discriminator) to learn the characteristics of a realistic texture in the context of the scan.

Weakly-Supervised Training

The core innovation is the training of the discriminator. To teach it tolerance, we provide "real" examples consisting of pairs of input views and their naturally misaligned versions. By seeing these real-world misalignments as "real," the discriminator learns to be invariant to small shifts and distortions while remaining highly sensitive to synthetic artifacts like blur and seams. This allows the system to learn the error distribution of the hardware itself.

Optimization Framework

We jointly optimize the texture map and the discriminator. The texture map is updated to "fool" the discriminator into thinking it is a real camera view, while the discriminator improves its ability to spot fakes. To make this process end-to-end, we use a differentiable renderer to project the 3D texture back into 2D views for evaluation. To stabilize the early stages of optimization, we combine the adversarial loss with a standard $L_1$ loss that gradually fades away.

Results and Evaluation

The method was evaluated on synthetic data from ShapeNet, large-scale indoor scenes from ScanNet, and custom real-object scans.

Overview of the adversarial texture optimization pipeline and comparison with state-of-the-art methods.

As illustrated in the figure above, our approach produces significantly sharper and more consistent textures compared to previous state-of-the-art methods like Zhou and Koltun. Quantitatively, our method outperformed competitors across metrics like Perceptual Loss and Sharpness. Notably, it achieved a much lower "nearest patch loss," indicating that the generated textures closely match the local appearance of the original images. In a user study with 63 participants, our method was overwhelmingly preferred for its realism, often by a margin of 2x to 5x.

Conclusion

By replacing hand-crafted error metrics with a learned, misalignment-tolerant adversarial loss, we can produce high-quality textures even on approximate geometry. This approach effectively handles the inaccuracies inherent in consumer-grade RGB-D scans, moving us closer to democratized 3D content creation where high-quality assets can be generated from simple handheld devices.

Summary updated

BibTeX
@inproceedings{huang2020adversarial,
  author = {Jingwei Huang and Justus Thies and Angela Dai and Abhijit Kundu and Chiyu "Max" Jiang and Leonidas J. Guibas and Matthias Nießner and Thomas A. Funkhouser},
  title = {{Adversarial Texture Optimization From RGB-D Scans}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=62RdpQTVZIc},
}
Figure