pose-hg-train icon indicating copy to clipboard operation
pose-hg-train copied to clipboard

How to deal with the keypoints which out of the image size

Open HansonXia opened this issue 6 years ago • 3 comments

Hi, in MPII dataset, some keypoints are out of the image size, or the coordinates of some points are (0, 0), how to deal with these keypoints when generate heatmaps and calculate loss?

HansonXia avatar Jan 17 '18 04:01 HansonXia

If coordinates are outside of the image frame, the ground truth heatmap consists of all zeros, the same loss (mean squared error) is applied.

anewell avatar Feb 01 '18 19:02 anewell

but if it's just one or two pixels off the border, we will still have a little bit gaussian remaining for that joint right? because the gaussian patch itself is at least 7x7.

ethanyanjiali avatar Apr 12 '20 06:04 ethanyanjiali

but if it's just one or two pixels off the border, we will still have a little bit gaussian remaining for that joint right? because the gaussian patch itself is at least 7x7.

My approach is to set the heatmap to 0, and do not calculate the loss

HansonXia avatar Apr 20 '20 02:04 HansonXia