https://github.com/abdallahdib/NextFace
可以对一个人的多张图片进行综合重建
运行
# Reconstruction from a single image
python optimizer.py --input path-to-your-input-image --output output-path-where-to-save-results
# Reconstruction from multiple images with same resolution (batch reconstruction)
python optimizer.py --input path-to-your-folder-that-contains-all-ur-images --output output-path-where-to-save-results
# Reconstruction from mutliple images for the same person
python optimizer.py --sharedIdentity --input path-to-your-folder-that-contains-all-ur-images --output output-path-where-to-save-results
the sharedIdentity flag tells the optimizer that all images belong to the same person. In such case, the shape identity and face reflectance attributes are shared across all images. This generally produces better face reflectance and geometry estimation.
The reflectance field of a face describes the reflectance properties responsible for complex lighting effects includ- ing diffuse, specular, inter-reflection and self shadowing.
结果
- 多图重建没有单张图片重建的质量好,比如眼瞳弥散得几乎占满眼眶。
- 看起来似乎只试用于白人。
单图重建:python optimizer.py --input ./input/003front.png --output output/
模型加载时间:3.81
图片加载、裁剪等图片处理的时间:2.15
使用模型预测和渲染的时间:78.429