Mercurial > hg > aimc
annotate trunk/experiments/scripts/cnbh-syllables/run_training_and_testing/test_features.sh @ 356:4bf6d5bb232e
- AWS fixen
author | tomwalters |
---|---|
date | Wed, 11 Aug 2010 17:29:51 +0000 |
parents | 71c438f9daf7 |
children | dcabd87581b5 |
rev | line source |
---|---|
tomwalters@335 | 1 #!/bin/bash |
tomwalters@335 | 2 # |
tomwalters@335 | 3 # Train and test an HTK monophone model using AIM or MFCC |
tomwalters@335 | 4 # features and the CNBH syllable databse |
tomwalters@335 | 5 # |
tomwalters@335 | 6 # Copyright 2009-2010 University of Cambridge |
tomwalters@335 | 7 # Author: Thomas Walters <tom@acousticscale.org> |
tomwalters@335 | 8 # |
tomwalters@335 | 9 # Run multiple HMMs |
tomwalters@335 | 10 |
tomwalters@335 | 11 set -e |
tomwalters@335 | 12 set -u |
tomwalters@335 | 13 |
tomwalters@335 | 14 WORKING_DIRECTORY=$1 |
tomwalters@335 | 15 FEATURE_SOURCE=$2 |
tomwalters@335 | 16 FEATURE_SUFFIX=$3 |
tomwalters@335 | 17 HMM_STATES_LIST=$4 |
tomwalters@335 | 18 MIXTURE_COMPONENTS_LIST=$5 |
tomwalters@335 | 19 TRAINING_ITERATIONS_LIST=$6 |
tomwalters@335 | 20 TESTING_ITERATIONS_LIST=$7 |
tomwalters@335 | 21 FEATURE_SIZE=$8 |
tomwalters@335 | 22 FEATURE_TYPE=$9 |
tomwalters@335 | 23 |
tomwalters@335 | 24 |
tomwalters@335 | 25 TRAIN_SPEAKERS=train_speakers |
tomwalters@335 | 26 TEST_SPEAKERS=test_speakers |
tomwalters@335 | 27 |
tomwalters@335 | 28 # These are not |
tomwalters@335 | 29 SYLLIST_COMPLETE=syllist |
tomwalters@335 | 30 GRAM=gram |
tomwalters@335 | 31 DICT=dict |
tomwalters@335 | 32 WDNET=wdnet |
tomwalters@335 | 33 TRAIN_MLF=train.mlf |
tomwalters@335 | 34 TEST_MLF=test.mlf |
tomwalters@335 | 35 HMMCONFIG=hmmconfig |
tomwalters@335 | 36 |
tomwalters@335 | 37 |
tomwalters@356 | 38 if [ "$FEATURE_TYPE" == "MFCC_0_D_A"] |
tomwalters@335 | 39 then |
tomwalters@335 | 40 cat <<"EOF" > $WORK/$HMMCONFIG |
tomwalters@335 | 41 # Coding parameters |
tomwalters@335 | 42 SOURCEFORMAT= HTK |
tomwalters@335 | 43 EOF |
tomwalters@335 | 44 else |
tomwalters@335 | 45 cat <<"EOF" > $WORK/$HMMCONFIG |
tomwalters@335 | 46 # Coding parameters |
tomwalters@335 | 47 # The TARGETKIND and SOURCEKIND lines are to add deltas and delta-deltas to |
tomwalters@335 | 48 # the AIM features |
tomwalters@335 | 49 SOURCEFORMAT= HTK |
tomwalters@335 | 50 SOURCEKIND= USER_E |
tomwalters@335 | 51 TARGETKIND = USER_E_D_A |
tomwalters@335 | 52 EOF |
tomwalters@335 | 53 fi |
tomwalters@335 | 54 |
tomwalters@335 | 55 for total_hmm_states in 3 4 5 6 7 8; do |
tomwalters@335 | 56 for mixture_components in 1 2 3 4 5 6 7; do |
tomwalters@335 | 57 . run_test_instance.sh & |
tomwalters@335 | 58 done |
tomwalters@335 | 59 done |
tomwalters@335 | 60 echo "Waiting..." |
tomwalters@335 | 61 wait |
tomwalters@335 | 62 |