Skip to content

Commit dfbdc27

Browse files
DGP Multi-Cam + Velocity Loss + FP16 Inference + PackNetSlim (TRI-ML#30)
* Support for multi-camera loading on the DGP dataset * Support for fp16 at inference time * Velocity loss (see VelSupModel) * PackNetSlim01 (faster version of PackNet)
1 parent f44a196 commit dfbdc27

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1972
-983
lines changed

Diff for: configs/default_config.py

+10-8
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@
8080
########################################################################################################################
8181
cfg.model.loss = CN()
8282
#
83-
cfg.model.loss.num_scales = 4 # Number of inverse depth scales to use
84-
cfg.model.loss.progressive_scaling = 0.0 # Training percentage to decay number of scales
85-
cfg.model.loss.flip_lr_prob = 0.5 # Probablity of horizontal flippping
86-
cfg.model.loss.rotation_mode = 'euler' # Rotation mode
87-
cfg.model.loss.upsample_depth_maps = True # Resize depth maps to highest resolution
83+
cfg.model.loss.num_scales = 4 # Number of inverse depth scales to use
84+
cfg.model.loss.progressive_scaling = 0.0 # Training percentage to decay number of scales
85+
cfg.model.loss.flip_lr_prob = 0.5 # Probablity of horizontal flippping
86+
cfg.model.loss.rotation_mode = 'euler' # Rotation mode
87+
cfg.model.loss.upsample_depth_maps = True # Resize depth maps to highest resolution
8888
#
8989
cfg.model.loss.ssim_loss_weight = 0.85 # SSIM loss weight
9090
cfg.model.loss.occ_reg_weight = 0.1 # Occlusion regularizer loss weight
@@ -97,6 +97,8 @@
9797
cfg.model.loss.padding_mode = 'zeros' # Photometric loss padding mode
9898
cfg.model.loss.automask_loss = True # Automasking to remove static pixels
9999
#
100+
cfg.model.loss.velocity_loss_weight = 0.1 # Velocity supervision loss weight
101+
#
100102
cfg.model.loss.supervised_method = 'sparse-l1' # Method for depth supervision
101103
cfg.model.loss.supervised_num_scales = 4 # Number of scales for supervised learning
102104
cfg.model.loss.supervised_loss_weight = 0.9 # Supervised loss weight
@@ -138,7 +140,7 @@
138140
cfg.datasets.train.path = [] # Training data path
139141
cfg.datasets.train.split = [] # Training split
140142
cfg.datasets.train.depth_type = [''] # Training depth type
141-
cfg.datasets.train.cameras = [] # Training cameras
143+
cfg.datasets.train.cameras = [[]] # Training cameras (double list, one for each dataset)
142144
cfg.datasets.train.repeat = [1] # Number of times training dataset is repeated per epoch
143145
cfg.datasets.train.num_logs = 5 # Number of training images to log
144146
########################################################################################################################
@@ -153,7 +155,7 @@
153155
cfg.datasets.validation.path = [] # Validation data path
154156
cfg.datasets.validation.split = [] # Validation split
155157
cfg.datasets.validation.depth_type = [''] # Validation depth type
156-
cfg.datasets.validation.cameras = [] # Validation cameras
158+
cfg.datasets.validation.cameras = [[]] # Validation cameras (double list, one for each dataset)
157159
cfg.datasets.validation.num_logs = 5 # Number of validation images to log
158160
########################################################################################################################
159161
### DATASETS.TEST
@@ -167,7 +169,7 @@
167169
cfg.datasets.test.path = [] # Test data path
168170
cfg.datasets.test.split = [] # Test split
169171
cfg.datasets.test.depth_type = [''] # Test depth type
170-
cfg.datasets.test.cameras = [] # Test cameras
172+
cfg.datasets.test.cameras = [[]] # Test cameras (double list, one for each dataset)
171173
cfg.datasets.test.num_logs = 5 # Number of test images to log
172174
########################################################################################################################
173175
### THESE SHOULD NOT BE CHANGED

Diff for: configs/eval_ddad.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ datasets:
1818
path: ['/data/datasets/DDAD/ddad.json']
1919
split: ['val']
2020
depth_type: ['lidar']
21-
cameras: ['camera_01']
21+
cameras: [['camera_01']]
2222
save:
2323
folder: '/data/save'
2424
viz: True

Diff for: configs/overfit_ddad.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ datasets:
3131
path: ['/data/datasets/DDAD_tiny/ddad_tiny.json']
3232
split: ['train']
3333
depth_type: ['lidar']
34-
cameras: ['camera_01']
34+
cameras: [['camera_01']]
3535
repeat: [500]
3636
validation:
3737
dataset: ['DGP']
3838
path: ['/data/datasets/DDAD_tiny/ddad_tiny.json']
3939
split: ['train']
4040
depth_type: ['lidar']
41-
cameras: ['camera_01']
41+
cameras: [['camera_01']]
4242
test:
4343
dataset: ['DGP']
4444
path: ['/data/datasets/DDAD_tiny/ddad_tiny.json']
4545
split: ['train']
4646
depth_type: ['lidar']
47-
cameras: ['camera_01']
47+
cameras: [['camera_01']]

Diff for: configs/train_ddad.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ datasets:
3030
path: ['/data/datasets/DDAD/ddad.json']
3131
split: ['train']
3232
depth_type: ['lidar']
33-
cameras: ['camera_01']
33+
cameras: [['camera_01']]
3434
repeat: [5]
3535
validation:
3636
num_workers: 8
3737
dataset: ['DGP']
3838
path: ['/data/datasets/DDAD/ddad.json']
3939
split: ['val']
4040
depth_type: ['lidar']
41-
cameras: ['camera_01']
41+
cameras: [['camera_01']]
4242
test:
4343
num_workers: 8
4444
dataset: ['DGP']
4545
path: ['/data/datasets/DDAD/ddad.json']
4646
split: ['val']
4747
depth_type: ['lidar']
48-
cameras: ['camera_01']
48+
cameras: [['camera_01']]

0 commit comments

Comments
 (0)