yfeng95 / face3d

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

3DFFA does not contain "Modelplus_nose_hole.mat" and "Modelplus_parallel.mat" #1

Closed marvin521 closed 6 years ago

marvin521 commented 6 years ago

Hi yao, Really thanks for releasing the training code. I can not find "Modelplus_nose_hole.mat" and "Modelplus_parallel.mat" from the source code 3DFFA. Where can I get these two files?

yfeng95 commented 6 years ago

Sorry for forgetting this project: http://www.cbsr.ia.ac.cn/users/xiangyuzhu/projects/HPEN/Code/CVPR2015_HPEN.zip. You can find them in this file.

marvin521 commented 6 years ago

@YadiraF Hi Yao, All other code works well except for '6_generate_image_map.py'. The reason is that the file 'pncc_code.mat' is missing.

cleardusk commented 6 years ago

@marvin521 The pncc_code.mat is just one file storing normalized 3d vertices. You can try to normalize the vertices of Data/example1.mat, then feed it to mesh_cython.render.render_colors.

marvin521 commented 6 years ago

@cleardusk really? that is unimaginable...

yfeng95 commented 6 years ago

@marvin521 sorry again for forgetting this...T T I've just fixed it. Please pull and run generate.m again.(Actually just copy vertex_code.mat from 3ddfa) And, you can also do as @cleardusk said. Thanks!

speculaas commented 5 years ago

Dear YadiraF, Thanks for your help! Want to make sure: by "just copy vertex_code.mat",

Do you mean

Line 60: copyfile('3ddfa/vertex_code.mat', 'Out/pncc_code.mat')

in generate.m will produce pncc_code.mat?

But there is another line :

Line 100: copyfile('3ddfa/pncc_code.mat', 'Out/pncc_code.mat')

is this line still needed?

And this line 100 also caused error.

Can I ignore error from line 100 and proceed?

BR, Jimmy