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

Method __init__

tutorials/qdtrack/tracker_reid_motion.py:17–31  ·  view source on GitHub ↗
(self, tlwh, score, temp_feat, buffer_size=30)

Source from the content-addressed store, hash-verified

15class STrack(BaseTrack):
16 shared_kalman = KalmanFilter()
17 def __init__(self, tlwh, score, temp_feat, buffer_size=30):
18
19 # wait activate
20 self._tlwh = np.asarray(tlwh, dtype=np.float)
21 self.kalman_filter = None
22 self.mean, self.covariance = None, None
23 self.is_activated = False
24
25 self.score = score
26 self.tracklet_len = 0
27
28 self.smooth_feat = None
29 self.update_features(temp_feat)
30 self.features = deque([], maxlen=buffer_size)
31 self.alpha = 0.9
32
33 def update_features(self, feat):
34 feat /= np.linalg.norm(feat)

Callers

nothing calls this directly

Calls 1

update_featuresMethod · 0.95

Tested by

no test coverage detected