MCPcopy Index your code
hub / github.com/FoundationVision/ByteTrack / __init__

Method __init__

tutorials/jde/tracker.py:14–28  ·  view source on GitHub ↗
(self, tlwh, score, temp_feat, buffer_size=30)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

update_featuresMethod · 0.95

Tested by

no test coverage detected