Abstract
3D content manipulation is an important computer vision task with many real-world applications (e.g., product design, cartoon generation, and 3D Avatar editing). Recently proposed 3D GANs can generate diverse photorealistic 3D-aware contents using Neural Radiance fields (NeRF). However, manipulation of NeRF still remains a challenging problem since the visual quality tends to degrade after manipulation and suboptimal control handles such as 2D semantic maps are used for manipulations. While text-guided manipulations have shown potential in 3D editing, such approaches often lack locality. To overcome these problems, we propose Local Editing NeRF (LENeRF), which only requires text inputs for fine-grained and localized manipulation. Specifically, we present three add-on modules of LENeRF, the Latent Residual Mapper, the Attention Field Network, and the Deformation Network, which are jointly used for local manipulations of 3D features by estimating a 3D attention field. The 3D attention field is learned in an unsupervised way, by distilling the zero-shot mask generation capability of CLIP to the 3D space with multi-view guidance. We conduct diverse experiments and thorough evaluations both quantitatively and qualitatively. We will make our code publicly available.
Introduction
While Neural Radiance Fields (NeRFs) and 3D GANs have revolutionized the generation of photorealistic 3D objects, precise editing remains a significant hurdle. Current methodologies often struggle with global entanglement, where modifying a specific attribute (e.g., eye color) inadvertently alters unrelated features like facial structure. Furthermore, many existing "local" editing tools rely on labor-intensive 2D semantic masks, which are not readily available for diverse object categories beyond human faces.
To address these limitations, we introduce LENeRF, a framework designed for fine-grained, localized 3D control using only text prompts. By maintaining 3D consistency and high visual quality, LENeRF enables users to perform "surgical" edits on 3D features without requiring manual labels or pre-defined semantic maps.
Methodology: The LENeRF Framework
LENeRF is designed as an add-on to pre-trained 3D GANs, such as EG3D. The architecture consists of three primary trainable modules that facilitate localized feature manipulation:
- Latent Residual Mapper (LRM): Predicts a residual change ($\Delta w$) based on a text prompt to derive a target latent code.
- Attention Field Network (AFN): Generates a 3D soft mask (attention field) from a masking prompt. This mask identifies the specific 3D regions to be modified.
- Deformation Network (DN): Handles geometric changes (e.g., opening a mouth) by warping 3D coordinates, ensuring structural integrity.
A key innovation is the 3D Distillation of CLIP Knowledge. Since ground-truth 3D masks are unavailable, the system leverages the zero-shot capabilities of CLIP. By rendering 2D views and generating relevance maps, the model distills this 2D semantic knowledge into the 3D AFN. This unsupervised approach allows the model to learn spatial locations for arbitrary text descriptions without human-labeled voxels.
Experimental Evaluation
The model was evaluated on three popular benchmarks: FFHQ (human faces), AFHQv2 (cats), and ShapeNet (cars). Notably, the system operates using only the pre-trained generator, without needing the original training data.
Key Results
- Visual Fidelity: On the FFHQ dataset, LENeRF achieved an FID score of 4.37, significantly outperforming CLIP-NeRF (41.5), indicating that edited images remain nearly indistinguishable from real photos.
- Locality and Preservation: Using PSNR to measure the preservation of non-edited regions, LENeRF scored 20.86, compared to 7.08 for CLIP-NeRF. This demonstrates a superior ability to isolate edits to specific regions.
- Creative Flexibility: The model successfully handles out-of-distribution prompts, such as "odd-eyed cat" (one blue eye, one yellow), showcasing the robustness and open-vocabulary knowledge inherited from CLIP.
Conclusion
LENeRF provides a robust solution for text-driven local 3D editing by breaking spatial entanglement through feature-level interpolation and unsupervised 3D mask distillation. While the system is currently dependent on the capabilities of the underlying generator, it represents a significant step toward intuitive and precise 3D content creation. Future work will explore extending these capabilities to complex outdoor scenes and full-body human avatars.
Summary updated