Skip to content

Commit

Permalink
print current file while parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
thtrieu committed Nov 19, 2016
1 parent b679018 commit 6e65cda
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
9 changes: 0 additions & 9 deletions backup/checkpoint

This file was deleted.

4 changes: 0 additions & 4 deletions labels.txt

This file was deleted.

3 changes: 2 additions & 1 deletion tfnet/utils/pascal_voc_clean_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def _int(literal): # for literals supposed to be int
percentage = 1. * (i+1) / size
progress = int(percentage * 20)
bar_arg = [progress*'=', ' '*(19-progress), percentage*100]
sys.stdout.write('[{}>{}]{:.0f}%'.format(*bar_arg))
bar_arg += [file]
sys.stdout.write('[{}>{}]{:.0f}% {}'.format(*bar_arg))
sys.stdout.flush()

# actual parsing
Expand Down

0 comments on commit 6e65cda

Please sign in to comment.