Daniil-Osokin / lightweight-human-pose-estimation-3d-demo.pytorch

Real-time 3D multi-person pose estimation demo in PyTorch. OpenVINO backend can be used for fast inference on CPU.
Apache License 2.0
653 stars 137 forks source link

Poses frequently swap their IDs between consecutive frames #98

Closed dleporis closed 1 year ago

dleporis commented 1 year ago

I am using 3D poses to estimate gaze direction, estimate who is looking on whom, so it can be used in the social robotics field [(https://github.com/dleporis/social-robotics-gaze-detection)]

However, the poses frequently swap their IDs between consecutive frames. See example pictures from frame 386-389 of my test video. The people are standing still, but the IDs are not consistent between any of the consecutive pairs. Is it the provblem with propagate_ids() threshold argument? Or should I apply some low pass filter on the poses to reduce jitter of the poses?

indexProblem

Daniil-Osokin commented 1 year ago

Hi! The id assignment logic is: if 2D keypoints of a person from previous frame are near 2D keypoints of a person in the current frame, then this person gets id from previous frame. On these frames skeletons of both persons are clearly separated, so it is not clear why ids are swapping. I suggest to set a breakpoint to the code I have referenced, and try to debug why poses for the same person on different frames are not matched.

Daniil-Osokin commented 1 year ago

Hope, it is helped.