MCPcopy Create free account
hub / github.com/Vegetebird/GraphMLP / predict

Method predict

demo/lib/sort/sort.py:104–116  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

102 self.kf.update(convert_bbox_to_z(bbox))
103
104 def predict(self):
105 """
106 Advances the state vector and returns the predicted bounding box estimate.
107 """
108 if ((self.kf.x[6] + self.kf.x[2]) <= 0):
109 self.kf.x[6] *= 0.0
110 self.kf.predict()
111 self.age += 1
112 if (self.time_since_update > 0):
113 self.hit_streak = 0
114 self.time_since_update += 1
115 self.history.append(convert_x_to_bbox(self.kf.x))
116 return self.history[-1]
117
118 def get_state(self):
119 """

Callers 1

updateMethod · 0.80

Calls 1

convert_x_to_bboxFunction · 0.85

Tested by

no test coverage detected