You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some videos cause Index error: index 1 is out of bounds for axis 1 with size 1. To solve this, it might be a good idea to pass an empty (0,5) array to the tracker rather than an empty list: if there are no detections.
I suggest adding this in your main.py to solve this issue :
if len(detections_) == 0:
# pass an explicit (0,5) shape
track_ids = mot_tracker.update(np.empty((0, 5)))
else:
# pass Nx5 as intended
track_ids = mot_tracker.update(np.asarray(detections_))