kapao icon indicating copy to clipboard operation
kapao copied to clipboard

Question about keypoint fusion

Open BenjaminJonghyun opened this issue 2 years ago • 1 comments

Thanks for sharing a nice work :)

I was wondering about source codes about keypoint fusion.

In this line https://github.com/wmcnally/kapao/blob/ff66c3773eb07ceef5d0cb10a47883cf63616e5a/val.py#L116, pose keypoint coordinates are changed to keypoint object ones if keypoint object confidence > pose keypoint confidence.

From this line https://github.com/wmcnally/kapao/blob/ff66c3773eb07ceef5d0cb10a47883cf63616e5a/val.py#L101, pose keypoint confidences are set to "0". Following above codes, if the distance between pose keypoint and keypoint object < distance threshold, then most pose keypoint will be changed to keypoint object.

So, my question is that why it is necessary to compare confidences between pose keypoint and keypoint object.

Please give some comments.

BenjaminJonghyun avatar Sep 16 '22 01:09 BenjaminJonghyun

There are many candidate keypoint objects. We keep the one with the highest confidence. If the confidence is higher than one that was already matched, we overwrite it.

wmcnally avatar Sep 17 '22 03:09 wmcnally