Introduction
Neural Radiance Fields (NeRFs) have revolutionized 3D scene reconstruction, enabling high-fidelity rendering from sparse viewpoints. However, editing these scenes remains a significant challenge. While 2D generative models like StyleGAN excel at semantic editing (e.g., altering age, expression, or hairstyle), they lack 3D awareness. Applying 2D edits independently across different views often leads to multiview inconsistency, where the scene appears to "flicker" or lose structural integrity when the camera moves.
NeRFEditor introduces a novel framework that bridges this gap. By performing "mutual learning" between NeRF and StyleGAN, it enables high-fidelity, identity-preserving 360° scene editing using simple text prompts or reference images.
Methodology: Bridging 2D Generative Power and 3D Consistency
The core of NeRFEditor lies in its ability to disentangle pose from style within StyleGAN's latent space, allowing it to serve as a powerful prior for 3D editing. The framework consists of three primary components:
1. Latent Code Adjustor
StyleGAN’s latent space ($W$) is a rich representation of visual styles, but it is not inherently pose-aware. NeRFEditor employs a differentiable Latent Code Adjustor that uses eigen-decomposition to identify specific directions in the latent space corresponding to camera poses. By treating this decomposition as a differentiable layer (leveraging Deep Declarative Networks), the model can backpropagate errors directly through the latent space math to "rotate" the generated face to precisely match the NeRF's camera viewpoint.
2. Hidden Mapper for Out-of-Domain Views
Standard StyleGAN models are typically trained on relatively narrow, front-facing datasets. To handle extreme "out-of-domain" angles encountered in full 360° captures, the authors developed a Hidden Mapper. This module takes a NeRF rendering from an extreme angle and maps it into StyleGAN’s intermediate feature layers. Because these intermediate layers are more robust than the initial latent codes, the system can maintain high-quality stylization even at difficult viewpoints.
3. 3D-Consistent Fine-tuning
After generating a set of stylized 2D images from various angles, NeRFEditor uses them to fine-tune a conditional NeRF. To preserve the original 3D structure and prevent background artifacts, the process incorporates a masked-guided loss and depth regularization. This ensures that while the subject's appearance changes (e.g., adding "red hair" or "tanned skin"), the underlying geometry remains stable.
Experimental Evaluation
The researchers evaluated NeRFEditor using the FaceScape benchmark and a newly collected real-world dataset, TIFace (Tiny-scale Indoor Face). TIFace features subjects captured in unconstrained indoor environments, demonstrating the method's robustness outside of laboratory settings.
Key Results
- Identity Preservation: NeRFEditor significantly outperforms existing baselines like CLIP-NeRF and EG3D in ID Scores, ensuring that the edited subject remains recognizable.
- Geometric Stability: The framework reduced "Pose Error"—the unwanted shifting of facial features during rotation—by nearly 50% compared to traditional 2D-to-3D manipulation methods.
- High Efficiency: The fine-tuning process is optimized for speed, taking less than 4 minutes on a single consumer-grade GPU (RTX 3070). Once trained, the model supports real-time rendering at 50 FPS.
- Versatile Editing: The system supports a wide array of editing modalities, including text-guided prompts (e.g., "Lady Gaga"), style transfer from reference paintings, and interactive geometric warping.
Conclusion and Future Directions
NeRFEditor represents a significant step forward in making 3D scene editing as intuitive and powerful as 2D image manipulation. By leveraging the semantic richness of StyleGAN as a prior for NeRF, it achieves a level of consistency and quality previously unattainable for full 360° scenes.
Currently, the framework is most effective for domains with high-quality pre-trained GANs, such as human faces. Future work involves extending this approach to more diverse object categories and exploring 4D (dynamic) scene editing to capture temporal changes alongside spatial ones.
Summary updated