ChristopherSTAN commited on
Commit
2bcf3da
·
unverified ·
1 Parent(s): 570dcf0

Delete VOC2012.sh

Browse files
Files changed (1) hide show
  1. data/VOC2012.sh +0 -38
data/VOC2012.sh DELETED
@@ -1,38 +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 VOC2012 trainval ..."
24
- # Download the data.
25
- curl -LO http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar
26
- echo "Done downloading."
27
-
28
-
29
- # Extract data
30
- echo "Extracting trainval ..."
31
- tar -xvf VOCtrainval_11-May-2012.tar
32
- echo "removing tar ..."
33
- rm VOCtrainval_11-May-2012.tar
34
-
35
- end=`date +%s`
36
- runtime=$((end-start))
37
-
38
- echo "Completed in" $runtime "seconds"