-
Notifications
You must be signed in to change notification settings - Fork 15
/
train.sh
executable file
·47 lines (37 loc) · 1.12 KB
/
train.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
# Training the RPNSD model on Mixer6 + SRE + SWBD
. ./cmd.sh
. ./path.sh
train_dir=data/swbd_sre_final/train_train
dev_dir=data/swbd_sre_final/train_dev
cfg=res101
cfg_file=cfgs/${cfg}.yml
# data process parameters
padded_len=20
# training parameters
epochs=1
batch_size=8
num_workers=4
optimizer=sgd
lr=0.01
min_lr=0.0001
scheduler=multi
patience=10
seed=7
alpha=1.0
# network parameters
arch=res101
nclass=5963
# validate parameters
eval_interval=2000
num_dev=12000
exp_dir=experiment/cfg${cfg}epoch${epochs}bs${batch_size}op${optimizer}lr${lr}min_lr${min_lr}scheduler${scheduler}pat${patience}seed${seed}alpha${alpha}arch${arch}dev${num_dev}
mkdir -p $exp_dir/{model,log} || exit 1;
${cuda_cmd} $exp_dir/log/run_log \
python3 scripts/train.py $exp_dir $train_dir \
$dev_dir --cfg_file $cfg_file --padded_len $padded_len \
--epochs $epochs --batch_size $batch_size --num_workers $num_workers --optimizer $optimizer \
--lr $lr --min_lr $min_lr --scheduler $scheduler --alpha $alpha \
--patience $patience --seed $seed --arch $arch \
--nclass $nclass --eval_interval $eval_interval --num_dev $num_dev \
--use_tfb