trackers
trackers copied to clipboard
`trackers eval` labels a MOT-layout sequence `gt` instead of its name
evaluate_mot_sequence names its result after the ground-truth file stem. In the MOT layout the ground-truth file is always <sequence>/gt/gt.txt, so every single-sequence result is named gt. The name shows up in SequenceResult.sequence, in the trackers eval table, and in the JSON written by --output.
The function already derives the right name from the grandparent directory for the MOT20 warning, but it does not use it for the result. The sample output in docs/evaluations/evaluate.md shows the same gt label.
Reproduce
mkdir -p MOT17-02-FRCNN/gt
echo "1,1,10,10,20,20,1,1" > MOT17-02-FRCNN/gt/gt.txt
echo "1,1,10,10,20,20,1,1" > pred.txt
trackers eval --gt MOT17-02-FRCNN/gt/gt.txt --predictions pred.txt --output out.json
Expected: the table row and "sequence" in out.json read MOT17-02-FRCNN.
Actual: both read gt.
Environment
trackers develop at 7f454c8, Python 3.12.