-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathfetch_data.sh
51 lines (45 loc) · 2.22 KB
/
fetch_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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env bash
fetch_site='http://cvsp.cs.ntua.gr/research/stavis/data'
# define the path where the data will be stored
data_root='/ssd_scratch/cvit/samyak/data'
# comment each line if you want to download a subset of the datasets
db_names=(
'AVAD'
'Coutrot_db1'
'Coutrot_db2'
'DIEM'
'ETMD_av'
'SumMe'
)
echo '############################# Downloading Video Frames #############################'
mkdir -p ${data_root}'/video_frames'
for db_name in ${db_names[@]}; do
echo 'Downloading ' $db_name ' ...'
wget $fetch_site'/video_frames/'$db_name'.tar.gz' -O $data_root'/video_frames/'$db_name'.tar.gz'
tar -xzf $data_root'/video_frames/'$db_name'.tar.gz' -C $data_root'/video_frames/'
rm $data_root'/video_frames/'$db_name'.tar.gz'
done
echo '############################# Downloading Video Audio #############################'
mkdir -p ${data_root}'/video_audio'
for db_name in ${db_names[@]}; do
echo 'Downloading ' $db_name ' ...'
wget $fetch_site'/video_audio/'$db_name'.tar.gz' -O $data_root'/video_audio/'$db_name'.tar.gz'
tar -xzf $data_root'/video_audio/'$db_name'.tar.gz' -C $data_root'/video_audio/'
rm $data_root'/video_audio/'$db_name'.tar.gz'
done
echo '############################# Downloading Annotations ################################'
mkdir -p ${data_root}'/annotations'
for db_name in ${db_names[@]}; do
echo 'Downloading ' $db_name ' ...'
wget $fetch_site'/annotations/'$db_name'.tar.gz' -O $data_root'/annotations/'$db_name'.tar.gz'
tar -xzf $data_root'/annotations/'$db_name'.tar.gz' -C $data_root'/annotations/'
rm $data_root'/annotations/'$db_name'.tar.gz'
done
echo '############################# Downloading Fold Lists ################################'
wget $fetch_site'/fold_lists.tar.gz' -O $data_root'/fold_lists.tar.gz'
tar -xzf $data_root'/fold_lists.tar.gz' -C $data_root'/'
rm $data_root'/fold_lists.tar.gz'
echo '############################# Downloading Pretrained Models #############################'
wget $fetch_site'/pretrained_models.tar.gz' -O $data_root'/pretrained_models.tar.gz'
tar -xzf $data_root'/pretrained_models.tar.gz' -C $data_root'/'
rm $data_root'/pretrained_models.tar.gz'