Abstract
We present a learning-based approach to relight a single image of Lambertian and low-frequency specular objects. Our method enables inserting objects from photographs into new scenes and relighting them under the new environment lighting, which is essential for AR applications. To relight the object, we solve both inverse rendering and re-rendering. To resolve the ill-posed inverse rendering, we propose a weakly-supervised method by a low-rank constraint. To facilitate the weakly-supervised training, we contribute Relit, a large-scale (750K images) dataset of videos with aligned objects under changing illuminations. For re-rendering, we propose a differentiable specular rendering layer to render low-frequency non-Lambertian materials under various illuminations of spherical harmonics. The whole pipeline is end-to-end and efficient, allowing for a mobile app implementation of AR object insertion. Extensive evaluations demonstrate that our method achieves state-of-the-art performance.
Introduction
Inserting real-world objects from a single photograph into a digital scene—such as a sunny forest or a neon-lit room—requires "un-baking" the original lighting, a process known as inverse rendering. This is a fundamental challenge for Augmented Reality (AR) because inverse rendering is inherently ill-posed: a pixel's brightness could be due to the object's intrinsic color (reflectance), the intensity of the light source, or the surface's shininess.
Most existing AR solutions rely on pre-built 3D models. When dealing with real photos, obtaining ground-truth data for geometry, material, and lighting is nearly impossible at scale. While synthetic data helps, models often struggle to generalize to the complexities of real-world photography. This work addresses these challenges by introducing a weakly-supervised pipeline capable of handling glossy, non-Lambertian materials efficiently.
Methodology
The proposed pipeline consists of three primary neural networks: Spec-Net for separating specular highlights, Normal-Net for estimating surface geometry, and Light-Net for regressing environment lighting using Spherical Harmonics (SH).
Low-Rank Supervision
The core innovation is the use of a low-rank constraint for weak supervision. The fundamental insight is that while lighting changes, an object's intrinsic reflectance remains constant. By arranging predicted reflectance maps from multiple images of the same object under different lighting into a matrix, the model enforces a mathematical "rank-one" constraint. This allows the network to learn consistent reflectance without requiring explicit ground-truth labels.
Differentiable Specular Rendering
To enable end-to-end training, the authors developed a differentiable specular rendering layer based on the Blinn-Phong model. This layer allows the model to "re-render" the object and backpropagate the error if the result does not match the input image. Unlike previous methods restricted to matte surfaces, this approach successfully handles low-frequency specular highlights.
The Relit Dataset
To support this weakly-supervised approach, the authors introduced the Relit Dataset, containing 750,000 images derived from 500 videos of over 100 real-world objects. Using an automated turntable setup, objects were captured under rapidly changing lighting conditions, providing the multi-illumination data necessary for the low-rank loss.
Experimental Results
The method was benchmarked against the MIT Intrinsics and Janner datasets, where it outperformed existing self-supervised and unsupervised methods. On the MIT Intrinsics benchmark, the model achieved a Scale-Invariant MSE (SMSE) of 0.0186, comparable to supervised methods trained on synthetic data.
Beyond accuracy, the system is highly efficient. The inverse rendering process takes approximately 0.15 seconds on a desktop GPU. The authors demonstrated its practical utility by implementing it as an Android application, enabling real-time object insertion and material editing (e.g., adjusting "shininess") on mobile devices.
Conclusion and Future Work
While the pipeline achieves state-of-the-art performance for single-view relighting, it currently does not account for self-shadowing or shadows cast onto the environment. Additionally, the Blinn-Phong model has limitations with complex materials like glass or velvet. Future research will focus on integrating more sophisticated BRDFs and handling complex shadow interactions to further enhance the realism of AR insertions.
Summary updated