From 0d77b47aca201a5d93bf833b4b65b82270675cef Mon Sep 17 00:00:00 2001 From: Austin Van Blanton Date: Wed, 18 Sep 2013 16:59:39 -0400 Subject: [PATCH] Autogenerate KTH sigsets in downloadDatasets --- .gitignore | 1 + data/KTH/test_9ppl.xml | 237 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- data/KTH/train_16ppl.xml | 417 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- scripts/downloadDatasets.sh | 3 +++ scripts/writeKTHSigset.sh | 24 ++++++++++++++++++++++++ 5 files changed, 28 insertions(+), 654 deletions(-) delete mode 100644 data/KTH/test_9ppl.xml delete mode 100644 data/KTH/train_16ppl.xml create mode 100644 scripts/writeKTHSigset.sh diff --git a/.gitignore b/.gitignore index 4727cfa..2dc5649 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,4 @@ scripts/results ### autogenerated sigsets ### data/INRIAPerson/sigset +data/KTH/sigset diff --git a/data/KTH/test_9ppl.xml b/data/KTH/test_9ppl.xml deleted file mode 100644 index 2d2a85d..0000000 --- a/data/KTH/test_9ppl.xml +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/data/KTH/train_16ppl.xml b/data/KTH/train_16ppl.xml deleted file mode 100644 index 799f563..0000000 --- a/data/KTH/train_16ppl.xml +++ /dev/null @@ -1,417 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/scripts/downloadDatasets.sh b/scripts/downloadDatasets.sh index 734573c..95f9a74 100755 --- a/scripts/downloadDatasets.sh +++ b/scripts/downloadDatasets.sh @@ -57,6 +57,7 @@ fi if [ ! -d ../data/KTH/vid ]; then echo "Downloading KTH..." mkdir ../data/KTH/vid + mkdir ../data/KTH/sigset for vidclass in {'boxing','handclapping','handwaving','jogging','running','walking'}; do if hash curl 2>/dev/null; then curl -OL http://www.nada.kth.se/cvap/actions/${vidclass}.zip @@ -69,6 +70,8 @@ if [ ! -d ../data/KTH/vid ]; then done # this file is corrupted rm -f ../data/KTH/vid/boxing/person01_boxing_d4_uncomp.avi + ./writeKTHSigset.sh 1 16 > ../data/KTH/sigset/train_16ppl.xml + ./writeKTHSigset.sh 17 25 > ../data/KTH/sigset/test_9ppl.xml fi # LFW diff --git a/scripts/writeKTHSigset.sh b/scripts/writeKTHSigset.sh new file mode 100644 index 0000000..5c2abd0 --- /dev/null +++ b/scripts/writeKTHSigset.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +echo '' +echo '' +for ((person=$1; person <= $2; person++)); do + printf "\t\n" $person + for vidClass in {'boxing','handclapping','handwaving','jogging','running','walking'}; do + + for i in {1..4}; do + # person13_handclapping_d3 is missing + if [ $vidClass = 'handclapping' -a $person -eq 13 -a $i -eq 3 ]; then + continue + fi + # person01_boxing_d4 was deleted (corrupted file) + if [ $vidClass = 'boxing' -a $person -eq 1 -a $i -eq 4 ]; then + continue + fi + + printf "\t\t\n" $vidClass $person $vidClass $i + done + done + echo -e "\t" +done +echo '' -- libgit2 0.21.4