Skip to main content

Module byte_track

Module byte_track 

Source
Expand description

ByteTrack: multi-object tracking by associating every detection box.

Zhang et al., “ByteTrack: Multi-Object Tracking by Associating Every Detection Box”, ECCV 2022. Per frame:

  1. Confirmed and lost tracks are predicted with a Kalman filter and matched to the high-score detections by IoU.
  2. Confirmed tracks left over are matched to the low-score detections, which are often the same objects partly occluded. Tracks still unmatched are lost; a lost track can be re-found in step 1 for max_frames_lost frames.
  3. Tracks started last frame are matched to the remaining high-score detections; they are confirmed on a match and dropped otherwise.
  4. Remaining high-score detections start new tracks.

This follows the reference implementation (yolox/tracker/byte_tracker.py) with two additions: association can be restricted to tracks and detections of the same class, and a track gets its ID when it is confirmed, so reported IDs have no gaps.

Structs§

ByteTrackConfig
Settings of ByteTracker; the defaults are ByteTrack’s for 30 fps video.
ByteTracker
ByteTrack over a sequence of frames; see the module documentation.
TrackId
Identifier of a confirmed track, unique within a sequence and starting at 1.
TrackedObject
A confirmed track that was matched to a detection in this frame.