Inverse Rendering for Complex Indoor Scenes: Shape, Spatially-Varying Lighting and SVBRDF From a Single Image

Zhengqin Li, Mohammad Shafiei, Ravi Ramamoorthi, Kalyan Sunkavalli, Manmohan Chandraker

Abstract

Inverse rendering aims to decompose a single RGB image into its underlying physical components: 3D geometry, spatially-varying lighting, and surface materials (SVBRDFs). This task is highly ill-posed, particularly in indoor environments characterized by complex local light sources and non-Lambertian surfaces. This paper presents a deep learning framework that leverages a physics-inspired network architecture and a high-quality synthetic dataset to achieve state-of-the-art results. By representing lighting via Spatially-Varying Spherical Gaussians (SVSG) and incorporating a differentiable rendering layer, the proposed model enables photorealistic augmented reality applications, such as the seamless insertion of virtual objects into real-world photographs.

Introduction

The decomposition of a 2D image into its constituent 3D properties—shape, illumination, and reflectance—is a fundamental challenge in computer vision, often referred to as inverse rendering. Successfully solving this problem unlocks a wide array of applications, from advanced image editing to photorealistic augmented reality (AR). However, the problem is inherently ill-posed; a single pixel's color is the product of light interacting with a specific material on a specific surface, and many different combinations can produce the same visual result.

Indoor scenes present unique difficulties. Unlike outdoor scenes often dominated by a single distant light source (the sun), indoor environments feature multiple, localized, and spatially-varying light sources like lamps and windows. Furthermore, real-world materials are rarely perfectly matte; they exhibit complex specular highlights and reflections that vary with the viewing angle.

Methods: A Physics-Inspired Architecture

To address these complexities, the authors propose a deep convolutional neural network (CNN) that integrates physical rendering principles into its learning process.

Overview of the inverse rendering pipeline: (a) input image, (b-e) predicted geometry and lighting components, and (g-h) photorealistic augmented reality results.

A key innovation is the use of Spatially-Varying Spherical Gaussians (SVSG) to represent lighting. Traditional methods often use Spherical Harmonics, which are efficient for smooth, global lighting but struggle to capture the "spiky," high-frequency nature of local indoor lights. SVSGs allow the network to model sharp highlights and localized illumination more effectively at every pixel.

The framework also employs a differentiable rendering layer. This internal renderer takes the network's predictions for shape, light, and material and reconstructs a synthetic version of the input image. By minimizing the difference between this re-rendered image and the original input during training, the network is forced to produce components that are physically consistent with one another. This joint reasoning—estimating all components simultaneously—helps resolve the inherent ambiguities of the inverse rendering problem.

The architecture is further refined through a multi-stage cascade, where successive layers iteratively improve the initial predictions. Finally, a bilateral solver is used as an edge-aware refinement step, ensuring that the boundaries of predicted materials and geometry align precisely with the visual edges in the source image.

Data Generation: Bridging the Reality Gap

Deep learning models for inverse rendering require massive amounts of labeled data, which is nearly impossible to capture in the real world. To overcome this, the authors developed a sophisticated synthetic dataset. They utilized existing 3D indoor layouts and replaced generic textures with over 1,300 professional-grade SVBRDF materials from Adobe Stock. Using a custom, physically-based GPU renderer, they generated nearly 79,000 high-dynamic-range (HDR) training images featuring full global illumination. This high-quality synthetic supervision allows the model to generalize effectively to real-world "in-the-wild" photographs.

Key Results and Applications

The proposed framework demonstrates significant improvements over previous state-of-the-art methods. On the Intrinsic Images in the Wild (IIW) benchmark, it achieved a Weighted Human Disagreement Rate (WHDR) of 15.93, outperforming the 17.5 reported by Li et al. In terms of lighting accuracy, the model's shading error of 0.87 was significantly lower than the 2.33 achieved by Barron et al.

Qualitative results showing virtual spheres inserted into a real-world scene with consistent lighting and shadows.

The practical utility of this approach is most evident in augmented reality. By accurately decomposing a scene, the model allows for the insertion of virtual objects that realistically interact with the environment. As shown in the results, inserted glossy spheres and bunnies correctly reflect the surrounding room's colors and hidden light sources while casting shadows that match the existing scene geometry.

Conclusion and Future Directions

While the framework sets a new standard for single-image inverse rendering, challenges remain. The current model's geometry estimation, while sufficient for rendering, does not yet match the precision of specialized depth-estimation networks. Additionally, the differentiable rendering layer currently relies on local approximations; incorporating full global illumination into the forward pass is a target for future computational optimization. Finally, extending this work to video to ensure temporal consistency across frames represents a promising next step for the field.

Summary updated

BibTeX
@inproceedings{li2020inverse,
  author = {Zhengqin Li and Mohammad Shafiei and Ravi Ramamoorthi and Kalyan Sunkavalli and Manmohan Chandraker},
  title = {{Inverse Rendering for Complex Indoor Scenes: Shape, Spatially-Varying Lighting and SVBRDF From a Single Image}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00255},
}
Figure