This project is forked from the official implementation of PSGAN: "PSGAN: Pose and Expression Robust Spatial-Aware GAN for Customizable Makeup Transfer".
I have added GPU inference, multiple-gpu support and optimized training and inference speed.
- more results
- video demos
- partial makeup transfer example
- interpolated makeup transfer example
- inference on GPU
- training code
The code was tested on Ubuntu 16.04, with Python 3.6 and PyTorch 1.5.
python3 demo.py
orpython3 demo.py --device cuda
for gpu inference.
NOTE: You need dlib gpu support for fully gpu inference.
- Download dataset from here.
- Check config.py to modify
default.data_path
to your data path.
Please consider citing this project in your publications if it helps your research. The following is a BibTeX reference. The BibTeX entry requires the url LaTeX package.
@inproceedings{jiang2019psgan,
title={PSGAN: Pose and Expression Robust Spatial-Aware GAN for Customizable Makeup Transfer},
author={Jiang, Wentao and Liu, Si and Gao, Chen and Cao, Jie and He, Ran and Feng, Jiashi and Yan, Shuicheng},
booktitle={CVPR},
year={2020}
}
Some of the codes are built upon face-parsing.PyTorch and BeautyGAN.