Introduction
Estimating lighting from a single low-dynamic range (LDR) image is a fundamental challenge in computer vision. Traditional methods typically rely on environment maps—spherical panoramas that represent light sources as if they were at an infinite distance. While effective for outdoor scenes, this representation fails indoors where light sources like lamps or windows are close to the objects they illuminate. In such settings, lighting is spatially varying; as an object moves through a room, its shadows and highlights should shift dynamically.
This paper introduces a deep learning approach that moves beyond 2D maps. Instead, it trains a network to estimate a set of discrete 3D "parametric" lights from a single image. By modeling light sources as physical objects with specific 3D positions and sizes, the method enables realistic, spatially-aware lighting for augmented reality (AR) applications.
Methodology
The core of the proposed system is a neural network that regresses a compact, parametric representation of a scene's lighting.
Parametric Representation
Rather than predicting high-resolution pixel grids, the model predicts parameters for $N$ discrete light sources. Each light $p_i$ is defined by:
- Direction ($l_i$): Relative orientation to the camera.
- Distance ($d_i$): Proximity of the light source.
- Angular Size ($s_i$): The apparent scale of the source.
- Color/Intensity ($c_i$): RGB values and brightness.
- Ambient Term ($a$): A global value for low-frequency background illumination.
Network Architecture
The architecture utilizes a DenseNet-121 backbone to extract features from the input image. These features are mapped to a latent vector $z$, which is then processed by fully connected layers to output the specific parameters for each light source.
Training with Differentiable Loss
To overcome the difficulty of matching predicted lights to ground truth sources (the "correspondence problem"), the authors developed a differentiable layer. This layer projects the 3D parametric lights back into a 2D environment map. This allows the network to be trained by comparing the reconstructed map to a ground truth HDR panorama, providing stable gradients even when initial predictions are far from the target.
Experiments and Results
The model was trained on the Laval Indoor HDR Dataset, augmented with manual depth annotations for 2,100 panoramas.
Qualitative Performance
The parametric approach effectively captures the primary light sources in a scene. As shown in the comparison below, increasing the number of estimated lights from 2 to 5 allows the model to capture more complex lighting environments, though 3 lights often provide the best balance between accuracy and optimization stability.
Key Findings
- Efficiency: The model is highly optimized for real-time use, running in 16ms on a GPU and 51ms on a CPU, making it suitable for mobile AR.
- Accuracy: It significantly outperforms previous state-of-the-art methods in RMSE metrics. In user studies, the proposed method was preferred 35% of the time over competitors, approaching the realism of ground truth data.
- Spatially-Varying Lighting: Because the model recovers the 3D distance of lights, virtual objects can correctly respond to local illumination as they move through the virtual space—a feat impossible with standard environment maps.
Conclusion and Future Work
By representing indoor lighting through a small set of 3D parametric sources, this work provides a practical and efficient solution for realistic AR relighting. While the current model assumes diffuse area sources and requires external scene geometry for full shadow calculation, it marks a significant step toward joint reasoning of geometry, materials, and lighting in complex indoor environments.
Summary updated