yfeng95 / face3d

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

The parameter of shape has little effect on the resulting image #56

Open lonelywm opened 4 years ago

lonelywm commented 4 years ago

I keep ep and tp to be 'zero' and sp to be 'random' in 3dmm

sp = bfm.get_shape_para('random')
ep = bfm.get_exp_para('zero')
vertices = bfm.generate_vertices(sp, ep)
tp = bfm.get_tex_para('zero')
colors = bfm.generate_colors(tp)
colors = np.minimum(np.maximum(colors, 0), 1)

The generated images are almost the same. (I generate the BFM.mat, BFM_info.mat, BFM_uv.mat, pncc_code.mat based on your tutorial)