You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Official implementation of paper "Lifting 2D StyleGAN for 3D-Aware Face Generation".
Requirements
You can create the conda environment by using conda env create -f environment.yml
Training
Training from pre-trained StyleGAN2
Download our pre-trained StyleGAN and face embedding network from here for training. Unzip them into the pretrained/ folder. Then you can start training by:
python tools/train.py config/ffhq_256.py
Note that you do not need an image dataset here becuase we simply lift the StyleGAN2 using images generated by itself.
Training from custom data
We use a re-cropped version of FFHQ to fit the style of our face embedding network. You can find this dataset here. The cats dataset can be found here.
To train a StyleGAN2 from you own dataset, check the content under stylegan2-pytorch folder. After training a StyleGAN2, you can lift it using our training code. Note that our method might not apply to other kind of images, if they are very different from human faces.