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

Method update_features

tutorials/qdtrack/tracker_reid_motion.py:33–41  ·  view source on GitHub ↗
(self, feat)

Source from the content-addressed store, hash-verified

31 self.alpha = 0.9
32
33 def update_features(self, feat):
34 feat /= np.linalg.norm(feat)
35 self.curr_feat = feat
36 if self.smooth_feat is None:
37 self.smooth_feat = feat
38 else:
39 self.smooth_feat = self.alpha * self.smooth_feat + (1 - self.alpha) * feat
40 self.features.append(feat)
41 self.smooth_feat /= np.linalg.norm(self.smooth_feat)
42
43 def predict(self):
44 mean_state = self.mean.copy()

Callers 3

__init__Method · 0.95
re_activateMethod · 0.95
updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected