You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "scripts/prepare_rirs.py", line 528, in <module>
prepare_motus(motus_path, sofa_path)
File "scripts/prepare_rirs.py", line 198, in prepare_motus
source_pos = source_positions[source_pos_index] + random.uniform(
KeyError: 'rirs.zip'
From inspection, the downloaded MOTUS directory contains .zip files. I suggest either removing the unpacked zip files or checking for .wav extension before generating RIR_file_names. I.e:
RIR_file_names = os.listdir(dataset_path)
if fmt == "foa":
RIR_file_names = [f for f in RIR_file_names if "sh" in f and f.endswith(".wav")]
elif fmt == "mic":
RIR_file_names = [f for f in RIR_file_names if "raw" in f and f.endswith(".wav")]
The text was updated successfully, but these errors were encountered:
Thanks @adrianSRoman for bringing this up. We do have a flag to remove the zip files after downloading and unpacking them.
I personally did not run into this issue while testing the latest release, but I'll re-try the script to see agian. @beasteers and @karinnacvijanovich did you see this?
Reference Line:
SpatialScaper/scripts/prepare_rirs.py
Line 198 in dd130d1
The error looks like:
From inspection, the downloaded MOTUS directory contains .zip files. I suggest either removing the unpacked zip files or checking for .wav extension before generating
RIR_file_names
. I.e:The text was updated successfully, but these errors were encountered: