Deep3DFaceReconstruction-pytorch icon indicating copy to clipboard operation
Deep3DFaceReconstruction-pytorch copied to clipboard

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

Open Seanseattle opened this issue 5 years ago • 1 comments

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?

Seanseattle avatar May 24 '20 03:05 Seanseattle

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

changhongjian avatar Aug 18 '20 09:08 changhongjian