GenN2N: Generative NeRF2NeRF Translation

Xiangyue Liu, Han Xue, Kunming Luo, Ping Tan, Li Yi

Abstract

Editing Neural Radiance Fields (NeRFs) while maintaining multi-view consistency remains a significant challenge in 3D vision. We present GenN2N, a unified framework for "NeRF-to-NeRF" translation that enables a wide variety of 3D editing tasks—including text-driven stylization, colorization, and inpainting—within a single generative pipeline. By lifting 2D image edits into a 3D VAE-GAN latent space, GenN2N produces high-quality, consistent results that capture the diverse, stochastic nature of creative editing.

Introduction: The Consistency Gap in 3D Editing

Editing Neural Radiance Fields is notoriously difficult due to what researchers call the "consistency gap." While 2D image editing tools, such as Stable Diffusion or InstructPix2Pix, have reached high levels of maturity, applying them to individual frames of a 3D scene typically results in severe flickering or geometric inconsistencies. For instance, if a 2D tool is tasked with turning a human subject into an elf, the specific shape and placement of the ears may vary slightly across different viewpoints. This variance makes it impossible to reconstruct a clean, stable 3D model using traditional NeRF optimization.

Previous solutions, such as Instruct-NeRF2NeRF, relied on slow, iterative optimization processes that attempted to "average out" these inconsistencies. However, these methods are often computationally expensive, prone to producing blurry textures, and limited to generating a single, deterministic version of an edit. GenN2N addresses these limitations by treating NeRF editing as a generative translation task, allowing for diverse, sharp, and 3D-consistent outputs.

The GenN2N Framework

GenN2N employs a "render-edit-distill" pipeline that bridges the gap between 2D flexibility and 3D consistency through several key components:

1. 2D Image Translation

The system begins by rendering multi-view images from a source NeRF. It then utilizes "plug-and-play" 2D editors—such as InstructPix2Pix for text-based changes or DDColor for colorization—to create a set of edited 2D images. These images serve as the noisy, inconsistent targets for the 3D model.

2. Latent Distillation and VAE-GAN

To manage the inherent inconsistency of 2D edits, GenN2N utilizes a VAE-based encoder. This module maps the edited 2D images into a 64-dimensional edit code ($z$). The core of the framework is a generative 3D VAE-GAN that decodes these latent codes back into a 3D NeRF. During training, a KL-divergence loss ensures the latent space follows a Gaussian distribution, which allows users to sample new, distinct edits at inference time by simply sampling different codes.

3. Disentanglement via Contrastive Learning

A critical innovation in GenN2N is the use of contrastive loss to disentangle the "edit style" from the "camera viewpoint." This ensures that the edit code $z$ captures only the 3D stylistic changes and does not accidentally encode camera-specific information, which would otherwise cause the scene to warp as the camera moves.

4. Conditional Adversarial Loss

To combat the blurriness often found in distilled NeRFs, the authors incorporate a GAN discriminator. This discriminator compares rendered views against the 2D edited targets, forcing the generative model to produce sharp, realistic textures rather than a blurry average of the inconsistent 2D inputs.

Experimental Results

The authors evaluated GenN2N across diverse datasets, including portrait scenes (Face, Fangzhou), outdoor 360-degree environments (Farm, Campsite), and standard benchmarks like LLFF.

Quantitative Performance

GenN2N demonstrated superior performance even against task-specific models:

  • Super-Resolution: Achieved a PSNR of 28.50, outperforming NeRF-SR (27.95).
  • Inpainting: Significantly outperformed SPIn-NeRF, achieving a PSNR of 26.86 compared to 24.36.

Generative Diversity and Efficiency

Unlike previous deterministic methods, GenN2N can sample different edit codes from the latent space to produce multiple distinct, consistent versions of the same prompt (e.g., generating various styles of a "Tolkien Elf"). Furthermore, while per-scene training requires 3–8 hours, the inference is nearly instantaneous. Once the model is trained, it takes approximately 250ms to render a frame, providing a lightweight feed-forward solution for end-users.

Discussion and Limitations

GenN2N represents a shift toward embracing inconsistency rather than fighting it. By modeling the distribution of 2D edits, the framework learns a manifold of valid 3D transformations. However, some limitations remain. The model currently requires per-scene optimization, and the quality of the 3D output is fundamentally bounded by the performance of the underlying 2D plug-and-play translator. Additionally, while the model handles stylistic and moderate geometric changes well, radical geometric transformations (e.g., changing the fundamental topology of an object) remain a challenge for the current lifting mechanism. Future work will likely focus on developing "generalist" models that can perform these translations across different scenes without requiring per-scene retraining.

Summary updated

BibTeX
@inproceedings{liu2024genn,
  author = {Xiangyue Liu and Han Xue and Kunming Luo and Ping Tan and Li Yi},
  title = {{GenN2N: Generative NeRF2NeRF Translation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure