ChristopherSTAN commited on
Commit
570dcf0
·
unverified ·
1 Parent(s): 9705c15

Delete VOC2007.sh

Browse files
Files changed (1) hide show
  1. data/VOC2007.sh +0 -42
data/VOC2007.sh DELETED
@@ -1,42 +0,0 @@
1
- #!/bin/bash
2
- # Ellis Brown
3
-
4
- start=`date +%s`
5
-
6
- # handle optional download dir
7
- if [ -z "$1" ]
8
- then
9
- # navigate to ~/data
10
- echo "navigating to ../data/ ..."
11
- mkdir -p ./data
12
- cd ./data/
13
- else
14
- # check if is valid directory
15
- if [ ! -d $1 ]; then
16
- echo $1 "is not a valid directory"
17
- exit 0
18
- fi
19
- echo "navigating to" $1 "..."
20
- cd $1
21
- fi
22
-
23
- echo "Downloading VOC2007 trainval ..."
24
- # Download the data.
25
- curl -LO http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtrainval_06-Nov-2007.tar
26
- echo "Downloading VOC2007 test data ..."
27
- curl -LO http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtest_06-Nov-2007.tar
28
- echo "Done downloading."
29
-
30
- # Extract data
31
- echo "Extracting trainval ..."
32
- tar -xvf VOCtrainval_06-Nov-2007.tar
33
- echo "Extracting test ..."
34
- tar -xvf VOCtest_06-Nov-2007.tar
35
- echo "removing tars ..."
36
- rm VOCtrainval_06-Nov-2007.tar
37
- rm VOCtest_06-Nov-2007.tar
38
-
39
- end=`date +%s`
40
- runtime=$((end-start))
41
-
42
- echo "Completed in" $runtime "seconds"