Commit e9e9c5558b90213539e3636d65861b955e568e04

Authored by Austin Blanton
1 parent 06d3f196

Add vbb attribute in Caltech sigsets

scripts/downloadDatasets.sh
@@ -51,8 +51,8 @@ if [ ! -d ../data/CaltechPedestrians/vid ]; then @@ -51,8 +51,8 @@ if [ ! -d ../data/CaltechPedestrians/vid ]; then
51 tar -xf $fname 51 tar -xf $fname
52 done 52 done
53 rm *.tar 53 rm *.tar
54 - ./writeCaltechPedestrianSigset.sh 0 5 > ../data/CaltechPedestrians/train.xml  
55 - ./writeCaltechPedestrianSigset 6 10 > ../data/CaltechPedestrians/test.xml 54 + ./writeCaltechPedestrianSigset.sh 0 5 train > ../data/CaltechPedestrians/train.xml
  55 + ./writeCaltechPedestrianSigset.sh 6 10 test > ../data/CaltechPedestrians/test.xml
56 mv set* ../data/CaltechPedestrians/vid 56 mv set* ../data/CaltechPedestrians/vid
57 if hash curl 2>/dev/null; then 57 if hash curl 2>/dev/null; then
58 curl -OL "$prefix/annotations.zip" 58 curl -OL "$prefix/annotations.zip"
scripts/writeCaltechPedestrianSigset.sh
@@ -5,7 +5,10 @@ echo '<biometric-signature-set>' @@ -5,7 +5,10 @@ echo '<biometric-signature-set>'
5 for ((set=$1; set <= $2; set++)); do 5 for ((set=$1; set <= $2; set++)); do
6 echo -e "\t<biometric-signature name=\"\">" 6 echo -e "\t<biometric-signature name=\"\">"
7 for vid in `printf "set%02d/*.seq" $set`; do 7 for vid in `printf "set%02d/*.seq" $set`; do
8 - echo -e "\t\t<presentation file-name=\"vid/$vid\" />" 8 + if [ $3 == "train" ]; then
  9 + vbb=`echo "vbb=\"annotations/$vid\"" | sed s/seq/vbb/`
  10 + fi
  11 + printf "\t\t<presentation file-name=\"vid/$vid\" $vbb />\n"
9 done 12 done
10 echo -e "\t</biometric-signature>" 13 echo -e "\t</biometric-signature>"
11 done 14 done