Commit e9e9c5558b90213539e3636d65861b955e568e04
1 parent
06d3f196
Add vbb attribute in Caltech sigsets
Showing
2 changed files
with
6 additions
and
3 deletions
scripts/downloadDatasets.sh
| ... | ... | @@ -51,8 +51,8 @@ if [ ! -d ../data/CaltechPedestrians/vid ]; then |
| 51 | 51 | tar -xf $fname |
| 52 | 52 | done |
| 53 | 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 | 56 | mv set* ../data/CaltechPedestrians/vid |
| 57 | 57 | if hash curl 2>/dev/null; then |
| 58 | 58 | curl -OL "$prefix/annotations.zip" | ... | ... |
scripts/writeCaltechPedestrianSigset.sh
| ... | ... | @@ -5,7 +5,10 @@ echo '<biometric-signature-set>' |
| 5 | 5 | for ((set=$1; set <= $2; set++)); do |
| 6 | 6 | echo -e "\t<biometric-signature name=\"\">" |
| 7 | 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 | 12 | done |
| 10 | 13 | echo -e "\t</biometric-signature>" |
| 11 | 14 | done | ... | ... |