Commit f47f1bc01c373b8b81f7c44e7b69c92ea3b1021b
1 parent
e58461cf
fixed downloadDatasets.sh for linux
Showing
1 changed file
with
18 additions
and
3 deletions
scripts/downloadDatasets.sh
| ... | ... | @@ -8,7 +8,12 @@ fi |
| 8 | 8 | # BioID |
| 9 | 9 | if [ ! -d ../data/BioID/img ]; then |
| 10 | 10 | echo "Downloading BioID..." |
| 11 | - curl -OL ftp://ftp.uni-erlangen.de/pub/facedb/BioID-FaceDatabase-V1.2.zip | |
| 11 | + if hash curl 2>/dev/null; then | |
| 12 | + curl -OL ftp://ftp.uni-erlangen.de/pub/facedb/BioID-FaceDatabase-V1.2.zip | |
| 13 | + else | |
| 14 | + wget ftp://ftp.uni-erlangen.de/pub/facedb/BioID-FaceDatabase-V1.2.zip | |
| 15 | + fi | |
| 16 | + | |
| 12 | 17 | unzip BioID-FaceDatabase-V1.2.zip |
| 13 | 18 | mkdir ../data/BioID/img |
| 14 | 19 | mv *.pgm ../data/BioID/img |
| ... | ... | @@ -18,7 +23,12 @@ fi |
| 18 | 23 | # LFW |
| 19 | 24 | if [ ! -d ../data/LFW/img ]; then |
| 20 | 25 | echo "Downloading LFW..." |
| 21 | - curl -OL http://vis-www.cs.umass.edu/lfw/lfw.tgz | |
| 26 | + if hash curl 2>/dev/null; then | |
| 27 | + curl -OL http://vis-www.cs.umass.edu/lfw/lfw.tgz | |
| 28 | + else | |
| 29 | + wget http://vis-www.cs.umass.edu/lfw/lfw.tgz | |
| 30 | + fi | |
| 31 | + | |
| 22 | 32 | tar -xf lfw.tgz |
| 23 | 33 | mv lfw ../data/LFW/img |
| 24 | 34 | rm lfw.tgz |
| ... | ... | @@ -27,7 +37,12 @@ fi |
| 27 | 37 | # MEDS |
| 28 | 38 | if [ ! -d ../data/MEDS/img ]; then |
| 29 | 39 | echo "Downloading MEDS..." |
| 30 | - curl -OL http://nigos.nist.gov:8080/nist/sd/32/NIST_SD32_MEDS-II_face.zip | |
| 40 | + if hash curl 2>/dev/null; then | |
| 41 | + curl -OL http://nigos.nist.gov:8080/nist/sd/32/NIST_SD32_MEDS-II_face.zip | |
| 42 | + else | |
| 43 | + wget http://nigos.nist.gov:8080/nist/sd/32/NIST_SD32_MEDS-II_face.zip | |
| 44 | + fi | |
| 45 | + | |
| 31 | 46 | unzip NIST_SD32_MEDS-II_face.zip |
| 32 | 47 | mkdir ../data/MEDS/img |
| 33 | 48 | mv data/*/*.jpg ../data/MEDS/img | ... | ... |