DF2Net icon indicating copy to clipboard operation
DF2Net copied to clipboard

DF2Net: A Dense-Fine-Finer Network for Detailed 3D Face Reconstruction

DF2Net: A Dense-Fine-Finer Network for Detailed 3D Face Reconstruction

This repository contains our work in ICCV19 This paper proposes a deep Dense-Fine-Finer Network (DF2Net) to address the challenging problem of high-fidelity 3D face reconstruction from a single image. DF2Net is composed of three modules, namely D-Net, F-Net, and Fr-Net. It progressively refines the subtle facial details such as small crow’s feet and wrinkles. We introduce three types of data to train DF2Net with different training strategies. More details can be seen in our paper. framework
Xiaoxing Zeng, Xiaojiang Peng, Yu Qiao. DF2Net: A Dense-Fine-Finer Network for Detailed 3D Face Reconstruction. ICCV, 2019

Dependencies

  • Pytorch 0.4.0
  • Python 2.7
  • Dlib
  • PIL

Run the demo

Face Crop

We crop the raw face image with bounding box of face detection, you can change to other more advanced detector.

Face Mask Generate

We also masking the cropped face with 68 face landmarks detector.

DownLoad the pretrained modelgoogle drive baidu drive access code:f5tb and copy it to ./model. DownLoad the shape_predictor_68_face_landmarks.dat google drive biadu drive access code :yi4u

RUN

python demo.py

Show the result with Matlab

show_output.m

Show the textured raw mesh

python pointcloud2rawmesh.py

Note

There may be some visual different from our results of paper to our demo, this is due to the different of cropping and masking way.

Citation

@inproceedings{zeng2019df2net,
title={DF2Net: A Dense-Fine-Finer Network for Detailed 3D Face Reconstruction},
author={Zeng, Xiaoxing and Peng, Xiaojiang and Qiao, Yu},
booktitle={Proceedings of the IEEE International Conference on Computer Vision},
pages={2315--2324},
year={2019}
}

Acknowledgements

Thanks the authors of extreme 3d faces,PRNet, SfSNet, pix2vertex for their inspiring works.