diff --git a/scripts/downloadDatasets.sh b/scripts/downloadDatasets.sh index 0cb08f6..2a342c9 100755 --- a/scripts/downloadDatasets.sh +++ b/scripts/downloadDatasets.sh @@ -117,20 +117,7 @@ if [ ! -d ../data/LFW/img ]; then rm lfw.tgz fi -# MEDS -if [ ! -d ../data/MEDS/img ]; then - echo "Downloading MEDS..." - if hash curl 2>/dev/null; then - curl -OL http://nigos.nist.gov:8080/nist/sd/32/NIST_SD32_MEDS-II_face.zip - else - wget http://nigos.nist.gov:8080/nist/sd/32/NIST_SD32_MEDS-II_face.zip - fi - - unzip NIST_SD32_MEDS-II_face.zip - mkdir ../data/MEDS/img - mv data/*/*.jpg ../data/MEDS/img - rm -r data NIST_SD32_MEDS-II_face.zip -fi +./downloadMeds.sh #LFPW if [ ! -d ../data/lfpw/trainset ]; then diff --git a/scripts/downloadMEDS.sh b/scripts/downloadMEDS.sh new file mode 100644 index 0000000..b536db6 --- /dev/null +++ b/scripts/downloadMEDS.sh @@ -0,0 +1,17 @@ +#!/bin/bash + + +# MEDS +if [ ! -d ../data/MEDS/img ]; then + echo "Downloading MEDS..." + if hash curl 2>/dev/null; then + curl -OL http://nigos.nist.gov:8080/nist/sd/32/NIST_SD32_MEDS-II_face.zip + else + wget http://nigos.nist.gov:8080/nist/sd/32/NIST_SD32_MEDS-II_face.zip + fi + + unzip NIST_SD32_MEDS-II_face.zip + mkdir ../data/MEDS/img + mv data/*/*.jpg ../data/MEDS/img + rm -r data NIST_SD32_MEDS-II_face.zip +fi diff --git a/scripts/evalFaceRecognition-MEDS.sh b/scripts/evalFaceRecognition-MEDS.sh index 231370f..2a7a307 100755 --- a/scripts/evalFaceRecognition-MEDS.sh +++ b/scripts/evalFaceRecognition-MEDS.sh @@ -13,7 +13,7 @@ if ! hash br 2>/dev/null; then fi # Get the data -./downloadDatasets.sh +./downloadMEDS.sh if [ ! -e Algorithm_Dataset ]; then mkdir Algorithm_Dataset