Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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