The codes are based on python3.8+, CUDA version 11.0+. The specific configuration steps are as follows:
-
Create conda environment
conda create -n fadm python=3.8 conda activate fadm
-
Install pytorch
conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=11.1 -c pytorch -c conda-forge
-
Installation profile
pip install -r requirements.txt
Checkpoints can be found under the following link: link.
- Download the
data.zip, and unzip to the pathmodules/deca. - Download the
FOMM.pth,Facevid.pth, anddiffusion.pthto the pathmodules/FOMM/ckpt/,modules/Facevid/ckpt/, andmodules/diffusion/ckpt/respectively.
To run a reenactment demo, download checkpoint and run the following command:
python demo.pyAnd run the following command for training:
sh run.sh