Towards Localized Fine-Grained Control for Facial Expression Generation
conda create -n fineface python=3.11
conda activate fineface
pip install -r requirements.txt
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]
- Action Units are movements of facial muscles that are identified and used to break down facial expressions, like raising inner eyebrows (AU1).
- By mixing different AUs, it is possible to create complex facial expressions, with each AU adding its own unique intensity.
- See below for a quick overview.
For a more comprehensive understanding, see GIFs and images of each AU from https://melindaozel.com/facs-cheat-sheet/.
@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},
}