IReNe: Instant Recoloring of Neural Radiance Fields

Alessio Mazzucchelli, Adrian Garcia-Garcia, Elena Garces, Fernando Rivas-Manzaneque, Francesc Moreno-Noguer, Adrian Penate-Sanchez

TL;DR

IReNe (Instant Recoloring of Neural Radiance Fields) enables near real-time, high-quality recoloring of 3D scenes from just a single user-edited 2D image. By selectively fine-tuning only the "diffuse" neurons in the final layer of a pre-trained NeRF and integrating a lightweight 3D segmentation module, it achieves consistent 360° edits in under 5 seconds—a 5x to 500x speedup over previous state-of-the-art methods.

What Problem Does This Paper Address?

Neural Radiance Fields (NeRFs) have revolutionized 3D scene reconstruction, but editing them remains a headache. Unlike a 2D image where you can just paint over pixels, NeRFs store scene information implicitly within the weights of a neural network.

Existing recoloring methods suffer from three main issues:

  1. Speed: Most techniques take minutes or even hours to propagate a color change throughout a 3D volume, making interactive editing impossible.
  2. Precision: Edits often "bleed" across object boundaries because the model struggles to localize the change in 3D space.
  3. Consistency: NeRFs model view-dependent effects like specular highlights and reflections. Naive editing often destroys these effects or creates "flickering" artifacts when the camera moves.

Methods

IReNe builds upon a pre-trained Instant-NGP model and introduces a three-pronged strategy to solve these challenges:

  1. Last Layer Re-training: Instead of retraining the entire network, IReNe only modifies the weights of the very last layer of the color MLP. This drastically reduces the number of parameters to optimize, enabling the "instant" performance.
  2. View-dependent Neuron Selection: The authors discovered that neurons in the final layer specialize: some handle the base "diffuse" color, while others handle "view-dependent" effects (like shine). IReNe uses an automated classification approach to identify and freeze the view-dependent neurons, ensuring that a color change to a car's paint doesn't accidentally erase its realistic reflections.
  3. Soft 3D Segmentation: To prevent color bleeding, the authors add a tiny, trainable segmentation module ($MLP_s$). This module learns a volumetric mask based on the user's 2D edit, ensuring the color change is strictly confined to the intended 3D object.

The overall pipeline is illustrated in Figure 2: Overview of the IReNe pipeline showing how a user edit is propagated through neuron selection and soft segmentation.

Overview of the IReNe pipeline showing how a user edit is propagated through neuron selection and soft segmentation.

Datasets

The authors evaluated IReNe on standard NeRF benchmarks:

  • NeRF Synthetic: Classic 360° objects like the Lego bulldozer.
  • LLFF: Forward-facing real-world scenes.
  • Mip-NeRF 360: Complex, unbounded real-world scenes.

Crucially, the authors introduced a new benchmark dataset for quantitative evaluation. They manually edited object colors in these scenes using Photoshop to create "ground truth" targets, allowing them to measure exactly how well different methods replicate a desired edit across all views.

Key Insights and Ideas

  • Neuron Specialization: Perhaps the most striking insight is that the last layer of a NeRF is naturally organized. By sweeping the view direction and observing neuron activations, the authors could distinguish between "geometry" neurons (constant across views) and "appearance" neurons (highly variable).
  • Freezing is Better than Learning: By freezing the view-dependent neurons, the model inherently preserves the complex lighting of the original scene. This is shown in Figure 4, where different neurons react differently to changing view angles. Rendered activations showing the difference between diffuse and view-dependent neurons.

  • Efficiency through Sparsity: By combining last-layer tuning with a single-image supervision, the optimization problem becomes small enough to solve in seconds on a standard GPU (NVIDIA RTX 3090).

Rendered activations showing the difference between diffuse and view-dependent neurons.

Key Results

IReNe sets a new bar for both speed and quality:

  • Speed: Optimization takes just 5 seconds. For comparison, PaletteNeRF takes 30–120 minutes, and ICE-NeRF takes about 25 seconds.
  • Quality: IReNe consistently outperformed competitors in PSNR, SSIM, and LPIPS metrics across all datasets. It effectively eliminated the "color bleeding" seen in ICE-NeRF and the global artifacts seen in palette-based methods.
  • Versatility: As shown in Figure 6, the method handles partial object edits, multicolor changes, and complex vegetation recoloring with ease. Qualitative results showing various types of recoloring, including partial and multicolor edits.
Qualitative results showing various types of recoloring, including partial and multicolor edits.

Limitations and Future Work

While IReNe is a major step forward, the authors note a few limitations:

  • External Tools: The method currently requires an external tool like Photoshop to create the initial 2D edited image.
  • Segmentation Robustness: While generally effective, the soft segmentation module can occasionally produce poor results depending on the complexity of the chosen edit.
  • Indirect Illumination: The model recolors the object but does not currently update the "bounce light" (indirect illumination) that the edited object would cast onto its surroundings. The authors suggest this as a promising direction for future research.

Summary updated

BibTeX
@inproceedings{mazzucchelli2024irene,
  author = {Alessio Mazzucchelli and Adrian Garcia-Garcia and Elena Garces and Fernando Rivas-Manzaneque and Francesc Moreno-Noguer and Adrian Penate-Sanchez},
  title = {{IReNe: Instant Recoloring of Neural Radiance Fields}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  url = {https://openreview.net/forum?id=FwISh8prwU},
}
Figure