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

IoU is not a great fit for small/fast moving objects #1118

Closed
1 of 2 tasks
colonelpanic8 opened this issue Sep 13, 2023 · 4 comments
Closed
1 of 2 tasks

IoU is not a great fit for small/fast moving objects #1118

colonelpanic8 opened this issue Sep 13, 2023 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@colonelpanic8
Copy link

colonelpanic8 commented Sep 13, 2023

Search before asking

  • I have searched the Yolov8 Tracking issues and found no similar enhancement requests.

Description

IoU is not a great fit for small/fast moving objects because there can easily be no overlap in cases where detections are actually quite close.

There are other metrics where the tolerance for discrepancy between the distance between detections does not depend on the size of the detected object like centroid distance.

Ideally, the Tracker class should abstract over the distance metric that is used. IoU could be the default, but in some cases centroid distance + perhaps a separate box size comparison might be more appropriate.

IOU is hard coded e.g. here:
https://github.com/mikel-brostrom/yolo_tracking/blob/05172962914805dab99acb3d2d8592797dbf38a7/boxmot/trackers/strongsort/sort/tracker.py#L147

Use case

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@colonelpanic8 colonelpanic8 added the enhancement New feature or request label Sep 13, 2023
@mikel-brostrom
Copy link
Owner

I agree that the addition of centroid distance would make sense for fast moving objects. I have however not time to implement or experiment with this at the moment, but will leave this open 😄.

@github-actions
Copy link

👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

@github-actions github-actions bot added the Stale label Sep 25, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 29, 2023
@jokober jokober mentioned this issue Oct 8, 2023
2 tasks
@mikel-brostrom mikel-brostrom added help wanted Extra attention is needed and removed Stale labels Jan 11, 2024
@mikel-brostrom
Copy link
Owner

#1246

@mikel-brostrom
Copy link
Owner

mikel-brostrom commented Jan 12, 2024

Centroid-based association added here: #1247

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants