yfeng95 / PRNet

Joint 3D Face Reconstruction and Dense Alignment with Position Map Regression Network (ECCV 2018)
http://openaccess.thecvf.com/content_ECCV_2018/papers/Yao_Feng_Joint_3D_Face_ECCV_2018_paper.pdf
MIT License
4.96k stars 944 forks source link

Small bug in 3D vertices saver #52

Open AviP1234 opened 6 years ago

AviP1234 commented 6 years ago

Hi, First of all, I would like to thank you for sharing your impressive work. The released code has a small bug in the 3D vertices saver: The hight used in the line: save_vertices[:,1] = h - 1 - save_vertices[:,1] Is of the pre-cropped image (I.e. if max_size> 1000: image = rescale(image, 1000./maxsize) may had a diffrent hight ) To fix the bug just replace the orignal line in the following lines with: [h1, w1, ] = image.shape save_vertices[:,1] = h1 - 1 - save_vertices[:,1] Thank you, Avi

PedroOrona commented 6 years ago

If I make this correction I will get a frontal face?