Commit 3e6cf8252764b023b8cbd3eeb10c9018e0a85b52
1 parent
aa8a724f
Add train/test split for Caltech pedestrian dataset
Showing
3 changed files
with
15 additions
and
0 deletions
.gitignore
scripts/downloadDatasets.sh
| ... | ... | @@ -51,6 +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 | 56 | mv set* ../data/CaltechPedestrians/vid |
| 55 | 57 | if hash curl 2>/dev/null; then |
| 56 | 58 | curl -OL "$prefix/annotations.zip" | ... | ... |
scripts/writeCaltechPedestrianSigset.sh
0 → 100755
| 1 | +#!/bin/bash | |
| 2 | + | |
| 3 | +echo '<?xml version="1.0" encoding="UTF-8"?>' | |
| 4 | +echo '<biometric-signature-set>' | |
| 5 | +for ((set=$1; set <= $2; set++)); do | |
| 6 | + echo -e "\t<biometric-signature name=\"\">" | |
| 7 | + for vid in `printf "set%02d/*.seq" $set`; do | |
| 8 | + echo -e "\t\t<presentation file-name=\"vid/$vid\" />" | |
| 9 | + done | |
| 10 | + echo -e "\t</biometric-signature>" | |
| 11 | +done | |
| 12 | +echo '</biometric-signature-set>' | ... | ... |