Skip to content

Commit

Permalink
use name instead of label id in tracking evaluation (#244)
Browse files Browse the repository at this point in the history
Co-authored-by: Redrew <[email protected]>
  • Loading branch information
benjaminrwilson and Redrew authored Dec 17, 2023
1 parent eb62ac1 commit 8f90a33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/av2/evaluation/tracking/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ def _load_raw_file(

raw_data = {
f"{source}_ids": [frame["track_id"] for frame in tracks],
f"{source}_classes": [frame["label"] for frame in tracks],
f"{source}_classes": [
np.array([self.full_class_list.index(n) for n in frame["name"]])
for frame in tracks
],
f"{source}_dets": [
np.concatenate((frame["translation_m"], frame["size"]), axis=-1)
for frame in tracks
Expand Down

0 comments on commit 8f90a33

Please sign in to comment.