Skip to content
Example code for FLAME face model
Branch: master
Clone or download
Latest commit d3c4d3d May 25, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
data add landmarks order file May 25, 2019
fitting minor change Dec 5, 2017
gifs Add gifs May 20, 2019
models initial commit Nov 24, 2017
smpl_webuser initial commit Nov 24, 2017
.gitignore added .gitignore Nov 24, 2017 Update May 25, 2019 minor change Dec 5, 2017 minor change Dec 5, 2017

FLAME: Faces Learned with an Articulated Model and Expressions

This is an official FLAME repository. This repository is based on Chumpy. We also provide a Tensorflow-based FLAME framework.

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 3800 scans of human heads) with an articulated neck, jaw, and eyeballs, pose-dependent corrective blendshapes, and additional global expression blendshapes.

FLAME can e.g. be used to synthesize new motion sequences, by transferring the facial expression from a source actor to a target actor.

The animation shows the expression transfer between two subjects. For the target subject, only a static mesh is provided. 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.

This codebase demonstrates how to

  • Load and evaluate FLAME model
  • Fit FLAME model to 3D landmarks

To request for FLAME model and registrations, please see the project page

This repo is maintained by Tianye Li. The codes in smpl_webuser are directly from SMPL Python code.


This code uses Python 2.7 and need the following dependencies:


Clone the git project:

$ git clone

Set up virtual environment:

$ mkdir <your_home_dir>/.virtualenvs
$ virtualenv --system-site-packages <your_home_dir>/.virtualenvs/flame

Activate virtual environment:

$ cd flame-fitting
$ source <your_home_dir>/.virtualenvs/flame/bin/activate

Update the PYTHONPATH environment variable so that the system knows how to find the SMPL code. Add the following lines to your ~/.bash_profile file (create it if it doesn't exist; Linux users might have ~/.bashrc file instead), set the location to where you clone the project to.


and run:

$ source ~/.bash_profile

To install numpy, scipy and chumpy:

$ pip install numpy
$ pip install scipy
$ pip install chumpy

To deactivate the virtual environment:

$ deactivate


See and for the demos.

Supported projects

FLAME supports several projects such as


When using this code in a scientific publication, please cite FLAME

  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 = {}


The FLAME model is under a Creative Commons Attribution license. By using this code, you acknowledge that you have read the terms and conditions (, 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. You further agree to cite the FLAME paper when reporting results with this model.

You can’t perform that action at this time.