MCPcopy Create free account
hub / github.com/FoundationVision/ByteTrack / __init__

Method __init__

tutorials/fairmot/tracker.py:25–40  ·  view source on GitHub ↗
(self, tlwh, score, temp_feat, buffer_size=30)

Source from the content-addressed store, hash-verified

23class STrack(BaseTrack):
24 shared_kalman = KalmanFilter()
25 def __init__(self, tlwh, score, temp_feat, buffer_size=30):
26
27 # wait activate
28 self._tlwh = np.asarray(tlwh, dtype=np.float)
29 self.kalman_filter = None
30 self.mean, self.covariance = None, None
31 self.is_activated = False
32
33 self.score = score
34 self.score_list = []
35 self.tracklet_len = 0
36
37 self.smooth_feat = None
38 self.update_features(temp_feat)
39 self.features = deque([], maxlen=buffer_size)
40 self.alpha = 0.9
41
42 def update_features(self, feat):
43 feat /= np.linalg.norm(feat)

Callers

nothing calls this directly

Calls 1

update_featuresMethod · 0.95

Tested by

no test coverage detected