#!/bin/sh
#
rm -rf mono_mix_hmm; 
mkdir mono_mix_hmm; mkdir mono_mix_hmm/mix_hmm1;mkdir mono_mix_hmm/mix_hmm2;mkdir mono_mix_hmm/mix_hmm3;mkdir mono_mix_hmm/mix_hmm4;mkdir mono_mix_hmm/mix_hmm5;
# Mixup sil from 1->2
HHEd -B -H hmm14/macros -H hmm14/hmmdefs -M mono_mix_hmm/mix_hmm1 mix1.hed phones/monophones1> logs/mono_mixing.log
HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm1/macros -H mono_mix_hmm/mix_hmm1/hmmdefs -M mono_mix_hmm/mix_hmm2 phones/monophones1 >>logs/mono_mixing.log
HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm2/macros -H mono_mix_hmm/mix_hmm2/hmmdefs -M mono_mix_hmm/mix_hmm3 phones/monophones1 >>logs/mono_mixing.log
HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm3/macros -H mono_mix_hmm/mix_hmm3/hmmdefs -M mono_mix_hmm/mix_hmm4 phones/monophones1 >>logs/mono_mixing.log
HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm4/macros -H mono_mix_hmm/mix_hmm4/hmmdefs -M mono_mix_hmm/mix_hmm5 phones/monophones1 >>logs/mono_mixing.log


mkdir mono_mix_hmm/mix_hmm6;mkdir mono_mix_hmm/mix_hmm7;mkdir mono_mix_hmm/mix_hmm8;mkdir mono_mix_hmm/mix_hmm9;mkdir mono_mix_hmm/mix_hmm10;
# Mixup 1->2, sil 2->4
HHEd -B -H mono_mix_hmm/mix_hmm5/macros -H mono_mix_hmm/mix_hmm5/hmmdefs -M mono_mix_hmm/mix_hmm6 mix2.hed phones/monophones1 >>logs/mono_mixing.log
HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm6/macros -H mono_mix_hmm/mix_hmm6/hmmdefs -M mono_mix_hmm/mix_hmm7 phones/monophones1 >>logs/mono_mixing.log
HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm7/macros -H mono_mix_hmm/mix_hmm7/hmmdefs -M mono_mix_hmm/mix_hmm8 phones/monophones1 >>logs/mono_mixing.log
HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm8/macros -H mono_mix_hmm/mix_hmm8/hmmdefs -M mono_mix_hmm/mix_hmm9 phones/monophones1 >>logs/mono_mixing.log
HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm9/macros -H mono_mix_hmm/mix_hmm9/hmmdefs -M mono_mix_hmm/mix_hmm10 phones/monophones1 >>logs/mono_mixing.log

mkdir mono_mix_hmm/mix_hmm11;mkdir mono_mix_hmm/mix_hmm12;mkdir mono_mix_hmm/mix_hmm13;mkdir mono_mix_hmm/mix_hmm14;mkdir mono_mix_hmm/mix_hmm15;
# Mixup 2->4, sil from 4->8
HHEd -B -H mono_mix_hmm/mix_hmm10/macros -H mono_mix_hmm/mix_hmm10/hmmdefs -M mono_mix_hmm/mix_hmm11 mix4.hed phones/monophones1 >>logs/mono_mixing.log

HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm11/macros -H mono_mix_hmm/mix_hmm11/hmmdefs -M mono_mix_hmm/mix_hmm12 phones/monophones1 >>logs/mono_mixing.log
HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm12/macros -H mono_mix_hmm/mix_hmm12/hmmdefs -M mono_mix_hmm/mix_hmm13 phones/monophones1 >>logs/mono_mixing.log
HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm13/macros -H mono_mix_hmm/mix_hmm13/hmmdefs -M mono_mix_hmm/mix_hmm14 phones/monophones1 >>logs/mono_mixing.log
HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm14/macros -H mono_mix_hmm/mix_hmm14/hmmdefs -M mono_mix_hmm/mix_hmm15 phones/monophones1 >>logs/mono_mixing.log

mkdir mono_mix_hmm/mix_hmm16;mkdir mono_mix_hmm/mix_hmm17;mkdir mono_mix_hmm/mix_hmm18;mkdir mono_mix_hmm/mix_hmm19;mkdir mono_mix_hmm/mix_hmm20;
# Mixup 4->8, sil from 8->16
HHEd -B -H mono_mix_hmm/mix_hmm15/macros -H mono_mix_hmm/mix_hmm15/hmmdefs -M mono_mix_hmm/mix_hmm16 mix8.hed phones/monophones1 >>logs/mono_mixing.log

HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm16/macros -H mono_mix_hmm/mix_hmm16/hmmdefs -M mono_mix_hmm/mix_hmm17 phones/monophones1 >>logs/mono_mixing.log
HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm17/macros -H mono_mix_hmm/mix_hmm17/hmmdefs -M mono_mix_hmm/mix_hmm18 phones/monophones1 >>logs/mono_mixing.log
HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm18/macros -H mono_mix_hmm/mix_hmm18/hmmdefs -M mono_mix_hmm/mix_hmm19 phones/monophones1 >>logs/mono_mixing.log
HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm19/macros -H mono_mix_hmm/mix_hmm19/hmmdefs -M mono_mix_hmm/mix_hmm20 phones/monophones1 >>logs/mono_mixing.log

mkdir mono_mix_hmm/mix_hmm21;mkdir mono_mix_hmm/mix_hmm22;mkdir mono_mix_hmm/mix_hmm23;mkdir mono_mix_hmm/mix_hmm24;mkdir mono_mix_hmm/mix_hmm25;
# Mixup 8->16, sil from 16->32
HHEd -B -H mono_mix_hmm/mix_hmm20/macros -H mono_mix_hmm/mix_hmm20/hmmdefs -M mono_mix_hmm/mix_hmm21 mix16.hed phones/monophones1 >>logs/mono_mixing.log
HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm21/macros -H mono_mix_hmm/mix_hmm21/hmmdefs -M mono_mix_hmm/mix_hmm22 phones/monophones1 >>logs/mono_mixing.log
HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm22/macros -H mono_mix_hmm/mix_hmm22/hmmdefs -M mono_mix_hmm/mix_hmm23 phones/monophones1 >>logs/mono_mixing.log
HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm23/macros -H mono_mix_hmm/mix_hmm23/hmmdefs -M mono_mix_hmm/mix_hmm24 phones/monophones1 >>logs/mono_mixing.log
HERest -A -D -T 1 -C configs/config0 -I ../data_preparation/trans_out/train_trans_phones1.mlf -t 250.0 150.0 1000.0  -S train_list2.list -H mono_mix_hmm/mix_hmm24/macros -H mono_mix_hmm/mix_hmm24/hmmdefs -M mono_mix_hmm/mix_hmm25 phones/monophones1 >>logs/mono_mixing.log


