Skip to content

Commit 957697a

Browse files
committed
Fix import and frame indexing for IOU tracker as well.
1 parent 6d92f40 commit 957697a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iou_tracker/iou_tracker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from time import time
99

10-
from util import load_mot, iou
10+
from .util import load_mot, iou
1111

1212

1313
def track_iou(detections, sigma_l, sigma_h, sigma_iou, t_min):
@@ -30,7 +30,7 @@ def track_iou(detections, sigma_l, sigma_h, sigma_iou, t_min):
3030
tracks_active = []
3131
tracks_finished = []
3232

33-
for frame_num, detections_frame in enumerate(detections, start=1):
33+
for frame_num, detections_frame in enumerate(detections, start=0):
3434
# apply low threshold to detections
3535
dets = [det for det in detections_frame if det['score'] >= sigma_l]
3636

0 commit comments

Comments
 (0)