Skip to content

Commit 04b4923

Browse files
author
Nithin Rao Koluguri
committed
swap the check file for faster iterations
Signed-off-by: Nithin Rao Koluguri <nithinraok>
1 parent f616e84 commit 04b4923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nemo_asr/run_eval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def download_audio_files(batch):
5353

5454
for id, sample in zip(batch["id"], batch["audio"]):
5555
audio_path = os.path.join(CACHE_DIR, f"{id}.wav")
56-
os.makedirs(os.path.dirname(audio_path), exist_ok=True)
5756
if not os.path.exists(audio_path):
57+
os.makedirs(os.path.dirname(audio_path), exist_ok=True)
5858
soundfile.write(audio_path, np.float32(sample["array"]), 16_000)
5959
audio_paths.append(audio_path)
6060
durations.append(len(sample["array"]) / 16_000)

0 commit comments

Comments
 (0)