Abstract
Inferring the scene illumination from a single image is an essential yet challenging task in computer vision and computer graphics. Existing works estimate lighting by regressing representative illumination parameters or generating illumination maps directly. However, these methods often suffer from poor accuracy and generalization. This paper presents Geometric Mover's Light (GMLight), a lighting estimation framework that employs a regression network and a generative projector for effective illumination estimation. We parameterize illumination scenes in terms of the geometric light distribution, light intensity, ambient term, and auxiliary depth, which can be estimated by a regression network. Inspired by the earth mover's distance, we design a novel geometric mover's loss to guide the accurate regression of light distribution parameters. With the estimated light parameters, the generative projector synthesizes panoramic illumination maps with realistic appearance and high-frequency details. Extensive experiments show that GMLight achieves accurate illumination estimation and superior fidelity in relighting for 3D object insertion.
Introduction
Estimating the lighting of a scene from a single photograph is a classic under-constrained problem in computer vision. To realistically insert a 3D object into a photo, one must determine the light's direction, intensity, and color across a full 360-degree high-dynamic-range (HDR) map.
Existing methods typically suffer from two primary limitations. First, they often over-simplify the environment by assuming all light sources are at an infinite distance on a perfect sphere. This assumption fails in indoor scenes where the distance to a lamp or window significantly alters how light interacts with an object as it moves. Second, regression-based methods frequently produce "blurry" lighting that lacks high-frequency details, resulting in weak shadows and unrealistic highlights. GMLight addresses these issues by incorporating real-world scene geometry into the estimation process.
Methodology
GMLight combines the strengths of parameter regression and generative modeling through three key components.
Geometric Distribution Representation
The framework decomposes lighting into four regressed components: a discrete light distribution ($P$) over $N$ anchor points, total light intensity ($I$), an ambient term ($A$) for indirect light, and auxiliary depth ($D$) representing the distance from the center to each anchor point. Discretizing the distribution allows the model to handle complex lighting environments more effectively than continuous parameterization.
Geometric Mover’s Loss (GML)
The core innovation of GMLight is the Geometric Mover’s Loss. Inspired by the Earth Mover’s Distance (EMD), GML measures the "cost" of moving predicted light energy to the ground-truth location. Unlike previous approaches that calculate this cost based on angular distance on a sphere, GML utilizes the actual 3D distance derived from estimated scene depth. Since depth values do not sum to a constant, the authors implemented an unbalanced version of the GML, using a Kullback-Leibler divergence penalty to handle depth regression effectively. This approach forces the network to learn the relationship between light and the physical shape of the room, enabling spatially-varying illumination.
Generative Projector
To recover sharp details, the regressed parameters are processed by a GAN-based generative projector. This component uses spherical convolutions to avoid the distortion typically found at the poles of panoramic images. It employs a progressive guidance strategy, injecting coarse-to-fine Gaussian maps into the generator to synthesize high-frequency details in the final illumination map.
Results and Discussion
GMLight was evaluated against state-of-the-art methods using the Laval Indoor HDR Dataset, which contains thousands of HDR panoramas. Quantitative results demonstrate that GMLight achieves superior accuracy, with a Root Mean Square Error (RMSE) of 0.051 and an Angular Error of 6.21° on diffuse materials, significantly outperforming previous models like EMLight (0.062 / 6.43°).
Qualitative evaluations and user studies confirm that images relighted with GMLight appear more realistic. Notably, the model excels in "moving object" scenarios, where lighting must dynamically adjust as an object's 3D position changes relative to light sources. This spatial accuracy is a direct result of treating lighting as a distribution in 3D space rather than a 2D projection.
Conclusion
GMLight represents a significant step forward in lighting estimation by bridging the gap between 2D image data and 3D scene geometry. By incorporating depth into the loss function and utilizing a hybrid regression-generative architecture, the model achieves high-fidelity, spatially-varying illumination estimation. While currently optimized for indoor environments where local geometry is most impactful, future work may involve extending this framework to complex outdoor environments and integrating it with material estimation for a complete inverse rendering pipeline.
Summary updated