diff trunk/experiments/scripts/master.sh @ 371:c3725d638bbb

- AWS
author tomwalters
date Thu, 12 Aug 2010 14:45:23 +0000
parents 58903256eb64
children 26833fbaa597
line wrap: on
line diff
--- a/trunk/experiments/scripts/master.sh	Thu Aug 12 14:21:02 2010 +0000
+++ b/trunk/experiments/scripts/master.sh	Thu Aug 12 14:45:23 2010 +0000
@@ -4,8 +4,15 @@
 # Run a series of experiments which compare MFCC features generated by HTK to
 # AIM features generated using AIM-C using a series of syllable recogntiton
 # tasks.
-# This script expects the HTK binaries and AIM-C AIMCopy binary to be present
-# in the PATH.
+# This script expects to be run from within the AIM-C source tree.
+# It builds the HTK binaries and AIM-C AIMCopy binary if they're not 
+# present. 
+# The following environment varaibles should be set before this script is run:
+# SYLLABLES_DATABASE_URL - URL of a tar file containing the CNBH syllables
+# database in FLAC format
+# HTK_USERNAME and HTK_PASSWORD - username and password for the site at 
+# http://htk.eng.cam.ac.uk/
+
 
 # Set these to be the location of your input database, and desired output
 # locations.
@@ -125,6 +132,7 @@
 FEATURE_SIZE=39
 FEATURE_TYPE=MFCC_0_D_A
 
+#for SOURCE_SNR in $FEATURE_DIRS; do
 SOURCE_SNR="clean"
 TALKERS=inner_talkers
 WORK=$HMMS_ROOT/$FEATURE_CLASS/$FEATURE_SUFFIX/$SOURCE_SNR/$TALKERS/
@@ -142,17 +150,16 @@
 
 ./cnbh-syllables/run_training_and_testing/gen_htk_base_files.sh $WORK
 
-for SOURCE_SNR in $FEATURE_DIRS; do
-  ./cnbh-syllables/run_training_and_testing/test_features.sh \
-      "$WORK" \
-      "$FEATURES_ROOT/$FEATURE_CLASS/$SOURCE_SNR/" \
-      "$FEATURE_SUFFIX" \
-      "$HMM_STATES" \
-      "$HMM_OUTPUT_COMPONENTS" \
-      "$TRAINING_ITERATIONS" \
-      "$TESTING_ITERATIONS" \
-      "$FEATURE_SIZE" \
-      "$FEATURE_TYPE" \
-      "$TRAINING_SCRIPT" \
-      "$TESTING_SCRIPT"
-done
+./cnbh-syllables/run_training_and_testing/test_features.sh \
+    "$WORK" \
+    "$FEATURES_ROOT/$FEATURE_CLASS/$SOURCE_SNR/" \
+    "$FEATURE_SUFFIX" \
+    "$HMM_STATES" \
+    "$HMM_OUTPUT_COMPONENTS" \
+    "$TRAINING_ITERATIONS" \
+    "$TESTING_ITERATIONS" \
+    "$FEATURE_SIZE" \
+    "$FEATURE_TYPE" \
+    "$TRAINING_SCRIPT" \
+    "$TESTING_SCRIPT"
+#done