SSAT++: A Semantic-Aware and Versatile Makeup Transfer Network With Local Color Consistency Constraint
This is the official pytorch code for "SSAT++: A Semantic-Aware and Versatile Makeup Transfer Network With Local Color Consistency Constraint", which has been accepted by TNNLS2023.
The training code, testing code, dataset, and pre-trained model have all been open sourced
Zhaoyang Sun; Yaxiong Chen; Shengwu Xiong
-
Our paper SHMT was accepted by NeurIPS2024. Paper link and code link.
-
Our paper CSD-MT was accepted by CVPR2024. Paper link and code link.
-
Our paper SSAT++ was accepted by TNNLS2023. Paper link and code link.
-
Our paper SSAT was accepted by AAAI2022. Paper link and code link.
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 SSAT
can be created
and activated with:
conda env create -f environment.yaml
conda activate SSAT
- Download the pre trained model and place it in the weights folder. Baidu Drive, password: 7pim.
- We have provided some examples, just run inference.py directly.
python inference.py
- Follow BeautyGAN to locate and crop facial images.
- 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 .\examples\seg1\makeup and \examples\seg1\non-makeup
- python inference.py.
Our dataset can be downloaded here Baidu Drive, password: cdrb.
Extract the downloaded file and place it on top of this folder.
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
python inference.py
If this work is helpful for your research, please consider citing the following BibTeX entry.
@article{sun2024ssat++,
title={SSAT++: A Semantic-Aware and Versatile Makeup Transfer Network With Local Color Consistency Constraint},
author={Sun, Zhaoyang and Chen, Yaxiong and Xiong, Shengwu},
journal={IEEE Transactions on Neural Networks and Learning Systems},
year={2023},
publisher={IEEE}
}
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.