forked from GOATmessi8/RFBNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
22d46d8
commit 06606ba
Showing
2 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
# Ellis Brown | ||
|
||
start=`date +%s` | ||
|
||
# handle optional download dir | ||
if [ -z "$1" ] | ||
then | ||
# navigate to ~/data | ||
echo "navigating to ~/data/ ..." | ||
mkdir -p ~/data | ||
cd ~/data/ | ||
else | ||
# check if is valid directory | ||
if [ ! -d $1 ]; then | ||
echo $1 "is not a valid directory" | ||
exit 0 | ||
fi | ||
echo "navigating to" $1 "..." | ||
cd $1 | ||
fi | ||
|
||
echo "Downloading VOC2007 trainval ..." | ||
# Download the data. | ||
curl -LO http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtrainval_06-Nov-2007.tar | ||
echo "Downloading VOC2007 test data ..." | ||
curl -LO http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtest_06-Nov-2007.tar | ||
echo "Done downloading." | ||
|
||
# Extract data | ||
echo "Extracting trainval ..." | ||
tar -xvf VOCtrainval_06-Nov-2007.tar | ||
echo "Extracting test ..." | ||
tar -xvf VOCtest_06-Nov-2007.tar | ||
echo "removing tars ..." | ||
rm VOCtrainval_06-Nov-2007.tar | ||
rm VOCtest_06-Nov-2007.tar | ||
|
||
end=`date +%s` | ||
runtime=$((end-start)) | ||
|
||
echo "Completed in" $runtime "seconds" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
# Ellis Brown | ||
|
||
start=`date +%s` | ||
|
||
# handle optional download dir | ||
if [ -z "$1" ] | ||
then | ||
# navigate to ~/data | ||
echo "navigating to ~/data/ ..." | ||
mkdir -p ~/data | ||
cd ~/data/ | ||
else | ||
# check if is valid directory | ||
if [ ! -d $1 ]; then | ||
echo $1 "is not a valid directory" | ||
exit 0 | ||
fi | ||
echo "navigating to" $1 "..." | ||
cd $1 | ||
fi | ||
|
||
echo "Downloading VOC2012 trainval ..." | ||
# Download the data. | ||
curl -LO http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar | ||
echo "Done downloading." | ||
|
||
|
||
# Extract data | ||
echo "Extracting trainval ..." | ||
tar -xvf VOCtrainval_11-May-2012.tar | ||
echo "removing tar ..." | ||
rm VOCtrainval_11-May-2012.tar | ||
|
||
end=`date +%s` | ||
runtime=$((end-start)) | ||
|
||
echo "Completed in" $runtime "seconds" |