Skip to content

Commit

Permalink
Update test_ctw1500.py
Browse files Browse the repository at this point in the history
  • Loading branch information
whai362 authored Apr 11, 2019
1 parent 0bad328 commit 055cfec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test_ctw1500.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ def test(args):
# python version pse
# pred = pypse(kernels, args.min_kernel_area / (args.scale * args.scale))

scale = (org_img.shape[0] * 1.0 / pred.shape[0], org_img.shape[1] * 1.0 / pred.shape[1])
# scale = (org_img.shape[0] * 1.0 / pred.shape[0], org_img.shape[1] * 1.0 / pred.shape[1])
scale = (org_img.shape[1] * 1.0 / pred.shape[1], org_img.shape[0] * 1.0 / pred.shape[0])
label = pred
label_num = np.max(label) + 1
bboxes = []
Expand Down Expand Up @@ -215,4 +216,4 @@ def test(args):
help='min score')

args = parser.parse_args()
test(args)
test(args)

0 comments on commit 055cfec

Please sign in to comment.