-
Notifications
You must be signed in to change notification settings - Fork 57
/
stereobase_sceneflow.yaml
87 lines (79 loc) · 2.28 KB
/
stereobase_sceneflow.yaml
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
DATA_CONFIG:
DATA_INFOS:
- DATASET: SceneFlowDataset
DATA_SPLIT: {
TRAINING: ./data/SceneFlow/sceneflow_finalpass_train.txt,
EVALUATING: ./data/SceneFlow/sceneflow_finalpass_test.txt,
TESTING: ./data/SceneFlow/sceneflow_finalpass_test.txt
}
DATA_PATH: /yourpath/SceneFlow
RETURN_RIGHT_DISP: false
DATA_TRANSFORM:
TRAINING:
- { NAME: StereoColorJitter, BRIGHTNESS: [ 0.6, 1.4 ], CONTRAST: [ 0.6, 1.4 ], SATURATION: [ 0.6, 1.4 ], HUE: 0.5, ASYMMETRIC_PROB: 0.2 }
- { NAME: RandomErase, PROB: 0.5, MAX_TIME: 2, BOUNDS: [ 50, 100 ] }
- { NAME: RandomScale, SIZE: [ 320, 736 ], MIN_SCALE: -0.2, MAX_SCALE: 0.4, SCALE_PROB: 0.8, STRETCH_PROB: 0.8 }
- { NAME: RandomCrop, SIZE: [ 320, 736 ], Y_JITTER: False }
- { NAME: TransposeImage }
- { NAME: ToTensor }
EVALUATING:
- { NAME: RightTopPad, SIZE: [ 544, 960 ] }
- { NAME: TransposeImage }
- { NAME: ToTensor }
MODEL:
NAME: StereoBaseGRU
MAX_DISP: &max_disp 192
NUM_GROUPS: 8
CONCAT_CHANNELS: 8
USE_CONCAT_VOLUME: true
USE_GWC_VOLUME: true
USE_SUB_VOLUME: false
USE_INTERLACED_VOLUME: false
HIDDEN_DIMS: [ 128, 128, 128 ]
N_DOWNSAMPLE: 2
N_GRU_LAYERS: 3
CORR_RADIUS: 4
CORR_LEVELS: 2
SLOW_FAST_GRU: False
TRAIN_ITERS: 22
EVAL_ITERS: 32
FIND_UNUSED_PARAMETERS: false
CKPT: -1
PRETRAINED_MODEL: ''
OPTIMIZATION:
FREEZE_BN: true
SYNC_BN: true
AMP: true
BATCH_SIZE_PER_GPU: 2
NUM_EPOCHS: 90
OPTIMIZER:
NAME: AdamW
LR: &lr 0.0002
WEIGHT_DECAY: 1.0e-05
EPS: 1.0e-08
SCHEDULER:
NAME: OneCycleLR
ON_EPOCH: False
MAX_LR: *lr
PCT_START: 0.01
CYCLE_MOMENTUM: False
ANNEAL_STRATEGY: linear
CLIP_GRAD:
TYPE: value
CLIP_VALUE: 1.0
EVALUATOR:
BATCH_SIZE_PER_GPU: 4
MAX_DISP: *max_disp
METRIC:
- d1_all
- epe
- thres_1
- thres_2
- thres_3
TRAINER:
EVAL_INTERVAL: 1
CKPT_SAVE_INTERVAL: 1
MAX_CKPT_SAVE_NUM: 30
LOGGER_ITER_INTERVAL: 10
TRAIN_VISUALIZATION: True
EVAL_VISUALIZATION: True