Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/prepare_rirs.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ def prepare_motus(dataset_path, dest_path_sofa, audio_fmts=["foa", "mic"]):
for fmt in audio_fmts:
RIR_file_names = os.listdir(dataset_path)
if fmt == "foa":
RIR_file_names = [f for f in RIR_file_names if "sh" in f]
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]
RIR_file_names = [f for f in RIR_file_names if "raw" in f and f.endswith(".wav")]
IRs, xyzs = [], []
for filename in RIR_file_names:
source_pos_index = filename.split("_")[1]
Expand Down Expand Up @@ -526,7 +526,7 @@ def prepare_daga(source_path, sofa_path, audio_fmts=["mic"]):
download_and_extract_remotes(MOTUS_REMOTES["remotes"], motus_path, args.cleanup)
prepare_motus(motus_path, sofa_path)

## RSOANU
# RSOANU
rsoanu_path = source_path / RSOANU_REMOTES["database_name"]
download_and_extract_remotes(RSOANU_REMOTES["remotes"], rsoanu_path, args.cleanup)
prepare_rsoanu(rsoanu_path, sofa_path)
Expand Down