-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtrain.sh
72 lines (60 loc) · 1.58 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
# usage:
# ./train.sh
echo "Train..."
mode='train'
# @200.121
DATA_DIR='/media/sdb1/chenrui/kitti_data/h5/'
checkpoint_savePath='./checkpoint/'
checkpoint_file='./checkpoint/' # checkpoint file name for restarting.
epochs=1
batch_size=8
optimizer='Adam'
learning_rate=0.001
momentum=0.9
beta1=0.9
beta2=0.99
workers=4
# it is vital for restarting
checkpoint_file='./checkpoint/'
printCircle=100
data_format='channels_first'
n_channels=3
img_height=128
img_width=160
# stack_sizes="($n_channels, 48, 96, 192)"
# R_stack_sizes=$stack_sizes
# A_filter_sizes="(3, 3, 3)"
# Ahat_filter_sizes="(3, 3, 3, 3)"
# R_filter_sizes="(3, 3, 3, 3)"
layer_loss_weightsMode='L_0'
# layer_loss='L_all'
# number of timesteps used for sequences in training
num_timeSteps=10
shuffle=true
CUDA_VISIBLE_DEVICES=0 python train.py \
--mode ${mode} \
--dataPath ${DATA_DIR} \
--checkpoint_savePath ${checkpoint_savePath} \
--epochs ${epochs} \
--batch_size ${batch_size} \
--optimizer ${optimizer} \
--lr ${learning_rate} \
--momentum ${momentum} \
--beta1 ${beta1} \
--beta2 ${beta2} \
--workers ${workers} \
--checkpoint_file ${checkpoint_file} \
--printCircle ${printCircle} \
--data_format ${data_format} \
--n_channels ${n_channels} \
--img_height ${img_height} \
--img_width ${img_width} \
--layer_loss_weightsMode ${layer_loss_weightsMode} \
--num_timeSteps ${num_timeSteps} \
--shuffle ${shuffle}
# --stack_sizes ${stack_sizes} \
# --R_stack_sizes ${R_stack_sizes} \
# --A_filter_sizes ${A_filter_sizes} \
# --Ahat_filter_sizes ${Ahat_filter_sizes} \
# --R_filter_sizes ${R_filter_sizes} \