-
Notifications
You must be signed in to change notification settings - Fork 135
/
train.sh
73 lines (64 loc) · 3.01 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
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python train.py --batchSize=16 \
--crop_height=240 \
--crop_width=528 \
--max_disp=192 \
--thread=16 \
--data_path='/ssd1/zhangfeihu/data/stereo/' \
--training_list='lists/sceneflow_train.list' \
--save_path='./checkpoint/sceneflow' \
--resume='' \
--model='GANet_deep' \
--nEpochs=11 2>&1 |tee logs/log_train_sceneflow.txt
exit
#Fine tuning for kitti 2015
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python train.py --batchSize=16 \
--crop_height=240 \
--crop_width=528 \
--max_disp=192 \
--thread=16 \
--data_path='/media/feihu/Storage/stereo/data_scene_flow/training/' \
--training_list='lists/kitti2015_train.list' \
--save_path='./checkpoint/finetune_kitti2015' \
--kitti2015=1 \
--shift=3 \
--resume='./checkpoint/sceneflow_epoch_10.pth' \
--nEpochs=800 2>&1 |tee logs/log_finetune_kitti2015.txt
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python train.py --batchSize=8 \
--crop_height=240 \
--crop_width=1248 \
--max_disp=192 \
--thread=16 \
--data_path='/media/feihu/Storage/stereo/data_scene_flow/training/' \
--training_list='lists/kitti2015_train.list' \
--save_path='./checkpoint/finetune2_kitti2015' \
--kitti2015=1 \
--shift=3 \
--lr=0.0001 \
--resume='./checkpoint/finetune_kitti2015_epoch_800.pth' \
--nEpochs=8 2>&1 |tee logs/log_finetune_kitti2015.txt
#Fine tuning for kitti 2012
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python train.py --batchSize=16 \
--crop_height=240 \
--crop_width=528 \
--max_disp=192 \
--thread=16 \
--data_path='/media/feihu/Storage/stereo/kitti/training/' \
--training_list='lists/kitti2012_train.list' \
--save_path='./checkpoint/finetune_kitti' \
--kitti=1 \
--shift=3 \
--resume='./checkpoint/sceneflow_epoch_10.pth' \
--nEpochs=800 2>&1 |tee logs/log_finetune2_kitti.txt
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python train.py --batchSize=8 \
--crop_height=240 \
--crop_width=1248 \
--max_disp=192 \
--thread=16 \
--data_path='/media/feihu/Storage/stereo/kitti/training/' \
--training_list='lists/kitti2012_train.list' \
--save_path='./checkpoint/finetune2_kitti' \
--kitti=1 \
--shift=3 \
--lr=0.0001 \
--resume='./checkpoint/finetune_kitti_epoch_800.pth' \
--nEpochs=8 2>&1 |tee logs/log_finetune2_kitti.txt