VoVanPhuc / makeup_priors

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: September 07 2025

Introduction of makeup_priors

Model Details of makeup_priors

Makeup Prior Models for 3D Facial Makeup Estimation and Applications (CVPR2024)

Overview The PyTorch code for the following paper:

Makeup Prior Models for 3D Facial Makeup Estimation and Applications ,
Xingchao Yang, Takafumi Taketomi, Yuki Endo, Yoshihiro Kanamori,
CVPR 2024

This project is based on and extends the following projects and uses some of the dataset, code and models from them:

Makeup Extraction of 3D Representation via Illumination-Aware Image Decomposition ,
Xingchao Yang, Takafumi Taketomi, Yoshihiro Kanamori,
Computer Graphics Forum (Proc. of Eurographics 2023)

The makeup-extract-dataset is used to build the makeup prior models. If you find this dataset useful, please consider citing the papers.

Prerequisites
  1. Python3
  2. PyTorch with CUDA
  3. Nvdiffrast
Installation

Run the following commands for installing other packages:

pip install -r requirements.txt
Inference
Prepare prerequisite models

Download 3DMM model from FLAME and put them into resources folder

We need the following models for our project:

albedoModel2020_FLAME_albedoPart.npz
FLAME_masks.pkl
FLAME_texture.npz
generic_model.pkl (from FLAME2020)
Makeup Priors and Pretrained Models

Put the makeup priors and trained models to root dir . These files contain makeup prior models (PCA and StyleGAN2), and associated inference weights for their coefficients.

\resources\priors
\checkpoints
Demo

Perform a sequence of processes on img_0.jpg , img_1.jpg , and img_non.jpg in the sample folder. We will show a series of makeup estimation, reconstruction, interpolation and transfer demos. The results of the execution can be found in the results folder

Preprocess Detect the landmark, and crop the image so that it aligns with the face. Then obtain an image of the skin area:

python preprocess.py -i './sample/img_0.png' -o './results/align' -n 'aligned_img_0.png' -m 'aligned_mask_0.png'
python preprocess.py -i './sample/img_1.png' -o './results/align' -n 'aligned_img_1.png' -m 'aligned_mask_1.png'
python preprocess.py -i './sample/img_non.png' -o './results/align' -n 'aligned_img_non.png' -m 'aligned_mask_non.png'

PCA Prior Model based Makeup Estimation

python pca_estimate.py -i './results/align/aligned_img_0.png' -o './results/pca_reconstruction/0'
python pca_estimate.py -i './results/align/aligned_img_1.png' -o './results/pca_reconstruction/1'

StyleGAN2 Prior Model based Makeup Estimation

python style_estimate.py -i './results/align/aligned_img_0.png' -m './results/align/aligned_mask_0.png' -o './results/style_reconstruction/0'
python style_estimate.py -i './results/align/aligned_img_1.png' -m './results/align/aligned_mask_1.png' -o './results/style_reconstruction/1'

PCA based Makeup Interpolation and transfer

python pca_interpolate_transfer.py

StyleGAN2 based Makeup Interpolation and transfer

python style_interpolate_transfer.py

Citation

If you find our work useful for your research, please consider citing our papers:

@inproceedings{yang2024makeuppriors,
          author = {Yang, Xingchao and Taketomi, Takafumi and endo, yuki and Kanamori, Yoshihiro},
          title={Makeup Prior Models for {3D} Facial Makeup Estimation and Applications},
          booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
          year={2024}
        }
@article{makeup-extraction,
          author = {Yang, Xingchao and Taketomi, Takafumi and Kanamori, Yoshihiro},
          title = {Makeup Extraction of 3D Representation via Illumination-Aware Image Decomposition},
          journal = {Computer Graphics Forum},
          volume = {42},
          number = {2},
          pages = {293-307},
          year = {2023}
      }
Acknowledgements

Here are some of the resources we benefit from:

Runs of VoVanPhuc makeup_priors on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About makeup_priors huggingface.co Model

makeup_priors huggingface.co

makeup_priors huggingface.co is an AI model on huggingface.co that provides makeup_priors's model effect (), which can be used instantly with this VoVanPhuc makeup_priors model. huggingface.co supports a free trial of the makeup_priors model, and also provides paid use of the makeup_priors. Support call makeup_priors model through api, including Node.js, Python, http.

makeup_priors huggingface.co Url

https://huggingface.co/VoVanPhuc/makeup_priors

VoVanPhuc makeup_priors online free

makeup_priors huggingface.co is an online trial and call api platform, which integrates makeup_priors's modeling effects, including api services, and provides a free online trial of makeup_priors, you can try makeup_priors online for free by clicking the link below.

VoVanPhuc makeup_priors online free url in huggingface.co:

https://huggingface.co/VoVanPhuc/makeup_priors

makeup_priors install

makeup_priors is an open source model from GitHub that offers a free installation service, and any user can find makeup_priors on GitHub to install. At the same time, huggingface.co provides the effect of makeup_priors install, users can directly use makeup_priors installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

makeup_priors install url in huggingface.co:

https://huggingface.co/VoVanPhuc/makeup_priors

Url of makeup_priors

makeup_priors huggingface.co Url

Provider of makeup_priors huggingface.co

VoVanPhuc
ORGANIZATIONS

Other API from VoVanPhuc