Skip to content

[ByteTrack] - add a method to reset the state of the tracker #789

@SkalskiP

Description

@SkalskiP

Description

Let's add a method to reset the state of the tracker - particularly useful when we want to process multiple videos one after another. Currently, part of the state is held in global variables, and even reinitializing the tracker doesn't help. It is necessary to kill the entire Python environment.

Pay attention to ByteTrack.tracked_tracks, ByteTrack.lost_tracks, ByteTrack.removed_tracks, and BaseTrack._count. It may turn out that other places will also require changes.

Additional

  • Note: Please share a Google Colab with minimal code to test the new feature. We know it's additional work, but it will definitely speed up the review process. Each change must be tested by the reviewer. Setting up a local environment to do this is time-consuming. Please ensure that Google Colab can be accessed without any issues (make it public). Thank you! 🙏🏻

Metadata

Metadata

Assignees

No one assigned

    Labels

    API:trackerQ1.2024Tasks planned for execution in Q1 2024.enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions