Reconstruct a 3D face mesh from a single portrait photo for research or animation purposes
Benchmark 3D face reconstruction accuracy on standard datasets using the provided MATLAB scripts
Try face reconstruction via the Docker CPU image without setting up GPU dependencies
Requires CUDA GPU with specific CUDA 7.5/8.0 and CuDNN 5.1 versions, Docker image available for CPU-only testing.
VRN is a research project that takes a regular photograph of a face and produces a three-dimensional model of it. The full name is Volumetric Regression Network, and the core technique treats face reconstruction as a segmentation problem rather than a geometric estimation problem. It produces a 3D volume spatially aligned with the input image, and you can extract a surface mesh from that volume. The code was developed for a paper published at an international computer vision conference in 2017. The authors released both MATLAB and Python workflows. MATLAB produces higher-quality results and was used for the paper's measurements, so the README recommends it for any work where accuracy matters. A Python and shell script alternative exists for users who do not have a MATLAB license. Getting the code running requires a GPU. The software is built on Torch7, a machine learning framework, and needs CUDA (NVIDIA's GPU computing platform) at version 7.5 or 8.0 along with CuDNN version 5.1. The README provides a detailed installation walkthrough tested on Fedora and CentOS Linux and notes that Windows is unlikely to work. A Docker image for CPU-only use is available on Docker Hub for anyone who wants to try the reconstruction without going through GPU setup. Several example face images from a standard academic dataset are included in the repository. The neural network model weights must be downloaded separately using an included download script. An online demo on the project's website lets anyone try the reconstruction in a browser without installing anything locally. The code is released under the MIT License, which allows free use and modification for any purpose as long as the copyright notice is kept.
← aaronjackson on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.