Commit 5c4a1937e24b1fd0f6cf26fb19cdb5b76c4da580

Authored by Josh Klontz
1 parent 8039c346

added AT&T dataset for training example

data/ATT/README.md 0 → 100644
  1 +## AT&T Database of Faces
  2 +40 subjects with 10 images each.
  3 +* [Website](http://www.cl.cam.ac.uk/research/dtg/attarchive/facedatabase.html)
  4 +* [Paper](http://www.cl.cam.ac.uk/Research/DTG/attarchive/abstracts.html#55)
  5 +* [Dataset](http://www.cl.cam.ac.uk/Research/DTG/attarchive/pub/data/att_faces.zip)
... ...
data/README.md
1 1 # Datasets
2   -* [BioID](BioID/README.md)
  2 +* __[AT&T](ATT/README.md)__
  3 +* __[BioID](BioID/README.md)__
3 4 * [CUFS](CUFS/README.md)
4 5 * [CUFSF](CUFSF/README.md)
5   -* [HFB](HFB/README.md)
  6 +* [FDDB](FDDB/README.md)
6 7 * [FERET](FERET/README.md)
7 8 * [FRGC](FRGC/README.md)
8   -* [LFW](LFW/LFW.md)
9   -* [MEDS](MEDS/README.md)
  9 +* [HFB](HFB/README.md)
  10 +* __[KTH](KTH/README.md)__
  11 +* __[LFW](LFW/LFW.md)__
  12 +* __[MEDS](MEDS/README.md)__
10 13 * [MNIST](MNIST/README.md)
11 14 * [PCSO](PCSO/README.md)
12   -* [KTH](KTH/README.md)
13   -* [FDDB](FDDB/README.md)
14 15  
15   -For both practical and legal reasons we only include images for some of the datasets in this repository.
  16 +For both practical and legal reasons we don't include images for the datasets in this repository.
  17 +Datasets in __bold__ can be downloaded automatically by running `scripts/downloadDatasets.sh`.
16 18 Researchers should contact the respective owners of the other datasets in order to obtain a copy.
17 19 The provided sigsets indicate how the images are expected to be arranged in directories, generally following the conventions established by the original authors.
... ...
scripts/downloadDatasets.sh
... ... @@ -5,6 +5,21 @@ if [ ! -f downloadDatasets.sh ]; then
5 5 exit
6 6 fi
7 7  
  8 +# AT&T
  9 +if [ ! -d ../data/ATT/img ]; then
  10 + echo "Downloading AT&T…"
  11 + if hash curl 2>/dev/null; then
  12 + curl -OL http://www.cl.cam.ac.uk/Research/DTG/attarchive/pub/data/att_faces.zip
  13 + else
  14 + wget http://www.cl.cam.ac.uk/Research/DTG/attarchive/pub/data/att_faces.zip
  15 + fi
  16 +
  17 + unzip att_faces.zip -d att_faces
  18 + mv att_faces ../data/ATT/img
  19 + rm ../data/ATT/img/README att_faces.zip
  20 +fi
  21 +
  22 +
8 23 # BioID
9 24 if [ ! -d ../data/BioID/img ]; then
10 25 echo "Downloading BioID..."
... ... @@ -20,6 +35,24 @@ if [ ! -d ../data/BioID/img ]; then
20 35 rm *.eye description.txt BioID-FaceDatabase-V1.2.zip
21 36 fi
22 37  
  38 +# KTH
  39 +if [ ! -d ../data/KTH/vid ]; then
  40 + echo "Downloading KTH..."
  41 + mkdir ../data/KTH/vid
  42 + for vidclass in {'boxing','handclapping','handwaving','jogging','running','walking'}; do
  43 + if hash curl 2>/dev/null; then
  44 + curl -OL http://www.nada.kth.se/cvap/actions/${vidclass}.zip
  45 + else
  46 + wget http://www.nada.kth.se/cvap/actions/${vidclass}.zip
  47 + fi
  48 + mkdir ../data/KTH/vid/${vidclass}
  49 + unzip ${vidclass}.zip -d ../data/KTH/vid/${vidclass}
  50 + rm ${vidclass}.zip
  51 + done
  52 + # this file is corrupted
  53 + rm -f ../data/KTH/vid/boxing/person01_boxing_d4_uncomp.avi
  54 +fi
  55 +
23 56 # LFW
24 57 if [ ! -d ../data/LFW/img ]; then
25 58 echo "Downloading LFW..."
... ... @@ -48,21 +81,3 @@ if [ ! -d ../data/MEDS/img ]; then
48 81 mv data/*/*.jpg ../data/MEDS/img
49 82 rm -r data NIST_SD32_MEDS-II_face.zip
50 83 fi
51   -
52   -# KTH
53   -if [ ! -d ../data/KTH/vid ]; then
54   - echo "Downloading KTH..."
55   - mkdir ../data/KTH/vid
56   - for vidclass in {'boxing','handclapping','handwaving','jogging','running','walking'}; do
57   - if hash curl 2>/dev/null; then
58   - curl -OL http://www.nada.kth.se/cvap/actions/${vidclass}.zip
59   - else
60   - wget http://www.nada.kth.se/cvap/actions/${vidclass}.zip
61   - fi
62   - mkdir ../data/KTH/vid/${vidclass}
63   - unzip ${vidclass}.zip -d ../data/KTH/vid/${vidclass}
64   - rm ${vidclass}.zip
65   - done
66   - # this file is corrupted
67   - rm -f ../data/KTH/vid/boxing/person01_boxing_d4_uncomp.avi
68   -fi
... ...