-
Notifications
You must be signed in to change notification settings - Fork 7
/
train.sh
executable file
·88 lines (82 loc) · 2.09 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/bin/env bash
# can be trained on a single 32G V100 GPU
# chairs
CHECKPOINT_DIR=checkpoints/chairs-flow1d && \
mkdir -p ${CHECKPOINT_DIR} && \
CUDA_VISIBLE_DEVICES=0 python main.py \
--checkpoint_dir ${CHECKPOINT_DIR} \
--batch_size 12 \
--val_dataset chairs sintel kitti \
--val_iters 12 \
--lr 4e-4 \
--image_size 368 496 \
--summary_freq 100 \
--val_freq 10000 \
--save_ckpt_freq 5000 \
--save_latest_ckpt_freq 1000 \
--num_steps 100000 \
2>&1 | tee ${CHECKPOINT_DIR}/train.log
# things
CHECKPOINT_DIR=checkpoints/things-flow1d && \
mkdir -p ${CHECKPOINT_DIR} && \
CUDA_VISIBLE_DEVICES=0 python main.py \
--stage things \
--resume checkpoints/chairs-flow1d/step_100000.pth \
--no_resume_optimizer \
--checkpoint_dir ${CHECKPOINT_DIR} \
--batch_size 6 \
--val_dataset sintel kitti \
--val_iters 12 \
--lr 1.25e-4 \
--image_size 400 720 \
--freeze_bn \
--summary_freq 100 \
--val_freq 10000 \
--save_ckpt_freq 5000 \
--save_latest_ckpt_freq 1000 \
--num_steps 100000 \
2>&1 | tee ${CHECKPOINT_DIR}/train.log
# sintel
CHECKPOINT_DIR=checkpoints/sintel-flow1d && \
mkdir -p ${CHECKPOINT_DIR} && \
CUDA_VISIBLE_DEVICES=0 python main.py \
--stage sintel \
--resume checkpoints/things-flow1d/step_100000.pth \
--no_resume_optimizer \
--checkpoint_dir ${CHECKPOINT_DIR} \
--batch_size 6 \
--val_dataset sintel kitti \
--val_iters 12 \
--lr 1.25e-4 \
--weight_decay 1e-5 \
--gamma 0.85 \
--image_size 368 960 \
--freeze_bn \
--summary_freq 100 \
--val_freq 10000 \
--save_ckpt_freq 5000 \
--save_latest_ckpt_freq 1000 \
--num_steps 100000 \
2>&1 | tee ${CHECKPOINT_DIR}/train.log
# kitti
CHECKPOINT_DIR=checkpoints/kitti-flow1d && \
mkdir -p ${CHECKPOINT_DIR} && \
CUDA_VISIBLE_DEVICES=0 python main.py \
--stage kitti \
--resume checkpoints/sintel-flow1d/step_100000.pth \
--no_resume_optimizer \
--checkpoint_dir ${CHECKPOINT_DIR} \
--batch_size 6 \
--val_dataset kitti \
--val_iters 12 \
--lr 1e-4 \
--weight_decay 1e-5 \
--gamma 0.85 \
--image_size 320 1024 \
--freeze_bn \
--summary_freq 100 \
--val_freq 10000 \
--save_ckpt_freq 5000 \
--save_latest_ckpt_freq 1000 \
--num_steps 50000 \
2>&1 | tee ${CHECKPOINT_DIR}/train.log