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

let ByteTrack to maintain track ID per instance #1528

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

grzegorz-roboflow
Copy link
Contributor

Description

BaseTrack implementation includes _count class var, similarly STrack implementation includes _external_count class var. This results in undesirable behavior when running more than one tracker in the same process. In inference we added a block wrapping ByteTrack, if more than 1 video is processed, objects across videos will receive non-deterministic track IDs.

In this change class vars are removed and track ID assignment is handled by upper layer (ByteTrack)

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How has this change been tested, please provide a testcase or example of how you tested the change?

Added unit test to cover this scenario.

Any specific deployment considerations

N/A

Docs

N/A

@grzegorz-roboflow grzegorz-roboflow changed the title Make BaseTrack._count instance variable let ByteTrack to maintain track ID per instance Sep 19, 2024
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