Skip to content

Towards Localized Fine-Grained Control for Facial Expression Generation

License

Notifications You must be signed in to change notification settings

tvaranka/fineface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

About

Towards Localized Fine-Grained Control for Facial Expression Generation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages