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

Method predict

yolox/sort_tracker/sort.py:122–134  ·  view source on GitHub ↗

Advances the state vector and returns the predicted bounding box estimate.

(self)

Source from the content-addressed store, hash-verified

120 self.kf.update(convert_bbox_to_z(bbox))
121
122 def predict(self):
123 """
124 Advances the state vector and returns the predicted bounding box estimate.
125 """
126 if((self.kf.x[6]+self.kf.x[2])<=0):
127 self.kf.x[6] *= 0.0
128 self.kf.predict()
129 self.age += 1
130 if(self.time_since_update>0):
131 self.hit_streak = 0
132 self.time_since_update += 1
133 self.history.append(convert_x_to_bbox(self.kf.x))
134 return self.history[-1]
135
136 def get_state(self):
137 """

Callers 1

updateMethod · 0.45

Calls 1

convert_x_to_bboxFunction · 0.85

Tested by

no test coverage detected