HyperStyle3D: Text-Guided 3D Portrait Stylization via Hypernetworks

Zhuo Chen, Xudong Xu, Yichao Yan, Ye Pan, Wenhan Zhu, Wayne Wu, Bo Dai, Xiaokang Yang

Abstract

Portrait stylization is a long-standing task enabling extensive applications. Although 2D-based methods have made great progress in recent years, real-world applications such as metaverse and games often demand 3D content. On the other hand, the requirement of 3D data, which is costly to acquire, significantly impedes the development of 3D portrait stylization methods. In this paper, inspired by the success of 3D-aware GANs that bridge 2D and 3D domains with 3D fields as the intermediate representation for rendering 2D images, we propose a novel method, dubbed HyperStyle3D, based on 3D-aware GANs for 3D portrait stylization. At the core of our method is a hyper-network learned to manipulate the parameters of the generator in a single forward pass. It not only offers a strong capacity to handle multiple styles with a single model, but also enables flexible fine-grained stylization that affects only texture, shape, or local part of the portrait. While the use of 3D-aware GANs bypasses the requirement of 3D data, we further alleviate the necessity of style images with the CLIP model being the stylization guidance. We conduct an extensive set of experiments across the style, attribute, and shape, and meanwhile, measure the 3D consistency. These experiments demonstrate the superior capability of our HyperStyle3D model in rendering 3D-consistent images in diverse styles, deforming the face shape, and editing various attributes.

Introduction

Portrait stylization—transforming real photographs into artistic domains like Pixar, paintings, or caricatures—is a cornerstone of digital entertainment. While 2D methods leveraging StyleGAN have achieved high fidelity, they frequently fail to maintain 3D consistency. When a stylized 2D face is rotated, features often "pop" or shift unnaturally, making them unsuitable for 3D environments like the metaverse or modern gaming.

Developing 3D stylization methods is challenging due to the scarcity of high-quality 3D stylized data and the computational cost of per-style optimization. Furthermore, disentangling "style" (texture/color) from "shape" (geometry) remains a significant hurdle; most models struggle to apply multiple transformations, such as making a character both "Pixar-style" and "Fat," without visual artifacts.

Methodology: The Hyper-Module

HyperStyle3D addresses these challenges by building upon StyleSDF, a pre-trained 3D-aware GAN. Rather than manipulating latent codes, which can lead to entangled results, the proposed framework operates directly in the parameter space of the generator.

The HyperStyle3D architecture predicts parameter offsets for a 3D-aware generator based on text prompts.

The central innovation is a Hypernetwork that predicts weight offsets ($\Delta\theta$) for the primary generator in a single forward pass. To achieve disentangled control, the hypernetwork is partitioned into three levels corresponding to the generator's hierarchy:

  • Coarse Layers ($H_c$): Control fundamental shape (e.g., "Long face").
  • Medium Layers ($H_m$): Control facial attributes (e.g., "Bearded").
  • Fine Layers ($H_f$): Control style and texture (e.g., "Painting").

The model is trained "zero-shot" using CLIP (Contrastive Language-Image Pre-training) guidance. By comparing rendered 2D images against target text prompts, the CLIP loss drives the weight updates. To maintain identity, the authors incorporate an ID Loss (ArcFace) and a Region Loss to prevent unintended edits to unrelated facial regions.

Key Results and Insights

HyperStyle3D demonstrates superior capability in rendering 3D-consistent images across diverse styles. Quantitative evaluations show a low depth error (~1.52), confirming that the 3D structure remains stable under heavy stylization.

Qualitative results demonstrating progressive multi-attribute editing and disentangled control over style, attribute, and shape.

Disentangled Control

A key insight is the "3/3/3 split" of the generator's linear layers. By balancing the hypernetwork's influence across these groups, the model allows for "overlying" edits. Users can simultaneously apply a shape change, an attribute change, and a style change without interference.

Generalization and Identity

Unlike methods requiring fine-tuning for each new style, the hypernetwork learns a general mapping from text-space to weight-space. This allows a single model to handle an infinite variety of styles. Interestingly, user studies and automated metrics show that stylization sometimes improves identity recognition scores, as exaggerated features can make a face more distinct.

Conclusion

HyperStyle3D provides a robust framework for text-guided 3D portrait stylization. By shifting from latent space to parameter space manipulation via hypernetworks, it achieves high-quality, 3D-consistent results with fine-grained control. While currently dependent on the underlying 3D-aware GAN's quality, the approach is representation-agnostic and could be extended to other architectures like Tri-planes or NeRFs in the future.

Summary updated

Abstract

Portrait stylization is a long-standing task enabling extensive applications. Although 2D-based methods have made great progress in recent years, real-world applications such as metaverse and games often demand 3D content. On the other hand, the requirement of 3D data, which is costly to acquire, significantly impedes the development of 3D portrait stylization methods. In this paper, inspired by the success of 3D-aware GANs that bridge 2D and 3D domains with 3D fields as the intermediate representation for rendering 2D images, we propose a novel method, dubbed HyperStyle3D, based on 3D-aware GANs for 3D portrait stylization. At the core of our method is a hyper-network learned to manipulate the parameters of the generator in a single forward pass. It not only offers a strong capacity to handle multiple styles with a single model, but also enables flexible fine-grained stylization that affects only texture, shape, or local part of the portrait. While the use of 3D-aware GANs bypasses the requirement of 3D data, we further alleviate the necessity of style images with the CLIP model being the stylization guidance. We conduct an extensive set of experiments across the style, attribute, and shape, and meanwhile, measure the 3D consistency. These experiments demonstrate the superior capability of our HyperStyle3D model in rendering 3D-consistent images in diverse styles, deforming the face shape, and editing various attributes.
BibTeX
@article{chen2024hyperstyle,
  author = {Zhuo Chen and Xudong Xu and Yichao Yan and Ye Pan and Wenhan Zhu and Wayne Wu and Bo Dai and Xiaokang Yang},
  title = {{HyperStyle3D: Text-Guided 3D Portrait Stylization via Hypernetworks}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2024},
  doi = {10.1109/tcsvt.2024.3407135},
}
Figure