Emilio Marinone commited on
Commit
a09966c
1 Parent(s): 5f75bf2

fix dir prefix

Browse files
Files changed (1) hide show
  1. nst_no.py +1 -1
nst_no.py CHANGED
@@ -254,7 +254,7 @@ class NstNO(datasets.GeneratorBasedBuilder):
254
  # so if file is "123456.wav"
255
  # close channel file is "123456-1.wav"
256
  # distant channel file is "123456-2.wav"
257
- rel_filepath = f'se/{annotation["pid"]}/{annotation["pid"]}_{recording["file"]}'.replace(".wav", f"{channel_ext}.wav")
258
  for data_dir in data_dirs:
259
  audio_filepath = f"{data_dir}/{rel_filepath}"
260
  if os.path.exists(audio_filepath):
 
254
  # so if file is "123456.wav"
255
  # close channel file is "123456-1.wav"
256
  # distant channel file is "123456-2.wav"
257
+ rel_filepath = f'no/{annotation["pid"]}/{annotation["pid"]}_{recording["file"]}'.replace(".wav", f"{channel_ext}.wav")
258
  for data_dir in data_dirs:
259
  audio_filepath = f"{data_dir}/{rel_filepath}"
260
  if os.path.exists(audio_filepath):