diff --git a/data/ATT/README.md b/data/ATT/README.md new file mode 100644 index 0000000..2d31160 --- /dev/null +++ b/data/ATT/README.md @@ -0,0 +1,5 @@ +## AT&T Database of Faces +40 subjects with 10 images each. +* [Website](http://www.cl.cam.ac.uk/research/dtg/attarchive/facedatabase.html) +* [Paper](http://www.cl.cam.ac.uk/Research/DTG/attarchive/abstracts.html#55) +* [Dataset](http://www.cl.cam.ac.uk/Research/DTG/attarchive/pub/data/att_faces.zip) diff --git a/data/README.md b/data/README.md index 5861118..1583ffb 100644 --- a/data/README.md +++ b/data/README.md @@ -1,17 +1,19 @@ # Datasets -* [BioID](BioID/README.md) +* __[AT&T](ATT/README.md)__ +* __[BioID](BioID/README.md)__ * [CUFS](CUFS/README.md) * [CUFSF](CUFSF/README.md) -* [HFB](HFB/README.md) +* [FDDB](FDDB/README.md) * [FERET](FERET/README.md) * [FRGC](FRGC/README.md) -* [LFW](LFW/LFW.md) -* [MEDS](MEDS/README.md) +* [HFB](HFB/README.md) +* __[KTH](KTH/README.md)__ +* __[LFW](LFW/LFW.md)__ +* __[MEDS](MEDS/README.md)__ * [MNIST](MNIST/README.md) * [PCSO](PCSO/README.md) -* [KTH](KTH/README.md) -* [FDDB](FDDB/README.md) -For both practical and legal reasons we only include images for some of the datasets in this repository. +For both practical and legal reasons we don't include images for the datasets in this repository. +Datasets in __bold__ can be downloaded automatically by running `scripts/downloadDatasets.sh`. Researchers should contact the respective owners of the other datasets in order to obtain a copy. The provided sigsets indicate how the images are expected to be arranged in directories, generally following the conventions established by the original authors. diff --git a/scripts/downloadDatasets.sh b/scripts/downloadDatasets.sh index 35130ae..37daff3 100755 --- a/scripts/downloadDatasets.sh +++ b/scripts/downloadDatasets.sh @@ -5,6 +5,21 @@ if [ ! -f downloadDatasets.sh ]; then exit fi +# AT&T +if [ ! -d ../data/ATT/img ]; then + echo "Downloading AT&T…" + if hash curl 2>/dev/null; then + curl -OL http://www.cl.cam.ac.uk/Research/DTG/attarchive/pub/data/att_faces.zip + else + wget http://www.cl.cam.ac.uk/Research/DTG/attarchive/pub/data/att_faces.zip + fi + + unzip att_faces.zip -d att_faces + mv att_faces ../data/ATT/img + rm ../data/ATT/img/README att_faces.zip +fi + + # BioID if [ ! -d ../data/BioID/img ]; then echo "Downloading BioID..." @@ -20,6 +35,24 @@ if [ ! -d ../data/BioID/img ]; then rm *.eye description.txt BioID-FaceDatabase-V1.2.zip fi +# KTH +if [ ! -d ../data/KTH/vid ]; then + echo "Downloading KTH..." + mkdir ../data/KTH/vid + for vidclass in {'boxing','handclapping','handwaving','jogging','running','walking'}; do + if hash curl 2>/dev/null; then + curl -OL http://www.nada.kth.se/cvap/actions/${vidclass}.zip + else + wget http://www.nada.kth.se/cvap/actions/${vidclass}.zip + fi + mkdir ../data/KTH/vid/${vidclass} + unzip ${vidclass}.zip -d ../data/KTH/vid/${vidclass} + rm ${vidclass}.zip + done + # this file is corrupted + rm -f ../data/KTH/vid/boxing/person01_boxing_d4_uncomp.avi +fi + # LFW if [ ! -d ../data/LFW/img ]; then echo "Downloading LFW..." @@ -48,21 +81,3 @@ if [ ! -d ../data/MEDS/img ]; then mv data/*/*.jpg ../data/MEDS/img rm -r data NIST_SD32_MEDS-II_face.zip fi - -# KTH -if [ ! -d ../data/KTH/vid ]; then - echo "Downloading KTH..." - mkdir ../data/KTH/vid - for vidclass in {'boxing','handclapping','handwaving','jogging','running','walking'}; do - if hash curl 2>/dev/null; then - curl -OL http://www.nada.kth.se/cvap/actions/${vidclass}.zip - else - wget http://www.nada.kth.se/cvap/actions/${vidclass}.zip - fi - mkdir ../data/KTH/vid/${vidclass} - unzip ${vidclass}.zip -d ../data/KTH/vid/${vidclass} - rm ${vidclass}.zip - done - # this file is corrupted - rm -f ../data/KTH/vid/boxing/person01_boxing_d4_uncomp.avi -fi