nabeel3133 / combining3Dmorphablemodels

Project Page of Combining 3D Morphable Models: A Large scale Face-and-Head Model - [CVPR 2019]
http://openaccess.thecvf.com/content_CVPR_2019/html/Ploumpis_Combining_3D_Morphable_Models_A_Large_Scale_Face-And-Head_Model_CVPR_2019_paper.html
MIT License
86 stars 8 forks source link
bfm combined corresponding covariance deformation eigenspace eigenvectors gaussian lyhm matrix mesh morphable nicp pattern pca point principal registration regression shape

Combining 3D Morphable Models: A Large scale Face-and-Head Model

License: MIT GitHub repo size

This repository provides a MATLAB implementation of the CVPR 2019 Paper - Combining 3D Morphable Models: A Large scale Face-and-Head Model. It is implemented only till the Regression Matrix Calculation part.

Paper

Combining 3D Morphable Models: A Large scale Face-and-Head Model

Dependencies

Usage

1. Cloning the repository

git clone https://github.com/nabeel3133/combining3Dmorphablemodels.git

2. Downloading the models

3. Running the code

In order to run the code, launch MATLAB and follow the steps given below:

  1. Open the file Steps1to3.m located in combining3Dmorphablemodels/Regression Matrix Calculcation and run it. (Keep in mind that there is a variable named total_heads on line #7, you can change it to as much head shape parameters you want the regression matrix to learn from).
  2. After it is done executing, open the file nricp_run.m located in combining3Dmorphablemodels/Non Rigid Iterative Closest Point (NICP)/nricp-master/demos and run it. It will save Regression_Matrix.mat in the directory combining3Dmorphablemodels/Regression Matrix Calculcation.

4. Getting a Predicted Head

Both of the codes will output a file named Output_Head.obj located in the same directory. python head_prediction_rand_bfm.py will also save a file named Input_Face.obj which will contain the randomly generated BFM face.

Citation

If this work is useful for your research or if you use this implementation in your academic projects, please cite the following papers: