tvaranka / fineface

Towards Localized Fine-Grained Control for Facial Expression Generation
Apache License 2.0
58 stars 2 forks source link

FineFace

Towards Localized Fine-Grained Control for Facial Expression Generation

Teaser figure

Environment setup

conda create -n fineface python=3.11
conda activate fineface
pip install -r requirements.txt

Running inference

Commandline: Change prompt and AUs from the demo.py file

python demo.py

With python using diffusers

from fineface import FineFacePipeline

pipe = FineFacePipeline()
prompt = "a closeup of a boy in a park"
aus = {"AU1": 2.5, "AU6": 2.5, "AU12": 5}
image = pipe(prompt, aus).images[0]

What are Action Units (AUs)?

Action Units

For a more comprehensive understanding, see GIFs and images of each AU from https://melindaozel.com/facs-cheat-sheet/.

Citation

@varanka{varanka2024fineface,
      title={Towards Localized Fine-Grained Control for Facial Expression Generation}, 
      author={Tuomas Varanka and Huai-Qian Khor and Yante Li and Mengting Wei and Hanwei Kung and Nicu Sebe and Guoying Zhao},
      year={2024},
      eprint={2407.20175},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2407.20175}, 
}