If you want to run the code, please make sure that you have created a virtual environment and installed the required libraries.
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
- Get the BFM weight here.
- Download the original BFM weightfile.
- Run
h5_to_bin.sh
to convert the weightfile. - Please make sure that CmakeList.txt has the correct path to the Libraries.
- In the directory,
mkdir build
cd build
cmake ..
make
./face_reconstruction ../images/micheal.jpeg ../images/wolverine.jpg
- See the reconstruction folder for the results.
- The left path is the source image and the right path is the target image.
- Ramandika Pranamulia
- Rachmadio Noval Lazuardi
- Utku Saglam
Please download the report here.