C³G-NeRF: Continuous Conditional NeRF
- The paper introduces a class-continuous conditional NeRF that enables photorealistic multi-view image synthesis with finely controlled, real-valued semantic features.
- It employs a GAN-based framework with separate generators and discriminators, integrating elementwise conditioned latent codes to maintain image fidelity and 3D consistency.
- Experimental results demonstrate state-of-the-art performance with smooth attribute interpolation and robust scene composability across datasets like CelebA, AFHQ, and Cars.
Class-Continuous Conditional Generative Neural Radiance Field (C³G-NeRF) is a 3D-aware generative model that enables photorealistic synthesis of multi-view-consistent images with finely controlled, continuous class-conditional features. Unlike previous conditional NeRF variants limited to discrete or binary labels, C³G-NeRF allows arbitrary, real-valued control over semantic attributes or categories at inference time, maintaining state-of-the-art image fidelity and 3D consistency (Kim et al., 2023).
1. Background and Motivation
3D-aware image generation tasks require models that preserve inter-view consistency while supporting high-resolution and semantically meaningful image synthesis. Neural Radiance Fields (NeRF) represent scenes as a continuous 5D function
mapping each spatial position and viewing direction to a density and view-dependent color. Volume rendering integrates these outputs to produce color images from arbitrary viewpoints:
Earlier works (e.g., GRAF, pi-GAN, GIRAFFE) deploy NeRF within a GAN framework but only allow unconditional sampling or discrete class control, precluding smooth manipulation along arbitrary semantic axes. CG-NeRF (Jo et al., 2021) introduced conditioning via image or text, but lacked support for numeric, continuous conditional vectors. C³G-NeRF addresses this limitation by introducing real-valued conditional feature vectors, expanding the space of generatable images to a continuous manifold parameterized by user-specified attributes.
2. Model Architecture
C³G-NeRF adopts a GAN-based architecture with separate modules for the generator and discriminator.
- Generator Inputs
- Shape noise
- Appearance noise
- Camera pose (azimuth, elevation)
- Continuous class condition
- Conditional Feature Projection Two linear projections , modulate shape and appearance respectively:
where denotes elementwise multiplication, and , are shape/appearance latent dimensions. These codes are injected as input to the NeRF backbone, ensuring the generated geometry and photometry are smoothly controllable by .
- Neural Feature Field A multilayer perceptron returns a density and feature vector for each spatial query:
Here, denotes Fourier positional encoding, and is an -dimensional feature vector.
- Scene Composition For compositional scenes with multiple entities, separate feature-field decoders produce , which are combined:
This weighted average operates per-ray sample, supporting object combinations and backgrounds.
- Volume Rendering & 2D Neural Rendering Volume rendering integrates along rays to produce a low-resolution feature image:
A 2D neural renderer (residual blocks + upsampling) then maps features to RGB.
3. Training Objectives
Training follows an adversarial paradigm with a standard GAN loss and R₁ gradient penalty. Specifically:
Alternative losses (WGAN-GP, hinge) are also compatible.
To promote smooth semantic interpolation in conditional space, an interpolation consistency loss is optionally introduced:
This regularizes the generator to respond linearly (in image space) to convex combinations of condition vectors, ensuring a smooth latent manifold.
4. Implementation and Data
- Datasets:
- AFHQ (≈16k animal faces, 7 classes)
- CelebA (≈200k faces, 40 binary attributes)
- Cars (≈9.7k car images, 13 models)
- Resolutions: , (all), (AFHQ, Cars)
- Latent dimensions: , equals number of classes or attributes, or $256$
- Optimization: RMSprop ( for , for ), batch size 32, NVIDIA A6000 GPU
- Architecture: Residual modules in all main decoders (3D MLPs, 2D renderer, discriminator) are crucial to avoid vanishing gradients and ensure conditional signal propagation.
5. Experimental Results
C³G-NeRF achieves superior quantitative and qualitative performance in continuous conditional 3D-aware image synthesis:
| Dataset/Condition | FID () | Notable Qualitative Results |
|---|---|---|
| CelebA (faces) | 7.64 | Interpolations between facial expressions, e.g., smile strength; consistent novel views |
| AFHQ (cat) | 13.65 | Smooth class transitions (e.g., cat↔dog), composition under view rotation |
| AFHQ (dog) | 43.37 | Fine detail and consistency across interpolated features |
| Cars (Peugeot-207i) | 71.06 | State-preserving generation at full rotation |
| Cars (all) | 43.3 | Outperforms pi-GAN: FID 43.3 vs. 104.5, KID 0.039 vs. 0.083 (at ) |
Qualitatively, C³G-NeRF demonstrates high-fidelity, multi-view-consistent synthesis, producing smooth transitions even outside the original label range (e.g., extrapolating “smile” strength or mixing animal classes). Unlike prior works, C³G-NeRF does not face notable degradation in single-class FID when conditioned, and composition of multiple entities is supported natively.
6. Comparison to Prior Conditional NeRF Approaches
C³G-NeRF extends beyond previous conditional 3D-aware GANs, such as GRAF, pi-GAN, and GIRAFFE, which lack explicit, continuous control. In contrast to CG-NeRF (Jo et al., 2021), which conditions on image or textual input (via CLIP) but lacks fine-grained manipulability, C³G-NeRF employs real-valued condition vectors, enabling unlimited interpolation and attribute scaling with consistent geometry and appearance.
The use of elementwise projected conditional vectors to modulate latent codes is a key architectural distinction, preventing vanishing gradients and supporting disentanglement. Residual blocks are essential across the architecture for stable conditional training and effective semantic control.
7. Limitations and Future Directions
C³G-NeRF requires accurately labeled datasets and does not support zero-shot generalization or free-form text conditioning. Scaling to higher resolutions ( and above), as well as more complex or dynamic scenes (e.g., articulated bodies, lighting), is not yet demonstrated. Inverse inference—recovering latent and condition vectors from real images to enable unsupervised editing—remains an open challenge. Future research may seek to bridge these gaps by integrating zero-shot or text-based conditioning, scalable architectures, and enhanced scene compositionality (Kim et al., 2023).