From 6e65cda53bfdede4e8840c8c7037d08f38bd425d Mon Sep 17 00:00:00 2001 From: thtrieu Date: Sat, 19 Nov 2016 12:20:43 +0700 Subject: [PATCH] print current file while parsing --- backup/checkpoint | 9 --------- labels.txt | 4 ---- tfnet/utils/pascal_voc_clean_xml.py | 3 ++- 3 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 backup/checkpoint delete mode 100644 labels.txt diff --git a/backup/checkpoint b/backup/checkpoint deleted file mode 100644 index 95dbe0a02..000000000 --- a/backup/checkpoint +++ /dev/null @@ -1,9 +0,0 @@ -model_checkpoint_path: "yolo-4c-296" -all_model_checkpoint_paths: "yolo-4c-212" -all_model_checkpoint_paths: "yolo-4c-224" -all_model_checkpoint_paths: "yolo-4c-236" -all_model_checkpoint_paths: "yolo-4c-248" -all_model_checkpoint_paths: "yolo-4c-260" -all_model_checkpoint_paths: "yolo-4c-272" -all_model_checkpoint_paths: "yolo-4c-284" -all_model_checkpoint_paths: "yolo-4c-296" diff --git a/labels.txt b/labels.txt deleted file mode 100644 index 77a310386..000000000 --- a/labels.txt +++ /dev/null @@ -1,4 +0,0 @@ -person -chair -tvmonitor -pottedplant \ No newline at end of file diff --git a/tfnet/utils/pascal_voc_clean_xml.py b/tfnet/utils/pascal_voc_clean_xml.py index 77c8a394c..c1f29d36d 100644 --- a/tfnet/utils/pascal_voc_clean_xml.py +++ b/tfnet/utils/pascal_voc_clean_xml.py @@ -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