use tqdm with extact_feat

This commit is contained in:
Eren G 2018-07-27 16:12:45 +02:00
parent 537a0e7022
commit c71b528b27
1 changed files with 2 additions and 2 deletions

View File

@ -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: