py-motmetrics icon indicating copy to clipboard operation
py-motmetrics copied to clipboard

Total number of objects calculation

Open amm272 opened this issue 3 years ago • 3 comments

Hello,

This issue is related to the 'num_objects' value, calculated as the num_matches + num_switches. I have a few questions:

  • Is num_objects supposed to be equal to the total number of ground truth objects within all the frames?
  • If so, why is the num_object metric not calculated from the ground truth data, instead of being the sum of switches plus matches?

I have an issue where the total num_objects counted is larger than the sum of all the ground truth objects. For example, I count 24 objects, but the total number reported is 30. Usually each frame has 6 objects, so the result is off by exactly one frame. What cold be the source of this error?

amm272 avatar Aug 18 '22 18:08 amm272

@jvlmdr are you familiar with this?

cheind avatar Aug 19 '22 07:08 cheind

Thank you for raising this with @jvlmdr . Is there a way I could print the output of the accumulator per frame? Having the number of matches and switches at each stage could be helpful with debugging.

amm272 avatar Aug 19 '22 12:08 amm272

yes. see the readme here https://github.com/cheind/py-motmetrics#populating-the-accumulator

cheind avatar Aug 20 '22 06:08 cheind