From 756a3144cc5d055ecd2f769ce816f55f2fc1d880 Mon Sep 17 00:00:00 2001 From: mhaghighat Date: Wed, 15 Aug 2018 10:04:14 -0700 Subject: [PATCH] Update to prevent the error at Line 74: data being one-dimensional --- scripts/gen_anchors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen_anchors.py b/scripts/gen_anchors.py index 03bb54b9..709cb88a 100644 --- a/scripts/gen_anchors.py +++ b/scripts/gen_anchors.py @@ -141,7 +141,7 @@ def main(argv): line = line.rstrip('\n') w,h = line.split(' ')[3:] #print(w,h) - annotation_dims.append(map(float,(w,h))) + annotation_dims.append(tuple(map(float,(w,h)))) annotation_dims = np.array(annotation_dims) eps = 0.005