Skip to content

Commit

Permalink
Read list of files from arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
nshmyrev committed Jan 30, 2022
1 parent b090341 commit d2c11a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/example/test_gpu_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

rec = BatchRecognizer()

fnames = open("tedlium.list").readlines()
# Read list of files from the file
fnames = open(sys.argv[1]).readlines()
fds = [open(x.strip(), "rb") for x in fnames]
uids = [fname.strip().split('/')[-1][:-4] for fname in fnames]
results = [""] * len(fnames)
Expand Down

0 comments on commit d2c11a6

Please sign in to comment.