Merge pull request #1416 from mhaghighat/master

Update to prevent the error at Line 74: data being one-dimensional
pull/1385/merge
Alexey 7 years ago committed by GitHub
commit 140bc1882d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      scripts/gen_anchors.py

@ -141,7 +141,7 @@ def main(argv):
line = line.rstrip('\n') line = line.rstrip('\n')
w,h = line.split(' ')[3:] w,h = line.split(' ')[3:]
#print(w,h) #print(w,h)
annotation_dims.append(map(float,(w,h))) annotation_dims.append(tuple(map(float,(w,h))))
annotation_dims = np.array(annotation_dims) annotation_dims = np.array(annotation_dims)
eps = 0.005 eps = 0.005

Loading…
Cancel
Save