run_train.sh 887 字节
Newer Older
1 2
#! /usr/bin/bash

3
pushd ../.. > /dev/null
4

5
# train model
6 7
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 \
python -u train.py \
8
--batch_size=512 \
9
--trainer_count=8 \
10
--num_passes=50 \
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
--num_proc_data=12 \
--num_conv_layers=2 \
--num_rnn_layers=3 \
--rnn_layer_size=2048 \
--num_iter_print=100 \
--learning_rate=5e-4 \
--max_duration=27.0 \
--min_duration=0.0 \
--use_sortagrad=True \
--use_gru=False \
--use_gpu=True \
--is_local=True \
--share_rnn_weights=True \
--train_manifest='data/librispeech/manifest.train' \
--dev_manifest='data/librispeech/manifest.dev' \
--mean_std_path='data/librispeech/mean_std.npz' \
27 28
--vocab_path='data/librispeech/vocab.txt' \
--output_model_dir='./checkpoints/libri' \
29 30 31
--augment_conf_path='conf/augmentation.config' \
--specgram_type='linear' \
--shuffle_method='batch_shuffle_clipped'
32 33 34 35 36 37 38 39

if [ $? -ne 0 ]; then
    echo "Failed in training!"
    exit 1
fi


exit 0