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

Method gated_metric

yolox/deepsort_tracker/deepsort.py:83–91  ·  view source on GitHub ↗
(tracks, dets, track_indices, detection_indices)

Source from the content-addressed store, hash-verified

81 def _match(self, detections):
82
83 def gated_metric(tracks, dets, track_indices, detection_indices):
84 features = np.array([dets[i].feature for i in detection_indices])
85 targets = np.array([tracks[i].track_id for i in track_indices])
86 cost_matrix = self.metric.distance(features, targets)
87 cost_matrix = linear_assignment.gate_cost_matrix(
88 self.kf, cost_matrix, tracks, dets, track_indices,
89 detection_indices)
90
91 return cost_matrix
92
93 # Split track set into confirmed and unconfirmed tracks.
94 confirmed_tracks = [

Callers

nothing calls this directly

Calls 1

distanceMethod · 0.80

Tested by

no test coverage detected