cheind / py-motmetrics

:bar_chart: Benchmark multiple object trackers (MOT) in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why track id should be integer?

saurabheights-ecr opened this issue · comments

Dear,
I understand that pymotmetrics code doesnt accept some hash key or string for object track id. The code fails due to some numpy conversion. To resolve this issue, I created a unique mapping from track id to integer values and pass these integer id.

But is there a logical reason behind it, or was it just a design decision?

Thank you.

Hey,

I believe it was a natural decision looking at how various challenges annotate their data. I.e. if you were presented a random image and asked to annotate all persons, you would find it quite naturally to choose an arithmetic sequence. Of course, you could say this one if 'Bill', that's 'Jane', etc. but usually for a random image you would not have this knowledge. A mapping from int back to names is always possible as you mentioned, so nothing is lost by assuming integer track ids.

I just wanted to make sure that I wasn't making any logical mistake in my understanding of metrics or the pymot lib, since this was my first time working with MOT. Thanks for clarifying my doubt. 👍

Closing it.