ilovepose / DarkPose

Distribution-Aware Coordinate Representation for Human Pose Estimation
https://ilovepose.github.io/coco
Apache License 2.0
550 stars 80 forks source link

why are there two coefficients(0.5, 0.25) before the derivative and hessian? #38

Closed SemonWang closed 2 years ago

SemonWang commented 2 years ago

https://github.com/ilovepose/DarkPose/blob/0185b427f34a08d93ea7e948ccc3e7fdc78d88c5/lib/core/inference.py#L51

According to the taylor series, the offset is equal to -InvH g. While in this code, the offset is equal to -2InvH * g because of the two coefficients. Can you please explain it?

APORduo commented 2 years ago

I think the coefficients are induced by the caculation of gradients, and for details you can refer to #25 .

SemonWang commented 2 years ago

got it! Thank you very much!