From e7eddf02ab3a1432a3507f9cda3343e5d505a98f Mon Sep 17 00:00:00 2001 From: Ryan Flynn Date: Thu, 29 Dec 2016 21:25:23 -0500 Subject: [PATCH] py3 removes sys.maxint, float(inf) works in py2/py3 --- libs/labelFile.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/labelFile.py b/libs/labelFile.py index 2b3b57fc..2665d7f7 100644 --- a/libs/labelFile.py +++ b/libs/labelFile.py @@ -53,10 +53,10 @@ class LabelFile(object): @staticmethod def convertPoints2BndBox(points): - xmin = sys.maxint - ymin = sys.maxint - xmax = -sys.maxint - ymax = -sys.maxint + xmin = float('inf') + ymin = float('inf') + xmax = float('-inf') + ymax = float('-inf') for p in points: x = p[0] y = p[1]