From df2dab38e8547a15ad8ef19cb6b0f423f6e83b0a Mon Sep 17 00:00:00 2001 From: abewley Date: Mon, 2 Jan 2017 23:53:31 +0000 Subject: [PATCH] prevent integer rounding Fix as reported in issue #10 --- sort.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sort.py b/sort.py index 90fd575..baf665a 100644 --- a/sort.py +++ b/sort.py @@ -56,7 +56,7 @@ def convert_bbox_to_z(bbox): x = bbox[0]+w/2. y = bbox[1]+h/2. s = w*h #scale is just area - r = w/h + r = w/float(h) return np.array([x,y,s,r]).reshape((4,1)) def convert_x_to_bbox(x,score=None):