Skip to content

[TNNLS2023] SSAT++: A Semantic-Aware and Versatile Makeup Transfer Network With Local Color Consistency Constraint

License

Notifications You must be signed in to change notification settings

Snowfallingplum/SSAT_plus

Repository files navigation

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

Author

Zhaoyang Sun; Yaxiong Chen; Shengwu Xiong

News

The framework of SSAT++

Requirements

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

Quick Start

  1. Download the pre trained model and place it in the weights folder. Baidu Drive, password: 7pim.
  2. We have provided some examples, just run inference.py directly. python inference.py

How to test a custom dataset

  1. Follow BeautyGAN to locate and crop facial images.
  2. 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.
  3. Put the results of face parsing in the .\examples\seg1\makeup and \examples\seg1\non-makeup
  4. python inference.py.

Download our dataset

Our dataset can be downloaded here Baidu Drive, password: cdrb.

Extract the downloaded file and place it on top of this folder.

Training code

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

Inference code

python inference.py

Our results

Citation

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}
}

Acknowledgement

Some of the codes are build upon PSGAN, Face Parsing and aster.Pytorch.

License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

CC BY-NC-SA 4.0

About

[TNNLS2023] SSAT++: A Semantic-Aware and Versatile Makeup Transfer Network With Local Color Consistency Constraint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages