TL;DR
This paper introduces LANe, a novel approach for composing 3D objects into scenes while realistically accounting for varying lighting conditions. By disentangling scene and object representations and explicitly modeling light fields, LANe enables consistent and physically plausible scene synthesis, outperforming previous methods on challenging datasets.
What Problem Does This Paper Address?
Creating realistic 3D scenes with dynamically inserted objects has been a long-standing challenge. While neural radiance fields (NeRFs) have revolutionized 3D scene rendering, most existing methods treat scenes holistically or fail to account for how lighting affects object appearance when composed into new environments. This leads to jarring inconsistencies, where inserted objects look "pasted on" rather than naturally integrated. Specifically, the problem is to achieve compositional scene synthesis where objects seamlessly blend into a scene, respecting the spatially varying lighting conditions of that scene, even if the object was trained in a different lighting environment.
Methods
LANe tackles this by disentangling scene representation into two main components:
- World-NeRF: This captures the static background of the scene. It's designed to be "lighting-agnostic" in its core geometry and density representation but uses a "lighting-aware" neural light field to capture spatially varying lighting cues within the scene.
- Object-NeRFs: For each class of object (e.g., cars), a separate object-NeRF is trained. These are also "lighting-agnostic" in their base representation.
The key innovation lies in how these components interact for composition:
- Light Field Modulation: The world-NeRF's light field is used to generate "per-direction lighting features" for the scene.
- Learned Shader: A novel "lighting-aware shader" then takes these scene lighting features and modulates the appearance of the object-NeRF. This shader is designed to be generalizable, allowing objects trained in one lighting condition to be composed into scenes with entirely different lighting.
- Two Shader Variants:
- Local-Global Shader: For composing objects into scenes where they've been seen before, this shader uses both object and scene coordinates.
- LFN-based Shader (for unseen scenes): This is the more novel component. It uses an attention mechanism to process the scene's light field and predict a shading coefficient for the object, enabling composition into entirely new environments.
Datasets
The authors trained and evaluated LANe on two primary datasets:
- Synthetic CARLA Dataset: This dataset was generated using the CARLA simulator, providing urban scenes with vehicles under varying lighting conditions. It includes 6 training scenes and 2 test scenes, with 5 different car instances observed in 40 locations per scene. This dataset is crucial for evaluating compositional synthesis under controlled lighting variations.
- Real-World Dataset: A novel dataset of real cars was collected at different times of the day (10 different lighting conditions) and in slightly different scenes. This dataset was used to assess the model's applicability to real-world scenarios.
Key Insights and Ideas
- Explicit Light Field for Composition: The core idea of using a scene's light field to guide object appearance is a powerful way to achieve lighting consistency, especially for spatially varying illumination.
- Generalizable Shaders are Crucial: The LFN-based shader is key to composing objects into unseen scenes and lighting conditions, demonstrating true generalization beyond the training data.
- Multiplicative Shading Works: The approach of learning a multiplicative shading factor rather than directly predicting RGB values proves effective and efficient.
- Attention for Light Field Integration: Using an attention mechanism to selectively focus on relevant parts of the scene's light field for shading is an effective way to handle complex lighting.
Key Results
- Improved Image Quality: LANe significantly outperforms baseline methods (like vanilla NeRF for composition) in terms of PSNR, SSIM, and LPIPS metrics, especially in challenging scenarios with varying lighting. For instance, in Table 1, LANe (LF) achieves PSNRs in the mid-20s, significantly higher than NeRF's low-to-mid teens.
- Lighting-Aware Composition: Qualitative results (e.g., Figure 3, 5, 12, 13, 15) clearly show that LANe correctly modulates object appearance based on scene lighting, making them appear naturally integrated. Objects become brighter in light and darker in shadow, and specular highlights are handled more realistically.
- Generalization to Unseen Scenes: The LFN-based shader demonstrates strong performance even when composing objects into scenes and lighting conditions not encountered during training (Table 5, 7).
- Efficiency: The model allows for composing objects without retraining object parameters for new scenes, making it efficient for data augmentation and scene manipulation.
Limitations and Future Work
- Shadow Modeling: LANe currently only modulates object appearance and does not generate shadows cast by the composed objects onto the scene or other objects. This is a significant limitation for photorealism.
- Shadow Residuals: The model struggles to completely remove hard cast shadows from foreground objects in the learned world model, leaving residuals.
- Lighting Similarity Assumption: The lighting distribution between seen and unseen scenes needs to be somewhat similar for effective composition into unseen environments.
- Data Requirements: Training the shader model requires instances to be visible under various lighting conditions. Real-world data collection might not always provide this, necessitating more advanced training strategies.
- Future Work: The authors suggest exploring methods to model object-to-scene and object-to-object shadows, improving robustness to pose variations, and developing training strategies that better handle limited lighting variations in real-world data. They also highlight the potential for generalizing to unseen real scenes.
Summary updated