sxl142 / TEx-Face

33 stars 2 forks source link

TEx-Face

Controllable 3D Face Generation with Conditional Style Code Diffusion (AAAI2024)

[Project Page | ArXiv | Sup]

Installation

conda create -n texface python=3.8 -y
pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113

pretrained model

1. Download EG3D and ir_se50, put them into 'inversion/pretrained'

2. Download Re-PoI.

3. Download SCD and put it into 'generation/checkpoints'.

Test Data

Download Test Data

Test Inversion

cd inversion
python scripts/test_celeba.py ./checkpoints.pt

Test Generation

cd generation
python scripts/infer.py 
python scripts/gen_videos.py