Aashish Rai, Hiresh Gupta*, Ayush Pandey*, Francisco Vicente Carrasco, Shingo Jason Takagi, Amaury Aubel, Daeil Kim, Aayush Prakash, Fernando de la Torre
[Project Page] [Arxiv] [Demo Results]
We propose a 3D face generative model that generates high-quality albedo and precise 3D shape by leveraging StyleGAN2, resulting in a photo-realistic rendered image.
Conda environment: Refer environment.yml
Download pre-trained models and put in the respective folders.
Follow [MICA] to download insightface and MICA pre-trained models. Put the weights in 'insightface' and 'data/mica_pretrained' folders, respectively. Follow [DECA] to download DECA pre-trained weights. Put them in the 'data' folder.
Download AlbedoGAN modified weights from the following [LINK]. Put these modified ArcFace backbone and DECA weights to generate better reconstruction results.
-
Generate Random 3D Faces (mesh and texture)
python demos/demo_generate.py
-
Reconstruct 3D Faces from 2D Images
python demos/demo_reconstruct.py
-
Generate multi-pose videos
python video.py
For functions or scripts that are based on external sources, we acknowledge the origin individually in each file. Our code is inspired by the following code repositories. Please make sure to refer to their and our license terms before downloading the pre-trained weights.
The code is available under X11 License. Please read the license terms available at [Link]. Quick summary available at [Link].
If you find this paper/code useful, please consider citing:
@article{rai2023towards,
title={Towards Realistic Generative 3D Face Models},
author={Rai, Aashish and Gupta, Hiresh and Pandey, Ayush and Carrasco, Francisco Vicente and Takagi, Shingo Jason and Aubel, Amaury and Kim, Daeil and Prakash, Aayush and De la Torre, Fernando},
journal={arXiv preprint arXiv:2304.12483},
year={2023}
}