WesleyHsieh0806 commited on
Commit
85d2b01
1 Parent(s): 2f129b2

Download TAO Images.

Browse files
Files changed (1) hide show
  1. download_TAO.sh +56 -0
download_TAO.sh ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Setup
2
+ git clone https://github.com/TAO-Dataset/tao
3
+ pip install git+https://github.com/TAO-Dataset/tao
4
+
5
+ # unzip all files into the same TAO dataset
6
+ TAO_PATH="/data3/chengyeh/TAO"
7
+ # CODE_PATH="/home/chengyeh/tao"
8
+
9
+ mkdir -p $TAO_PATH
10
+ cd $TAO_PATH
11
+ # Download dataset
12
+
13
+ wget --progress=bar:force --output-file=Download_log -O TAO_TRAIN.zip "https://motchallenge.net/data/1-TAO_TRAIN.zip"
14
+ wget --progress=bar:force --output-file=Download_log -O TAO_VAL.zip "https://motchallenge.net/data/2-TAO_VAL.zip"
15
+ wget --progress=bar:force --output-file=Download_log -O TAO_TEST.zip "https://motchallenge.net/data/3-TAO_TEST.zip"
16
+
17
+
18
+
19
+ unzip TAO_TRAIN.zip -d $TAO_PATH
20
+ unzip TAO_VAL.zip -d $TAO_PATH
21
+ unzip TAO_TEST.zip -d $TAO_PATH
22
+
23
+ # remove all .zip
24
+ rm TAO_TRAIN.zip
25
+ rm TAO_VAL.zip
26
+ rm TAO_TEST.zip
27
+
28
+ # download the AVA HACS (need to request first)
29
+ wget "https://motchallenge.net/data/1_AVA_HACS_TRAIN_c6f3b138ebdf6a348b7c8f932f5a403f.zip" --progress=bar:force --output-file=Download_log -O $TAO_PATH/TAO_AVA_HACS_TRAIN.zip
30
+ wget "https://motchallenge.net/data/2_AVA_HACS_VAL_c6f3b138ebdf6a348b7c8f932f5a403f.zip" --progress=bar:force --output-file=Download_log -O $TAO_PATH/TAO_AVA_HACS_VAL.zip
31
+ wget "https://motchallenge.net/data/3_AVA_HACS_TEST_c6f3b138ebdf6a348b7c8f932f5a403f.zip" --progress=bar:force --output-file=Download_log -O $TAO_PATH/TAO_AVA_HACS_TEST.zip
32
+
33
+ unzip TAO_AVA_HACS_TRAIN.zip -d $TAO_PATH
34
+ unzip TAO_AVA_HACS_VAL.zip -d $TAO_PATH
35
+ unzip TAO_AVA_HACS_TEST.zip -d $TAO_PATH
36
+
37
+ # remove all .zip
38
+ rm TAO_AVA_HACS_TRAIN.zip
39
+ rm TAO_AVA_HACS_VAL.zip
40
+ rm TAO_AVA_HACS_TEST.zip
41
+
42
+ # # download burst annotations
43
+ # cd $TAO_PATH
44
+ # mkdir -p $TAO_PATH/BURST_annotations
45
+ # wget https://omnomnom.vision.rwth-aachen.de/data/BURST/annotations.zip -O $TAO_PATH/BURST_annotations/burst_annotations.zip
46
+
47
+ # # download the annotation
48
+ # cd $CODE_PATH
49
+ # python scripts/download/download_annotations.py $TAO_PATH --split train
50
+ # python scripts/download/download_annotations.py $TAO_PATH --split val
51
+ # python scripts/download/download_annotations.py $TAO_PATH --split test
52
+
53
+ # # check all the data are correctly downloaded
54
+ # python scripts/download/verify.py $TAO_PATH --split train
55
+ # python scripts/download/verify.py $TAO_PATH --split validation
56
+ # python scripts/download/verify.py $TAO_PATH --split test