yfeng95 / face3d

Python tools for 3D face: 3DMM, Mesh processing(transform, camera, light, render), 3D face representations.
2.68k stars 615 forks source link

The Problem of Generating UV Map #58

Closed yqwu94 closed 5 years ago

yqwu94 commented 5 years ago

When I run 6_generate_image_map.py script, I found that there are difference between my result and author's result on uv_coords.jpg.

uv_coords = face3d.morphable_model.load.load_uv_coords('Data/BFM/Out/BFM_UV.mat') uv_coords_image = mesh.render.render_colors(image_vertices, triangles, attribute, h, w, c=2) uv_coords_image = np.concatenate((np.zeros((h, w, 1)), uv_coords_image), 2) io.imsave('{}/uv_coords.jpg'.format(save_folder), np.squeeze(uv_coords_image))

color depth uv_coords

I think that there are some difference between my BFM_UV.mat and author's BFM_UV.mat. Is there anyone who can provide a file A that can be used correctly?

Bhuvan-21 commented 2 years ago

Hi, were you able to identify the reason for this type of UV Map? I am facing a similar issue myself.