-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path1_download_data.sh
executable file
·34 lines (26 loc) · 1.05 KB
/
1_download_data.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
# This files download the soundbank, the RIR dat and the sound-separation model needed to create the data with further
# scripts
# We assume you're in the right conda envrionment
DATASET_DIR=../dataset
########### Shouldn't be changed after that (except if you want TUT background too)
SCRIPTS_PATH=../data_generation
#############
# DESED recorded data
#############
# If not already done
echo "download real data audio files ... ~23GB"
python ${SCRIPTS_PATH}/download_recorded_soundscapes.py --basedir=${DATASET_DIR}
#############
# DESED Soundbank
#############
echo "Download and extract soundbank"
wget -O DESED_synth_soundbank.tar.gz https://zenodo.org/record/3702397/files/DESED_synth_soundbank.tar.gz?download=1
tar -xzf DESED_synth_soundbank.tar.gz
#rm DESED_synth_soundbank.tar.gz
mv synthetic ../synthetic
echo "Done"
# If you did not download the synthetic training background yet
echo "Download SINS background... (to add TUT, add the option --TUT)"
python ${SCRIPTS_PATH}/get_background_training.py --basedir=../synthetic
echo "Done"