Mercurial > hg > aimc
changeset 413:786166d87205
- Experimental updates.
author | tomwalters |
---|---|
date | Sun, 24 Oct 2010 23:26:09 +0000 |
parents | 9c26f6532ea3 |
children | 03954c09e5d0 |
files | trunk/experiments/scripts/cnbh-syllables/feature_generation/run_aimcopy.sh trunk/experiments/scripts/cnbh-syllables/run_training_and_testing/test_features.sh trunk/experiments/scripts/master.sh trunk/experiments/scripts/setup_aws_instance.sh |
diffstat | 4 files changed, 20 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/experiments/scripts/cnbh-syllables/feature_generation/run_aimcopy.sh Sun Oct 24 22:35:49 2010 +0000 +++ b/trunk/experiments/scripts/cnbh-syllables/feature_generation/run_aimcopy.sh Sun Oct 24 23:26:09 2010 +0000 @@ -9,8 +9,9 @@ set -e set -u -FEATURES_DIR=$1 -MACHINE_CORES=$2 +AIMCOPY_CONFIGURATION_FILE=$1 +FEATURES_DIR=$2 +MACHINE_CORES=$3 FILE_LIST=feature_generation_script echo "Splitting data files over cores..." @@ -31,7 +32,7 @@ echo " tasks..." for ((c=1;c<=$MACHINE_CORES;c+=1)); do s=${splits[$element]} - AIMCopy -D $FEATURES_DIR/aimcopy_config.out -S $s & + AIMCopy -C $AIMCOPY_CONFIGURATION_FILE -D $FEATURES_DIR/aimcopy_config.out -S $s & let element=element+1 done
--- a/trunk/experiments/scripts/cnbh-syllables/run_training_and_testing/test_features.sh Sun Oct 24 22:35:49 2010 +0000 +++ b/trunk/experiments/scripts/cnbh-syllables/run_training_and_testing/test_features.sh Sun Oct 24 23:26:09 2010 +0000 @@ -49,8 +49,8 @@ for total_hmm_states in $HMM_STATES_LIST; do for mixture_components in $MIXTURE_COMPONENTS_LIST; do - #. $THIS_DIR/run_test_instance.sh & - . $THIS_DIR/run_test_instance.sh + . $THIS_DIR/run_test_instance.sh & + #. $THIS_DIR/run_test_instance.sh done done echo "Waiting..."
--- a/trunk/experiments/scripts/master.sh Sun Oct 24 22:35:49 2010 +0000 +++ b/trunk/experiments/scripts/master.sh Sun Oct 24 23:26:09 2010 +0000 @@ -14,6 +14,14 @@ # http://htk.eng.cam.ac.uk/ # NUMBER_OF_CORES - total number of machine cores +sudo apt-get -y update +sudo apt-get -y install bc subversion scons pkg-config \ + libsndfile1-dev build-essential libboost-dev \ + python sox python-matplotlib + +# For 64-bit systems, uncomment this line: +sudo apt-get -y install libc6-dev-i386 + # Set these to be the location of your input database, and desired output # locations. (Note: the user running this script needs write permissions on # the $WORKING_VOLUME.) @@ -26,6 +34,8 @@ HTK_ROOT=$WORKING_VOLUME/software/htk/ AIMC_ROOT=$WORKING_VOLUME/software/aimc/ +AIMCOPY_CONFIGURATION_FILE=./cnbh-syllables/feature_generation/ssi_profile_features.aimcopyconfig + # Number of cores on the experimental machine. Various scripts will try to use # this if it's set. # NUMBER_OF_CORES=8 @@ -64,7 +74,7 @@ # Generate versions of the CNBH syllables spoke pattern with a range of # signal-to-noise ratios (SNRs). The versions are put in the directory # ${SOUNDS_ROOT}/${SNR}_dB/ for each SNR in $SNRS. -SNRS="30 27 24 21 18 15 12 9 6 3 0" +SNRS="45 42 39 36 33" #" 30 27 24 21 18 15 12 9 6 3 0" #SNRS="30" # For testing ./cnbh-syllables/feature_generation/pink_noise.sh $SOUNDS_ROOT/clean/ "$SNRS" @@ -113,7 +123,7 @@ mkdir -p $FEATURES_ROOT/aim/$SOURCE_SNR/ ./cnbh-syllables/feature_generation/gen_hcopy_aimcopy_script.sh $FEATURES_ROOT/aim/$SOURCE_SNR/ $SOUNDS_ROOT/$SOURCE_SNR/ "" # Run the conversion - ./cnbh-syllables/feature_generation/run_aimcopy.sh $FEATURES_ROOT/aim/$SOURCE_SNR/ $NUMBER_OF_CORES + ./cnbh-syllables/feature_generation/run_aimcopy.sh $AIMCOPY_CONFIGURATION_FILE $FEATURES_ROOT/aim/$SOURCE_SNR/ $NUMBER_OF_CORES touch $FEATURES_ROOT/aim/$SOURCE_SNR/.make_aim_features_success fi done @@ -124,7 +134,7 @@ # For each of the feature types, we want to run HMMs with a bunch of # parameters. TRAINING_ITERATIONS="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15" # 16 17 18 19 20" -#TESTING_ITERATIONS="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20" +#TESTING_ITERATIONS="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15" #" 16 17 18 19 20" TESTING_ITERATIONS="15" #HMM_STATES="3 4 5 6 7 8" HMM_STATES="4"
--- a/trunk/experiments/scripts/setup_aws_instance.sh Sun Oct 24 22:35:49 2010 +0000 +++ b/trunk/experiments/scripts/setup_aws_instance.sh Sun Oct 24 23:26:09 2010 +0000 @@ -4,7 +4,7 @@ # ec2-run-instances --user-data-file ec2_user_data.sh --key tom_eu_west --instance-type c1.xlarge --instance-count 1 --region eu-west-1 --availability-zone eu-west-1b ami-05c2e971 su ubuntu sudo apt-get -y update -sudo apt-get -y install bc subversion scons pkg-config libsndfile1-dev build-essential libboost-dev python sox +sudo apt-get -y install bc subversion scons pkg-config libsndfile1-dev build-essential libboost-dev python sox python-matplotlib # For 64-bit systems, uncomment this line: sudo apt-get -y install libc6-dev-i386