pub struct ByteTrackConfig {
pub high_score_threshold: f64,
pub low_score_threshold: f64,
pub new_track_score_threshold: f64,
pub first_match_cost_limit: f64,
pub second_match_cost_limit: f64,
pub unconfirmed_match_cost_limit: f64,
pub fuse_score: bool,
pub max_frames_lost: u64,
pub class_aware: bool,
pub duplicate_cost_limit: f64,
pub kalman: BoxKalmanFilter,
}Expand description
Settings of ByteTracker; the defaults are ByteTrack’s for 30 fps video.
Fields§
§high_score_threshold: f64Detections with at least this score are associated first (track_thresh, 0.5).
low_score_threshold: f64Detections with a score in [low_score_threshold, high_score_threshold)
are associated second, only with confirmed tracks (0.1).
new_track_score_threshold: f64A new track starts only from a detection with at least this score
(track_thresh + 0.1, 0.6).
first_match_cost_limit: f64Largest IoU distance (1 - IoU) for the first association (match_thresh, 0.8).
second_match_cost_limit: f64Largest IoU distance for the low-score association (0.5).
unconfirmed_match_cost_limit: f64Largest IoU distance for confirming new tracks (0.7).
fuse_score: boolWeight IoU by the detection score in the first and the confirming association (ByteTrack’s default; off for MOT20).
max_frames_lost: u64Frames a lost track is kept before it is dropped. ByteTrack uses
frame_rate / 30 * track_buffer, one second of video.
class_aware: boolAssociate detections only with tracks of the same class. The reference tracker ignores classes.
duplicate_cost_limit: f64A tracked and a lost track closer than this IoU distance are the same object; the younger one is dropped (0.15).
kalman: BoxKalmanFilterTrait Implementations§
Source§impl Clone for ByteTrackConfig
impl Clone for ByteTrackConfig
impl Copy for ByteTrackConfig
Source§impl Debug for ByteTrackConfig
impl Debug for ByteTrackConfig
Source§impl Default for ByteTrackConfig
impl Default for ByteTrackConfig
Source§impl PartialEq for ByteTrackConfig
impl PartialEq for ByteTrackConfig
impl StructuralPartialEq for ByteTrackConfig
Auto Trait Implementations§
impl Forget for ByteTrackConfig
impl Freeze for ByteTrackConfig
impl Move for ByteTrackConfig
impl RefUnwindSafe for ByteTrackConfig
impl Send for ByteTrackConfig
impl Sync for ByteTrackConfig
impl Unpin for ByteTrackConfig
impl UnsafeUnpin for ByteTrackConfig
impl UnwindSafe for ByteTrackConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.