This is the official pytorch code for "Exploring a Double Task Learning Framework for Makeup Transfer (DTMT)".
The training code and testing code have all been open sourced
We recommend that you just use your own pytorch environment; the environment needed to run our model is very simple. If you do so, please ignore the following environment creation.
A suitable conda environment named DTMT can be created
and activated with:
conda env create -f environment.yaml
conda activate DTMT
- MT dataset can be downloaded here BeautyGAN. Extract the downloaded file and place it on top of this folder.
- Prepare face parsing. Face parsing is used in this code. In our experiment, face parsing is generated by https://github.com/zllrunning/face-parsing.PyTorch.
- Put the results of face parsing in the .\MT-Dataset\seg1\makeup and .\MT-Dataset\seg1\non-makeup
We have set the default hyperparameters in the options.py file, please modify them yourself if necessary. To train the model, please run the following command directly
python train.py
We have set the default hyperparameters in the options.py file, please modify them yourself if necessary. To inference the model, please run the following command directly
python inference.py
Some of the codes are build upon PSGAN, Face Parsing and aster.Pytorch.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.


