cleardusk / 3DDFA_V2

The official PyTorch implementation of Towards Fast, Accurate and Stable 3D Dense Face Alignment, ECCV 2020.
MIT License
2.9k stars 514 forks source link

Extracting UV textures in the video for all the frames #49

Closed zaverichintan5 closed 3 years ago

zaverichintan5 commented 3 years ago

Describe the bug Extracting UV textures for multiple frames in the video gives black image as output after the 1st frame. The output becomes greyish after the 1st frame and then eventually becomes black.

To Reproduce add the line uv_tex(img, ver_lst, tddfa.tri, show_flag=args.show_flag, wfp=wfp) at line 131 in the demo_video_smooth.py below elif args.opt == '3d'

Expected behavior To produce the UV textures for all the images(frames) in the video

ghost commented 3 years ago

how to generate the 3D render picture with color?

yarin-bo commented 2 years ago

@Zaverichintanoxolo Did you solved that? i saw this exact issue

zaverichintan5 commented 2 years ago

I don't remember correctly but it was due to tri index Try to replace tri by tri - 1