Abstract
For 3D face modeling, the recently developed 3D-aware neural rendering methods are able to render photorealistic face images with arbitrary viewing directions. The training of the parametric controllable 3D-aware face models, however, still relies on a large-scale dataset that is lab-collected. To address this issue, this paper introduces "StyleMorpheus", the first style-based neural 3D Morphable Face Model (3DMM) that is trained on in-the-wild images. It inherits 3DMM's disentangled controllability (over face identity, expression, and appearance) but without the need for accurately reconstructed explicit 3D shapes. StyleMorpheus employs an auto-encoder structure. The encoder aims at learning a representative disentangled parametric code space and the decoder improves the disentanglement using shape and appearance-related style codes in the different sub-modules of the network. Furthermore, we fine-tune the decoder through style-based generative adversarial learning to achieve photorealistic 3D rendering quality. The proposed style-based design enables StyleMorpheus to achieve state-of-the-art 3D-aware face reconstruction results, while also allowing disentangled control of the reconstructed face. Our model achieves real-time rendering speed, allowing its use in virtual reality applications. We also demonstrate the capability of the proposed style-based design in face editing applications such as style mixing and color editing.
Introduction
Creating controllable, 3D-aware face models usually involves a difficult trade-off. Traditional 3D Morphable Models (3DMMs) offer excellent parametric control over identity, expression, and lighting but struggle to render realistic hair, teeth, or fine textures due to their reliance on simplified 3D meshes. Conversely, Neural Radiance Fields (NeRFs) produce stunning photorealism but are computationally expensive and typically require high-quality, lab-captured data with perfect camera poses to avoid blurry results.
StyleMorpheus bridges this gap. It is the first style-based neural 3DMM trained entirely on "in-the-wild" 2D images. It combines the disentangled control of traditional 3DMMs with the photorealistic rendering of StyleGAN, achieving real-time performance without requiring explicit 3D geometry or expensive lab-collected datasets.
Architecture and Methodology
StyleMorpheus employs a novel style-based auto-encoder architecture designed for both disentanglement and efficiency.
The Encoder
The encoder uses a pre-trained ArcFace backbone to extract features, which are then processed by four semantic "heads." These heads produce disentangled style codes in a latent space ($\mathcal{Z}$) corresponding to identity ($z_{id}$), expression ($z_{expr}$), texture ($z_{tex}$), and lighting ($z_{light}$). These codes are aligned with non-linear 3DMM coefficients to ensure they represent meaningful physical attributes.
The Style-Based Decoder
The decoder follows a coarse-to-fine strategy to maintain real-time performance. It is divided into a low-resolution NeRF component and a high-resolution 2D rendering component.
- Low-Resolution NeRF: A NeRF module (32x32) handles the 3D geometry, conditioned on identity ($w_{id}$) and expression ($w_{expr}$) codes. It outputs point densities ($\sigma$) and point features ($r$).
- Volume Rendering: These are volume-rendered into a 32x32 feature map ($I_f$).
- Render Blocks: The feature map is passed through four "render blocks" (upsampling + modulated 2D convolutions) that use texture ($w_{tex}$) and lighting ($w_{light}$) codes to generate the final 512x512 image.
Two-Stage Training
The model is trained in two distinct stages:
- Stage 1: Reconstruction. Focuses on photometric (pixel-level) and perceptual losses to establish the base geometry and appearance.
- Stage 2: Adversarial Fine-tuning. The decoder is fine-tuned using Generative Adversarial Learning (GAN). This step is crucial for overcoming blurriness caused by inaccurate camera pose estimations in in-the-wild data, resulting in sharp, high-frequency details.
Datasets and Evaluation
The model was primarily trained on the FFHQ (Flickr-Faces-HQ) dataset, which contains 70,000 high-quality in-the-wild face images. Evaluation was conducted on CelebAMask-HQ to test generalization. Additionally, 3DMM coefficients were used as a regularization target to help the encoder learn a disentangled latent space.
Key Results and Applications
StyleMorpheus achieves state-of-the-art results in 3D-aware face reconstruction.
- Real-Time Performance: The model achieves 26 FPS on a consumer-grade NVIDIA RTX 3070 and 53 FPS on an A6000, making it viable for VR and AR applications.
- Superior Quality: It outperformed models like HeadNeRF and MoFaNeRF across standard metrics. On FFHQ, it achieved a PSNR of 26.038, significantly higher than HeadNeRF’s 23.858.
- Disentangled Editing: The architecture allows for impressive style mixing (e.g., swapping identities while keeping expressions) and facial part color editing by optimizing specific latent code offsets.
Limitations and Future Work
While robust, the model can struggle with extreme poses; if the initial camera pose estimation is poor, the 3D reconstruction may distort. Furthermore, because FFHQ consists mostly of neutral or smiling faces, the model's expression range is limited for highly exaggerated facial movements. Future work will focus on simultaneous optimization of camera pose and reconstruction, and leveraging video datasets to capture a wider range of dynamic expressions.
Summary updated