How to do 2D landmark loss minimize?

#47 · open · 0 comments

View on GitHub ↗

JohnFive5

Thank you for your excellent code!I wonder why you strongly recommend fitting to 2D landmarks but implemented a 3D landmark loss.I tried to implement a 2D loss,using the camera calibration as you suggested in the paper,and transformed the 3D coordinates to pixel coordinates to make a loss function.But it seems that Chumpy can not get the gradient.What's the problem?How should I modify x0? ![screenshot-20230909-114940](https://github.com/Rubikplayer/flame-fitting/assets/64968867/baafe8e8-1dc1-4735-a3b0-1a0e2af2e281) ![screenshot-20230909-115006](https://github.com/Rubikplayer/flame-fitting/assets/64968867/49eb3424-8d09-42fb-a133-4722fdb4cab6) ![screenshot-20230909-115148](https://github.com/Rubikplayer/flame-fitting/assets/64968867/187956cf-6cf7-4e79-8a1e-cd25c5935db1)

Comments