Introduction
Neural Radiance Fields (NeRF) have transformed 3D scene reconstruction, yet editing these scenes remains a significant challenge. Because appearance is typically "baked" into the weights of a neural network, modifying specific object colors often requires computationally expensive retraining or complex physical decompositions that frequently fail on real-world data. PaletteNeRF addresses this by introducing a method to decompose NeRF into a set of 3D-consistent, palette-based color bases. This framework enables intuitive, real-time recoloring and style transfer while maintaining photorealism and complex view-dependent effects.
Methodology
PaletteNeRF utilizes a multi-stage pipeline to transform raw geometric data into an editable representation:
- Geometry Reconstruction: The process begins by training a standard NeRF (using Instant-NGP) to establish the scene's underlying geometry.
- Palette Extraction: A global color palette is extracted from the 3D convex hull of colors present in the training images, normalized by intensity to account for lighting variations across views.
- Appearance Decomposition: The core of the method represents the color of any 3D point as a combination of view-independent bases (3D segmentations multiplied by palette colors) and a view-dependent residual. This residual captures specularities and reflections, ensuring that highlights remain realistic even after color modification.
- Optimization and Regularization: To ensure clean segmentation, a 3D-aware smooth loss is applied. This encourages spatially close points with similar colors to belong to the same palette base. Additionally, a sparsity loss forces the model to assign points to a minimal number of palette colors, resulting in cleaner masks.
- Semantic Guidance: For localized editing, the system integrates compressed semantic features from pre-trained 2D segmentation models.
Applications and Results
PaletteNeRF was evaluated across several benchmarks, including the NeRF Synthetic, LLFF, and Mip-NeRF 360 datasets. The method achieves a reconstruction quality (PSNR of 24.50 on LLFF) comparable to vanilla Instant-NGP, demonstrating that editability does not come at the cost of image fidelity.
Key applications include:
- Real-time Recoloring: Users can swap colors in a 3D scene as easily as using a 2D palette. The decoupling of "shine" from base color ensures that specular highlights move correctly as the viewing angle changes.
- Style Transfer: By mapping the palette of a 2D style image onto the 3D scene, users can achieve consistent stylistic changes across the entire volume.
- Illumination Editing: The view-dependent component can be scaled independently to adjust the perceived glossiness or lighting of the scene.
Conclusion and Future Work
PaletteNeRF provides a powerful middle ground between restrictive global editing and complex physical decomposition. By treating 3D appearance as a linear combination of palette bases, it enables efficient, intuitive, and photorealistic editing. Future work may address current limitations, such as the dependency on external semantic extractors for local editing, the inability to edit specular properties directly, and the extension of this framework to dynamic scenes.
Summary updated