All Projects → TimoBolkart → Bfm_to_flame

TimoBolkart / Bfm_to_flame

Convert from Basel Face Model (BFM) to the FLAME head model

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Bfm to flame

Tf flame
Tensorflow framework for the FLAME 3D head model. The code demonstrates how to sample 3D heads from the model, fit the model to 2D or 3D keypoints, and how to generate textured head meshes from Images.
Stars: ✭ 193 (+250.91%)
Mutual labels:  computer-graphics, 3d-models
Seam Erasure
Seamlessly erase seams from your favorite 3D models.
Stars: ✭ 80 (+45.45%)
Mutual labels:  computer-graphics, 3d-models
Tree Gen
Procedural generation of tree models in blender
Stars: ✭ 465 (+745.45%)
Mutual labels:  computer-graphics, 3d-models
Flame pytorch
This is a implementation of the 3D FLAME model in PyTorch
Stars: ✭ 153 (+178.18%)
Mutual labels:  computer-graphics, 3d-models
Voca
This codebase demonstrates how to synthesize realistic 3D character animations given an arbitrary speech signal and a static character mesh.
Stars: ✭ 513 (+832.73%)
Mutual labels:  computer-graphics, 3d-models
Altium Library
Open source Altium Database Library with over 147,000 high quality components and full 3d models.
Stars: ✭ 875 (+1490.91%)
Mutual labels:  3d-models
Fluid Engine Dev
Fluid simulation engine for computer graphics applications
Stars: ✭ 1,007 (+1730.91%)
Mutual labels:  computer-graphics
Scannet
Stars: ✭ 860 (+1463.64%)
Mutual labels:  computer-graphics
Plen 3dmodel fusion360
PLEN2's 3D model data implemented by Autodesk Fusion 360.
Stars: ✭ 24 (-56.36%)
Mutual labels:  3d-models
Gloom
A minimalistic boilerplate for OpenGL with C++.
Stars: ✭ 54 (-1.82%)
Mutual labels:  computer-graphics
Solarsys
Realistic Solar System simulation with three.js
Stars: ✭ 49 (-10.91%)
Mutual labels:  computer-graphics
Spectral Brdf Explorer
⚡️💻 OpenGL application inspired by Walt Disney Animation Studios BRDF Viewer. A BRDF Viewer that support standard RGB and spectral data (tristimulus values) color calculation.
Stars: ✭ 36 (-34.55%)
Mutual labels:  computer-graphics
R1b
A thermal-printer-oriented, 1-bit graphics rasterizer for 2D and 3D
Stars: ✭ 29 (-47.27%)
Mutual labels:  computer-graphics
Melo
melo is mesh loader for OBJ, glTF2 and PLY
Stars: ✭ 41 (-25.45%)
Mutual labels:  3d-models
St Cgan
Dataset and Code for our CVPR'18 paper ST-CGAN: "Stacked Conditional Generative Adversarial Networks for Jointly Learning Shadow Detection and Shadow Removal"
Stars: ✭ 13 (-76.36%)
Mutual labels:  computer-graphics
3d Tiles
Specification for streaming massive heterogeneous 3D geospatial datasets 🌎
Stars: ✭ 1,054 (+1816.36%)
Mutual labels:  3d-models
Geometric Textures
Stars: ✭ 27 (-50.91%)
Mutual labels:  computer-graphics
Awesome Creative Coding
Creative Coding: Generative Art, Data visualization, Interaction Design, Resources.
Stars: ✭ 8,696 (+15710.91%)
Mutual labels:  computer-graphics
Meshcnn
Convolutional Neural Network for 3D meshes in PyTorch
Stars: ✭ 1,032 (+1776.36%)
Mutual labels:  computer-graphics
Redner
Differentiable rendering without approximation.
Stars: ✭ 964 (+1652.73%)
Mutual labels:  computer-graphics

Convert from Basel Face Model (BFM) to FLAME

This repository demonstrates

  1. how to create a FLAME texture model from the BFM vertex color space, and
  2. how to convert a BFM mesh to a FLAME mesh.

About FLAME

FLAME is a lightweight and expressive generic head model learned from over 33,000 of accurately aligned 3D scans. Public FLAME related repositories:

Setup

Install pip and virtualenv

sudo apt-get install python3-pip python3-venv

Clone the git project:

git clone https://github.com/TimoBolkart/BFM_to_FLAME.git

Set up and activate virtual environment:

mkdir <your_home_dir>/.virtualenvs
python3 -m venv <your_home_dir>/.virtualenvs/BFM_to_FLAME
source <your_home_dir>/.virtualenvs/BFM_to_FLAME/bin/activate

Make sure your pip version is up-to-date:

pip install -U pip

Install requirements

pip install numpy==1.19.4
pip install h5py==3.1.0
pip install chumpy==0.70 
pip install opencv-python==4.4.0.46

Create texture model

Download BFM 2017 (i.e. 'model2017-1_bfm_nomouth.h5') from here and place it in the model folder. Download inpainting masks from here and place it in the data folder.

Running

python col_to_tex.py

outputs a 'FLAME_albedo_from_BFM.npz' in the output folder. This file can be used with several FLAME-based repositories like TF_FLAME or FLAME photometric optimization.

Convert meshes

Install mesh processing libraries from MPI-IS/mesh within the virtual environment. Download FLAME from here and place it in the model folder.

Running

python mesh_convert.py

outputs a FLAME mesh for a specified BFM mesh. The demo supports meshes in 'BFM 2017', 'BFM 2009', or 'cropped BFM 2009' (i.e. as used by 3DDFA) topology.

Citing

When using this code, the generated texture space, or FLAME meshes 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}
}

When using the converted texture space, please further follow the license agreement of the BFM model as specified here.

Acknowledgement

We thank the authors of the BFM 2017 model for making the model publicly available.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].