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

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

5 6
# train model
CUDA_VISIBLE_DEVICES=0,1,2,3 \
7
python -u train.py \
8 9 10
--batch_size=16 \
--trainer_count=4 \
--num_passes=20 \
11
--num_proc_data=1 \
12 13 14 15
--num_conv_layers=2 \
--num_rnn_layers=3 \
--rnn_layer_size=2048 \
--num_iter_print=100 \
16
--learning_rate=1e-5 \
17 18 19 20 21 22 23
--max_duration=27.0 \
--min_duration=0.0 \
--use_sortagrad=True \
--use_gru=False \
--use_gpu=True \
--is_local=True \
--share_rnn_weights=True \
24 25
--train_manifest='data/tiny/manifest.tiny' \
--dev_manifest='data/tiny/manifest.tiny' \
26 27
--mean_std_path='data/tiny/mean_std.npz' \
--vocab_path='data/tiny/vocab.txt' \
28
--output_model_dir='./checkpoints/tiny' \
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 "Fail to do inference!"
    exit 1
fi


exit 0