-
Notifications
You must be signed in to change notification settings - Fork 2
Description
@kedpter thanks for sharing this. Please am currently trying to track vehicle with a custom train ssd_moblinet_v2 object detector using tensor-flow object detection API. Please can you be of help so that I use the sort tracker
when I try to initiate the tracker get the following error
IndexError Traceback (most recent call last)
in
105 if dets is not None:
106 #print(dets)
--> 107 trackers = mot_tracker.update(dets)
108 print(trackers)
109
\simple-object-tracking\sort.py in update(self, dets)
216 for i in unmatched_dets:
217 trk = KalmanBoxTracker(dets[i,:])
--> 218 self.trackers.append(trk)
219 i = len(self.trackers)
220 for trk in reversed(self.trackers):
\simple-object-tracking\sort.py in init(self, bbox)
101 self.hit_streak = 0
102 self.age = 0
--> 103
104 def update(self,bbox):
105 """
IndexError: index 6 is out of bounds for axis 0 with size 6