Commit 62d074b4083ac8215cacd68bca3506766e85a674

Authored by Charles Otto
1 parent ce6fe757

Split downloading the MEDS dataset to a separate file

downloading all the datasets in downloadDatasets.sh is time consuming, and
MEDS is the only dataset used in make test, as well as
evalFaceRecognition-MEDS.sh. Splitting MEDS to a searate file simplifies
the process of validating an OpenBR build.
scripts/downloadDatasets.sh
@@ -117,20 +117,7 @@ if [ ! -d ../data/LFW/img ]; then @@ -117,20 +117,7 @@ if [ ! -d ../data/LFW/img ]; then
117 rm lfw.tgz 117 rm lfw.tgz
118 fi 118 fi
119 119
120 -# MEDS  
121 -if [ ! -d ../data/MEDS/img ]; then  
122 - echo "Downloading MEDS..."  
123 - if hash curl 2>/dev/null; then  
124 - curl -OL http://nigos.nist.gov:8080/nist/sd/32/NIST_SD32_MEDS-II_face.zip  
125 - else  
126 - wget http://nigos.nist.gov:8080/nist/sd/32/NIST_SD32_MEDS-II_face.zip  
127 - fi  
128 -  
129 - unzip NIST_SD32_MEDS-II_face.zip  
130 - mkdir ../data/MEDS/img  
131 - mv data/*/*.jpg ../data/MEDS/img  
132 - rm -r data NIST_SD32_MEDS-II_face.zip  
133 -fi 120 +./downloadMeds.sh
134 121
135 #LFPW 122 #LFPW
136 if [ ! -d ../data/lfpw/trainset ]; then 123 if [ ! -d ../data/lfpw/trainset ]; then
scripts/downloadMEDS.sh 0 → 100644
  1 +#!/bin/bash
  2 +
  3 +
  4 +# MEDS
  5 +if [ ! -d ../data/MEDS/img ]; then
  6 + echo "Downloading MEDS..."
  7 + if hash curl 2>/dev/null; then
  8 + curl -OL http://nigos.nist.gov:8080/nist/sd/32/NIST_SD32_MEDS-II_face.zip
  9 + else
  10 + wget http://nigos.nist.gov:8080/nist/sd/32/NIST_SD32_MEDS-II_face.zip
  11 + fi
  12 +
  13 + unzip NIST_SD32_MEDS-II_face.zip
  14 + mkdir ../data/MEDS/img
  15 + mv data/*/*.jpg ../data/MEDS/img
  16 + rm -r data NIST_SD32_MEDS-II_face.zip
  17 +fi
scripts/evalFaceRecognition-MEDS.sh
@@ -13,7 +13,7 @@ if ! hash br 2>/dev/null; then @@ -13,7 +13,7 @@ if ! hash br 2>/dev/null; then
13 fi 13 fi
14 14
15 # Get the data 15 # Get the data
16 -./downloadDatasets.sh 16 +./downloadMEDS.sh
17 17
18 if [ ! -e Algorithm_Dataset ]; then 18 if [ ! -e Algorithm_Dataset ]; then
19 mkdir Algorithm_Dataset 19 mkdir Algorithm_Dataset