yfeng95 / PRNet

Joint 3D Face Reconstruction and Dense Alignment with Position Map Regression Network (ECCV 2018)
http://openaccess.thecvf.com/content_ECCV_2018/papers/Yao_Feng_Joint_3D_Face_ECCV_2018_paper.pdf
MIT License
4.95k stars 947 forks source link

about the uv position map #76

Open yyssmm opened 5 years ago

yyssmm commented 5 years ago

Hi, Thank you for sharing your code! When I run your demo, I want to save the generated position map, but it looks like follow, it looks as if there's some wrong. How should I save the position map correctly? Thank you

ibug_image_008_1_0pos

jnulzl commented 5 years ago

you are right!

wdear commented 5 years ago

Hi, Thank you for sharing your code! When I run your demo, I want to save the generated position map, but it looks like follow, it looks as if there's some wrong. How should I save the position map correctly? Thank you

ibug_image_008_1_0pos

How did you get this generated position map? I tried _7_generate_uvmap.py in face3d but met a float type error.

yexiaoxi01 commented 5 years ago

@yyssmm @jnulzl hello, when I trained PRN, I get the posmap like follows, Becouse the 8_generate_posmap_300WLP.py can not generate the posmap directly , I motified some thing

4.uv position map: render position in uv space

uv_position_map = mesh.reder.reder_colord(uv_coords, bfm.full_trangles, position, uv_h, uv_w, c = 3) uv_position_map[uv_position_map>256]=256 but i get trained posmap: 1563514750(1) what's wrong with it? generate the posmap or training, can you help me? thank you very much!

SecondFool commented 2 years ago

@yyssmm @jnulzl hello, when I trained PRN, I get the posmap like follows, Becouse the 8_generate_posmap_300WLP.py can not generate the posmap directly , I motified some thing

4.uv position map: render position in uv space

uv_position_map = mesh.reder.reder_colord(uv_coords, bfm.full_trangles, position, uv_h, uv_w, c = 3) uv_position_map[uv_position_map>256]=256 but i get trained posmap: 1563514750(1) what's wrong with it? generate the posmap or training, can you help me? thank you very much!

seems that u should do the clip operation at 0 as well.