From c71b528b2787f65804e303fd72dbe783704b9271 Mon Sep 17 00:00:00 2001 From: Eren G Date: Fri, 27 Jul 2018 16:12:45 +0200 Subject: [PATCH] use tqdm with extact_feat --- extract_feats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extract_feats.py b/extract_feats.py index 531b8101..f8e4b8c8 100644 --- a/extract_feats.py +++ b/extract_feats.py @@ -75,8 +75,8 @@ if __name__ == "__main__": if args.num_proc > 1: print(" > Using {} processes.".format(args.num_proc)) with Pool(args.num_proc) as p: - # r = list(tqdm.tqdm(p.imap(extract_mel, file_names), total=len(file_names))) - r = list(p.imap(extract_mel, file_names)) + r = list(tqdm.tqdm(p.imap(extract_mel, file_names), total=len(file_names))) + # r = list(p.imap(extract_mel, file_names)) else: print(" > Using single process run.") for file_name in file_names: