#501 · Primary category: Computer Vision

photometric_optimization

3d-face-reconstruction 3d-graphics 3d-model 3d-shapes computer-vision ffhq flame-model flame-texture optimization python pytorch-implementation pytorch3d texture-maps texture-space

Photometric optimization code for creating the FLAME texture space and other applications

Project last updated:03/31/22

GitHub Stars

592

Forks

97

Contributors

2

License

MIT

Why we included this project

Photometric fitting of a textured FLAME head model to a single in-the-wild photo is the core of this repository, and it covers the whole analysis-by-synthesis loop rather than just one piece. The code optimizes FLAME's shape, pose, and expression parameters along with spherical-harmonics lighting and a texture offset, using landmark and photometric losses restricted to the skin region so occlusion does not wreck the fit. It also documents how to build a PCA texture space from roughly 1,500 FFHQ images, including a texture-completion step with an inpainting network to fill occluded areas. That second part matters because FLAME itself has no appearance space, so this doubles as a recipe for constructing one from scratch. The single-image demo runs once PyTorch3D is set up, though you will need to register on the FLAME site to download the model and texture assets.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category