From 648cc3ddb69ceb5c161fbb6c9072c0151df86998 Mon Sep 17 00:00:00 2001 From: peterkulits <5331526+kulits@users.noreply.github.com> Date: Mon, 17 Aug 2020 22:15:36 -0700 Subject: [PATCH] Fix Error in Documentation and Various Typos --- sort.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sort.py b/sort.py index bb80efd..1c950f4 100644 --- a/sort.py +++ b/sort.py @@ -46,7 +46,7 @@ def linear_assignment(cost_matrix): def iou_batch(bb_test, bb_gt): """ - From SORT: Computes IUO between two bboxes in the form [l,t,w,h] + From SORT: Computes IOU between two bboxes in the form [x1,y1,x2,y2] """ bb_gt = np.expand_dims(bb_gt, 0) bb_test = np.expand_dims(bb_test, 1) @@ -299,7 +299,7 @@ def parse_args(): for frame in range(int(seq_dets[:,0].max())): frame += 1 #detection and frame numbers begin at 1 dets = seq_dets[seq_dets[:, 0]==frame, 2:7] - dets[:, 2:4] += dets[:, 0:2] #convert to [x1,y1,w,h] to [x1,y1,x2,y2] + dets[:, 2:4] += dets[:, 0:2] #convert from [x1,y1,w,h] to [x1,y1,x2,y2] total_frames += 1 if(display):