microsoft / Deep3DFaceReconstruction

Accurate 3D Face Reconstruction with Weakly-Supervised Learning: From Single Image to Image Set (CVPRW 2019)
MIT License
2.18k stars 443 forks source link

About render 3d model questions #149

Closed steventai0212 closed 3 years ago

steventai0212 commented 3 years ago

Hi, I have a question. In your code it's easy to project a 3d face model with texture to 2d image. And I have no idea how to project a 3d face model without texture (the color may like gray) on 2d just like you show the result in readme file.

steventai0212 commented 3 years ago

image like this

YuDeng commented 3 years ago

Well, you can set the face texture to a constant (e.g 128) in https://github.com/microsoft/Deep3DFaceReconstruction/blob/5b131a3e67597da67409486e20db50007f48427d/face_decoder.py#L45.

steventai0212 commented 3 years ago

Well, you can set the face texture to a constant (e.g 128) in

https://github.com/microsoft/Deep3DFaceReconstruction/blob/5b131a3e67597da67409486e20db50007f48427d/face_decoder.py#L45

.

Thanks, it solve my problem!