#!/bin/bash set -euo pipefail # This script is called from local/chain_${suffix}/run_tdnn.sh and # local/chain_${suffix}/run_tdnn.sh (and may eventually be called by more # scripts). It contains the common feature preparation and # iVector-related parts of the script. See those scripts for examples # of usage. stage=0 train_set=train gmm=tri3 suffix="" . ./cmd.sh . ./path.sh . utils/parse_options.sh gmm_dir=exp/${gmm} ali_dir=exp/${gmm}_ali if [ $stage -le 4 ]; then echo "$0: computing a subset of data to train the diagonal UBM." # We'll use about a quarter of the data. mkdir -p exp/chain${suffix}/diag_ubm temp_data_root=exp/chain${suffix}/diag_ubm num_utts_total=$(wc -l