Commit c982b05249839758d0bb24a4a8dba517c62f4917

Authored by Austin Blanton
1 parent 10a32ced

Add Caltech Pedestrians dataset to downloadDatasets.sh

data/CaltechPedestrians/README.md 0 → 100644
  1 +## Caltech Pedestrians Dataset
  2 +The Caltech Pedestrian Dataset consists of approximately 10 hours of 640x480 30Hz video taken from a vehicle driving through regular traffic in an urban environment. About 250,000 frames (in 137 approximately minute long segments) with a total of 350,000 bounding boxes and 2300 unique pedestrians were annotated. The annotation includes temporal correspondence between bounding boxes and detailed occlusion labels.
  3 +* [Website](http://www.vision.caltech.edu/Image_Datasets/CaltechPedestrians/)
scripts/downloadDatasets.sh
@@ -35,6 +35,33 @@ if [ ! -d ../data/BioID/img ]; then @@ -35,6 +35,33 @@ if [ ! -d ../data/BioID/img ]; then
35 rm *.eye description.txt BioID-FaceDatabase-V1.2.zip 35 rm *.eye description.txt BioID-FaceDatabase-V1.2.zip
36 fi 36 fi
37 37
  38 +# Caltech Pedestrian
  39 +if [ ! -d ../data/CaltechPedestrians/vid ]; then
  40 + mkdir ../data/CaltechPedestrians/vid
  41 + echo "Downloading Caltech Pedestrians dataset..."
  42 + prefix="http://www.vision.caltech.edu/Image_Datasets/CaltechPedestrians/datasets/USA"
  43 + for seq in {0..10}; do
  44 + fname=`printf "set%02d.tar" $seq`
  45 + dlpath="$prefix/$fname"
  46 + if hash curl 2>/dev/null; then
  47 + curl -OL $dlpath
  48 + else
  49 + wget $dlpath
  50 + fi
  51 + tar -xf $fname
  52 + done
  53 + rm *.tar
  54 + mv set* ../data/CaltechPedestrians/vid
  55 + if hash curl 2>/dev/null; then
  56 + curl -OL "$prefix/annotations.zip"
  57 + else
  58 + wget "$prefix/annotations.zip"
  59 + fi
  60 + unzip annotations.zip
  61 + rm annotations.zip
  62 + mv annotations ../data/CaltechPedestrians
  63 +fi
  64 +
38 # INRIA person 65 # INRIA person
39 if [ ! -d ../data/INRIAPerson/img ]; then 66 if [ ! -d ../data/INRIAPerson/img ]; then
40 echo "Downloading INRIA person dataset..." 67 echo "Downloading INRIA person dataset..."
@@ -66,7 +93,7 @@ if [ ! -d ../data/KTH/vid ]; then @@ -66,7 +93,7 @@ if [ ! -d ../data/KTH/vid ]; then
66 fi 93 fi
67 mkdir ../data/KTH/vid/${vidclass} 94 mkdir ../data/KTH/vid/${vidclass}
68 unzip ${vidclass}.zip -d ../data/KTH/vid/${vidclass} 95 unzip ${vidclass}.zip -d ../data/KTH/vid/${vidclass}
69 - rm ${vidclass}.zip 96 + rm ${vidclass}.zip
70 done 97 done
71 # this file is corrupted 98 # this file is corrupted
72 rm -f ../data/KTH/vid/boxing/person01_boxing_d4_uncomp.avi 99 rm -f ../data/KTH/vid/boxing/person01_boxing_d4_uncomp.avi