mmpose icon indicating copy to clipboard operation
mmpose copied to clipboard

Fix broken tracking issue in Pose3DInferencer — previous results neve…

Open isjackwild opened this issue 8 months ago • 1 comments
trafficstars

…r being updated

Motivation

I am looking into 3D pose detection in video, and pose-sequence tracking over time. I came across an issue in the Pose3DInferencer whereby poses were always assigned a new track_id on every frame. This is because self._buffer['results_pose2d_last'] was set to the same value as their input to the tracking function, and never updated with the current frames results at the end of the loop

Modification

After tracking has been completed in the preprocess_single method, I saved the results of the current frame to self._buffer['results_pose2d_last'] = results_pose2d. Now pose tracking is working between frames.

BC-breaking (Optional)

I do not believe this affects backwards compatibility

Use cases (Optional)

N/A

Checklist

Before PR:

  • [x] I have read and followed the workflow indicated in the CONTRIBUTING.md to create this PR.
  • [x] Pre-commit or linting tools indicated in CONTRIBUTING.md are used to fix the potential lint issues.
  • [ ] Bug fixes are covered by unit tests, the case that causes the bug should be added in the unit tests.
  • [ ] New functionalities are covered by complete unit tests. If not, please add more unit tests to ensure correctness.
  • [ ] The documentation has been modified accordingly, including docstring or example tutorials.

After PR:

  • [ ] CLA has been signed and all committers have signed the CLA in this PR.

isjackwild avatar Mar 19 '25 11:03 isjackwild