Deep3DFaceReconstruction
Deep3DFaceReconstruction copied to clipboard
Attribute variables required for producing texture_map and uv_position_map
Hi!
So, I need to produce the texture files separately in the form of a texture_map and uv_position_map as is being done in https://github.com/YadiraF/face3d/blob/master/examples/7_generate_uv_map.py.
So, since I need the these maps corresponding to the 3D mesh (.obj file) that I generated using your code, I need to plug in the variables containing information about "vertices", "colors" and "full_triangles" (which are the primary attributes of any 3D mesh) from your demo.py file. I was able to infer that among the variables returned by the Reconstruction function, face_color and tri correspond to colors and triangles respectively. But I don't see the variables corresponding to vertices and full_triangles. Could you please tell me how to generate them in your code?
Your help is greatly appreciated. Thanks!
Hi!
So, I need to produce the texture files separately in the form of a texture_map and uv_position_map as is being done in https://github.com/YadiraF/face3d/blob/master/examples/7_generate_uv_map.py.
So, since I need the these maps corresponding to the 3D mesh (.obj file) that I generated using your code, I need to plug in the variables containing information about "vertices", "colors" and "full_triangles" (which are the primary attributes of any 3D mesh) from your demo.py file. I was able to infer that among the variables returned by the Reconstruction function, face_color and tri correspond to colors and triangles respectively. But I don't see the variables corresponding to vertices and full_triangles. Could you please tell me how to generate them in your code?
Your help is greatly appreciated. Thanks!
Hi, Could you generate texture map using the 7_generate_uv_map.py. code? This line would produce texture map, : uv_texture_map = mesh.render.render_colors(uv_coords, triangles, attribute, uv_h, uv_w, c=3) right? But what is the attribute in this line of code? Thanks for your reply