changhongjian / Deep3DFaceReconstruction-pytorch

Pytorch version of Deep3DFaceReconstruction
78 stars 6 forks source link

How to get 2d Image from .obj file or .mat file? #6

Open Seanseattle opened 4 years ago

Seanseattle commented 4 years ago

Thanks for your job. When I use the face3d code to render the image from the .mat file that contains vertices, tri, and so on. The result looks strange. It is almost black. I find the vertices in the .mat file is totally different from the example.mat at the face3d. It is smaller than face3d's .mat about 100 times. Could you help me?

changhongjian commented 4 years ago

So sorry! Possible reason: 1) The mesh is not in the image region. 2) The Face upside down. (check the z-axis orientation )

If you want to get the 2d Image from .obj file, see this code