pcloud_train.sh 584 字节
Newer Older
1 2 3
TRAIN_MANIFEST=$1
DEV_MANIFEST=$2
MODEL_PATH=$3
4
NUM_GPU=$4
5 6
BATCH_SIZE=$5
IS_LOCAL=$6
7

8
python ./cloud/split_data.py \
9 10
--in_manifest_path=${TRAIN_MANIFEST} \
--out_manifest_path='/local.manifest.train'
11

12
python ./cloud/split_data.py \
13 14
--in_manifest_path=${DEV_MANIFEST} \
--out_manifest_path='/local.manifest.dev'
15 16

python train.py \
17
--batch_size=$BATCH_SIZE \
18
--use_gpu=1 \
19
--trainer_count=${NUM_GPU} \
20
--num_threads_data=${NUM_GPU} \
21
--is_local=${IS_LOCAL} \
22 23 24
--train_manifest_path='/local.manifest.train' \
--dev_manifest_path='/local.manifest.dev' \
--output_model_dir=${MODEL_PATH} \