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

How to view 3d face landmark or 2d_dense in demo_webcam_smooth.py if there is no render import and cv_draw_landmark only creates circle which works for only 2d #15

Closed Yajsiburuth closed 4 years ago

Yajsiburuth commented 4 years ago

The 3d option in demo_webcam_smooth.py only displays hollowed out green circles for all landmarks instead of the gray overlay. The 2d_dense option displays the same but with filled green circles for all landmarks.

cleardusk commented 4 years ago

It seems that the function is not called. I will fix it later.

cleardusk commented 4 years ago

@Yajsiburuth Fixed.

wwdok commented 2 years ago

hello there, does demo_webcam_smooth.py can take USB camera as input, i run python demo_webcam_smooth.py, but it throws error:

0it [00:00, ?it/s]
Traceback (most recent call last):
  File "demo_webcam_smooth.py", line 124, in <module>
    main(args)
  File "demo_webcam_smooth.py", line 59, in main
    boxes = [boxes[0]]
IndexError: list index out of range