[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request #109 from Atry/patch-1
Browse files Browse the repository at this point in the history
Fix syntax error on Python 3
  • Loading branch information
zxytim committed Feb 26, 2018
2 parents 9885d20 + a5b0649 commit 12d3a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icdar.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ def generator(input_size=512, batch_size=32,
h, w, _ = im.shape
txt_fn = im_fn.replace(os.path.basename(im_fn).split('.')[1], 'txt')
if not os.path.exists(txt_fn):
print 'text file {} does not exists'.format(txt_fn)
print('text file {} does not exists'.format(txt_fn))
continue

text_polys, text_tags = load_annoataion(txt_fn)
Expand Down

0 comments on commit 12d3a6b

Please sign in to comment.