This is a implementation of the 3D FLAME model in PyTorch
This is an implementation of the FLAME 3D head model in PyTorch.
We also provide Tensorflow FLAME, a Chumpy-based FLAME-fitting repository, and code to convert from Basel Face Model to FLAME.
FLAME is a lightweight and expressive generic head model learned from over 33,000 of accurately aligned 3D scans. FLAME combines a linear identity shape space (trained from head scans of 3800 subjects) with an articulated neck, jaw, and eyeballs, pose-dependent corrective blendshapes, and additional global expression blendshapes. For details please see the scientific publication
Learning a model of facial shape and expression from 4D scans Tianye Li*, Timo Bolkart*, Michael J. Black, Hao Li, and Javier Romero ACM Transactions on Graphics (Proc. SIGGRAPH Asia) 2017
and the supplementary video.
The code uses Python 3.7 and it is tested on PyTorch 1.4.
python3.7 -m venv /.virtualenvs/FLAME_PyTorch source /.virtualenvs/FLAME_PyTorch/bin/activate
git clone https://github.com/soubhiksanyal/FLAME_PyTorch cd FLAME_PyTorch pip install -r requirements.txt mkdir model
Please note we used the pose dependent conture for the face as introduced by RingNet Project.
Run the following command from the terminal
python main.py
FLAME is available under Creative Commons Attribution license. By using the model or the code code, you acknowledge that you have read the license terms (https://flame.is.tue.mpg.de/modellicense), understand them, and agree to be bound by them. If you do not agree with these terms and conditions, you must not use the code.
When using this code in a scientific publication, please cite
@article{FLAME:SiggraphAsia2017, title = {Learning a model of facial shape and expression from {4D} scans}, author = {Li, Tianye and Bolkart, Timo and Black, Michael. J. and Li, Hao and Romero, Javier}, journal = {ACM Transactions on Graphics, (Proc. SIGGRAPH Asia)}, volume = {36}, number = {6}, year = {2017}, url = {https://doi.org/10.1145/3130800.3130813} }
FLAME supports several projects such as
FLAME is part of SMPL-X: : A new joint 3D model of the human body, face and hands together
If you have any questions regarding the PyTorch implementation then you can contact us at [email protected] and [email protected]
This repository is build with modifications from SMPLX.