Search paths in alphabetical order when creating the manifest file for wav2vec

This commit is contained in:
Livia Qian 2023-10-18 15:01:01 +00:00
parent da8fb63088
commit a6b12d64e4

View File

@ -66,7 +66,7 @@ def main(args):
if valid_f is not None:
print(dir_path, file=valid_f)
for fname in glob.iglob(search_path, recursive=True):
for fname in sorted(glob.iglob(search_path, recursive=True)):
file_path = os.path.realpath(fname)
if args.path_must_contain and args.path_must_contain not in file_path: