cleardusk / 3DDFA

The PyTorch improved version of TPAMI 2017 paper: Face Alignment in Full Pose Range: A 3D Total Solution.
MIT License
3.6k stars 651 forks source link

adding texture to 3d model #34

Closed cnaaq closed 5 years ago

cnaaq commented 5 years ago

Hi,

In your documentation, in Application -> 2. Face Reconstruction, there is a 3D model and then the texture is added to that. Is this also addressed in your code? What I understood from the .ply file is that it only contains shape, and not texture and light. Right?

Thanks again for your wonderful work!

gsygsy96 commented 5 years ago

face3d will help you.

cleardusk commented 5 years ago

Sorry for that I have not a chance to update these days. If you have the dense correspondence from vertices to image pixels, you can directly set the color attribute of the vertex to corresponding pixel RGB value. Or you can refer here1 and here2.

cleardusk commented 5 years ago

Yes, @mehameha998. PRNet and face3d provide several codebases for 3D face related applications. But the author and I are all busy these days, so you @cnaaq may first dive into these codes.

imnaren142 commented 5 years ago

@cleardusk So, will I get the only 3D model without the texture of human being face in face reconstruction?

cleardusk commented 5 years ago

I have updated the code. But the texture is sampled from the original image, so the occlusion region may appear strange.

imnaren142 commented 5 years ago

@cleardusk How do I get the 3D reconstruction for full human?

Jianlong-Nie commented 5 years ago

您好 贴图代码现在更新了吗?

cleardusk commented 5 years ago

您好,由于精力有限,贴图代码没有更新。欢迎提交 PR ~