This commit is contained in:
jingyong hou 2021-12-06 11:34:34 +08:00
parent 213697da1b
commit 16750eea3b

View File

@ -6,20 +6,8 @@
export CUDA_VISIBLE_DEVICES="0" export CUDA_VISIBLE_DEVICES="0"
stage=2 stage=-1
stop_stage=4 stop_stage=0
num_keywords=11
config=conf/mdtc.yaml
norm_mean=false
norm_var=false
gpu_id=4
checkpoint=
dir=exp/mdtc
num_average=10
score_checkpoint=$dir/avg_${num_average}.pt
# your data dir # your data dir
download_dir=/mnt/mnt-data-3/jingyong.hou/data download_dir=/mnt/mnt-data-3/jingyong.hou/data
@ -47,18 +35,3 @@ if [ ${stage} -le 0 ] && [ ${stop_stage} -ge 0 ]; then
done done
fi fi
if [ ${stage} -le 1 ] && [ ${stop_stage} -ge 1 ]; then
echo "Compute CMVN and Format datasets"
tools/compute_cmvn_stats.py --num_workers 16 --train_config $config \
--in_scp data/train/wav.scp \
--out_cmvn data/train/global_cmvn
for x in train valid test; do
tools/wav_to_duration.sh --nj 8 data/$x/wav.scp data/$x/wav.dur
tools/make_list.py data/$x/wav.scp data/$x/text \
data/$x/wav.dur data/$x/data.list
done
fi