download_videos.sh 612 Bytes
Newer Older
Sugon_ldc's avatar
Sugon_ldc committed
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
#!/usr/bin/env bash

DATA_DIR="../../../data/thumos14/"

if [[ ! -d "${DATA_DIR}" ]]; then
  echo "${DATA_DIR} does not exist. Creating";
  mkdir -p ${DATA_DIR}
fi

cd ${DATA_DIR}

wget https://storage.googleapis.com/thumos14_files/TH14_validation_set_mp4.zip
wget https://storage.googleapis.com/thumos14_files/TH14_Test_set_mp4.zip

if [ ! -d "./videos/val" ]; then
  mkdir -p ./videos/val
fi
unzip -j TH14_validation_set_mp4.zip -d videos/val

if [ ! -d "./videos/test" ]; then
  mkdir -p ./videos/test
fi
unzip -P "THUMOS14_REGISTERED" -j TH14_Test_set_mp4.zip -d videos/test

cd "../../tools/data/thumos14/"