Implementation of https://arxiv.org/abs/1912.13457
https://github.com/taotaonice/FaceShifter
pip install -r requirements.txt
git clone https://github.com/NVIDIA/apex
cd apex
pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
Get embedding model weights
Get CelebA dataset and extract to ../img_align_celeba
Preprocess data
python face_modules/preprocess_images.py
python train_aei.py
Monitor visdom
by visiting
https://HOST:8097
G_latest.pth
and D_latest.pth
into ./saved_models
folderpython demo_cam.py
./source.jpg
to change demo source image