Fix inference assert bug with wav list

This commit is contained in:
Adrian Lancucki 2021-03-04 17:25:21 +01:00
parent 7fe99babad
commit abe3e38c8f

View file

@ -212,8 +212,11 @@ def main():
# dataset
if args.transcribe_wav or args.transcribe_filelist:
assert not use_dali, "DALI is not supported for a single audio"
assert not args.transcribe_filelist
if use_dali:
print("DALI supported only with input .json files; disabling")
use_dali = False
assert not args.pad_to_max_duration
assert not (args.transcribe_wav and args.transcribe_filelist)