Deep Unsupervised 3D SfM Face Reconstruction Based on Massive Landmark Bundle Adjustment.
This repository shows two tasks: Face landmark detection and Face 3D reconstruction, which is described in this paper: Deep Unsupervised 3D SfM Face Reconstruction Based on Massive Landmark Bundle Adjustment.
pip install -r requirement.txt
FaceLandmark/model/
python Facial_landmark.py
Download face 3D reconstruction pre-trained model at GoogleDrive, and put it into FaceReconstruction/checkpoints/
Run the inference.py
file to generate disparity map
python inference.py --dataset-dir './FaceReconstruction/test_image/' --output-dir './FaceReconstruction/output/' --pretrained './FaceReconstruction/checkpoints/dispnet_model_best.pth.tar' --resnet-layers 18 --output-disp
generate_ply.py
file to generate point cloud .ply
filepython generate_ply.py