Skip to content

🐛 HOTA: fix numpy error when either ground truth or tracks are empty.#107

Open
OlivierLDff wants to merge 1 commit intoJonathonLuiten:masterfrom
OlivierLDff:fix-hota-empty-gts-or-dets
Open

🐛 HOTA: fix numpy error when either ground truth or tracks are empty.#107
OlivierLDff wants to merge 1 commit intoJonathonLuiten:masterfrom
OlivierLDff:fix-hota-empty-gts-or-dets

Conversation

@OlivierLDff
Copy link

fixes a bug where a numpy error occurred when one of the shape dimensions of the data was 0. This was causing the potential matches between IDs in each timestep to not be counted correctly. The fix introduced by if len(gt_ids_t) and len(tracker_ids_t): ensures that the potential matches are only counted if both gt_ids_t and tracker_ids_t are non-empty, which prevents the numpy error from occurring. This ensures that the potential matches are calculated correctly, resulting in more accurate tracking results.

fixes a bug where a numpy error occurred when one of the shape dimensions of the data was 0. This was causing the potential matches between IDs in each timestep to not be counted correctly. The fix introduced by if len(gt_ids_t) and len(tracker_ids_t): ensures that the potential matches are only counted if both gt_ids_t and tracker_ids_t are non-empty, which prevents the numpy error from occurring. This ensures that the potential matches are calculated correctly, resulting in more accurate tracking results.
@OlivierLDff OlivierLDff changed the title 🐛 fix numpy error when either ground truth or tracks are empty. 🐛 HOTA: fix numpy error when either ground truth or tracks are empty. Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant