HigherHRNet-Human-Pose-Estimation icon indicating copy to clipboard operation
HigherHRNet-Human-Pose-Estimation copied to clipboard

The adjustment of keypoint position

Open pdoublerainbow opened this issue 4 years ago • 2 comments

Hi, author. I have a question about the code in keypoint position adjustment part. The code is here https://github.com/HRNet/HigherHRNet-Human-Pose-Estimation/blob/master/lib/core/group.py#L195, the question is that why the position value need to add 0.5 .

pdoublerainbow avatar Sep 11 '20 11:09 pdoublerainbow

This is because during training keypoints are rounded to integer coordinate (but their location could be continuous value). A 0.5 is added here to compensate the quantization error.

bowenc0221 avatar Oct 14 '20 19:10 bowenc0221

@bowenc0221 How is the value(0.5) determined? Is it because the size of final_heatmaps is 0.5X that of original image ?

seekFire avatar Dec 25 '20 06:12 seekFire