File size: 6,730 Bytes
ee454f2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
comet:
  display_size: 20
  im_per_row:
    d: 4
    m: 6
    p: 4
    s: 4
  rows_per_log: 5
  tags: []
data:
  check_samples: false
  files:
    base: /miniscratch/_groups/ccai/data/jsons
    train:
      kitti: /miniscratch/_groups/ccai/data/jsons/train_kitti.json
      r: /miniscratch/_groups/ccai/data/jsons/train_r_full.json
      rf: /miniscratch/_groups/ccai/data/jsons/train_rf.json
      s: /miniscratch/_groups/ccai/data/jsons/train_s_fixedholes.json
    val:
      kitti: /miniscratch/_groups/ccai/data/jsons/val_kitti.json
      r: /miniscratch/_groups/ccai/data/jsons/val_r_full.json
      rf: /miniscratch/_groups/ccai/data/jsons/val_rf_labelbox.json
      s: /miniscratch/_groups/ccai/data/jsons/val_s_fixedholes.json
  loaders:
    batch_size: 4
    num_workers: 4
  max_samples: -1
  normalization: default
  transforms:
  - ignore: val
    name: hflip
    p: 0.5
  - ignore: false
    keep_aspect_ratio: true
    name: resize
    new_size: 640
  - center: val
    height: 600
    ignore: false
    name: crop
    width: 600
  - ignore: val
    name: brightness
  - ignore: val
    name: saturation
  - ignore: val
    name: contrast
  - ignore: false
    name: resize
    new_size:
      d: 160
      default: 640
      s: 160
dis:
  default:
    get_intermediate_features: false
    init_gain: 0.02
    init_type: xavier
    input_nc: 3
    n_layers: 4
    ndf: 64
    norm: instance
    num_D: 1
    use_sigmoid: false
  flip_prob: 0.05
  m:
    architecture: base
    gan_type: WGAN_norm
    get_intermediate_features: false
    init_gain: 0.02
    init_type: xavier
    input_nc: 3
    multi_level: false
    n_layers: 4
    ndf: 64
    norm: instance
    num_D: 1
    use_sigmoid: false
    wgan_clamp_lower: -0.01
    wgan_clamp_upper: 0.01
  opt:
    beta1: 0.5
    lr:
      default: 2.0e-05
    lr_gamma: 0.5
    lr_milestones: 5
    lr_policy: step
    lr_step_size: 15
    optimizer: ExtraAdam
  p:
    get_intermediate_features: true
    init_gain: 0.02
    init_type: xavier
    input_nc: 3
    n_layers: 4
    ndf: 64
    norm: instance
    num_D: 3
    use_local_discriminator: false
    use_sigmoid: false
  s:
    gan_type: WGAN_norm
    get_intermediate_features: false
    init_gain: 0.02
    init_type: xavier
    input_nc: 3
    n_layers: 4
    ndf: 64
    norm: instance
    num_D: 1
    use_sigmoid: false
    wgan_clamp_lower: -0.01
    wgan_clamp_upper: 0.01
  soft_shift: 0.2
domains:
- r
- s
gen:
  d:
    activ: lrelu
    architecture: dada
    classify:
      enable: false
      linspace:
        buckets: 256
        max: 6.95
        min: 0.35
    init_gain: 0.02
    init_type: xavier
    loss: sigm
    n_downsample: 3
    n_res: 1
    n_upsample: 3
    norm: batch
    output_dim: 1
    pad_type: reflect
    proj_dim: 32
    upsample_featuremaps: true
  deeplabv2:
    nblocks:
    - 3
    - 4
    - 23
    - 3
    pretrained_model: /miniscratch/_groups/ccai/data/pretrained_models/deeplabv2/DeepLab_resnet_pretrained_imagenet.pth
    use_pretrained: true
  deeplabv3:
    backbone: resnet
    output_stride: 8
    pretrained_model:
      mobilenet: /miniscratch/_groups/ccai/data/pretrained_models/deeplabv3/deeplabv3_plus_mobilenetv2_segmentron.pth
      resnet: /miniscratch/_groups/ccai/data/pretrained_models/deeplabv3/model_CoinCheungDeepLab-v3-plus.pth
    use_pretrained: true
  default:
    activ: lrelu
    init_gain: 0.02
    init_type: xavier
    n_downsample: 3
    n_res: 1
    n_upsample: 3
    norm: spectral
    pad_type: reflect
    proj_dim: 32
  encoder:
    activ: lrelu
    architecture: deeplabv3
    dim: 32
    init_gain: 0.02
    init_type: xavier
    input_dim: 3
    n_downsample: 3
    n_res: 0
    n_upsample: 3
    norm: spectral
    pad_type: reflect
    proj_dim: 32
  m:
    activ: lrelu
    init_gain: 0.02
    init_type: xavier
    n_downsample: 3
    n_res: 3
    n_upsample: 3
    norm: spectral
    output_dim: 1
    pad_type: reflect
    proj_dim: 64
    spade:
      activations:
        all_lrelu: true
      cond_nc: 15
      detach: false
      latent_dim: 128
      num_layers: 3
      spade_param_free_norm: batch
      spade_use_spectral_norm: true
    use_advent: true
    use_ground_intersection: true
    use_low_level_feats: true
    use_minent: true
    use_minent_var: true
    use_pl4m: false
    use_proj: true
    use_spade: true
  opt:
    beta1: 0.9
    lr:
      default: 5.0e-05
    lr_gamma: 0.5
    lr_milestones: 15
    lr_policy: step
    lr_step_size: 5
    optimizer: ExtraAdam
  p:
    activ: lrelu
    diff_aug:
      cutout_ratio: 0.5
      do_color_jittering: false
      do_cutout: false
      do_translation: false
      translation_ratio: 0.125
      use: false
    init_gain: 0.02
    init_type: xavier
    latent_dim: 640
    loss: gan
    n_downsample: 3
    n_res: 1
    n_upsample: 3
    no_z: true
    norm: spectral
    output_dim: 3
    pad_type: reflect
    paste_original_content: true
    pl4m_epoch: 49
    proj_dim: 32
    spade_kernel_size: 3
    spade_n_up: 7
    spade_param_free_norm: instance
    spade_use_spectral_norm: true
    use_final_shortcut: false
  s:
    activ: lrelu
    architecture: deeplabv3
    depth_dada_fusion: true
    depth_feat_fusion: true
    init_gain: 0.02
    init_type: xavier
    n_downsample: 3
    n_res: 1
    n_upsample: 3
    norm: spectral
    num_classes: 11
    output_dim: 11
    pad_type: reflect
    proj_dim: 32
    upsample_featuremaps: false
    use_advent: true
    use_minent: true
load_paths:
  m: config/model/masker/checkpoints/latest_ckpt.pth # relative to $PWD, *not* this file 
  p: none
  pm: none
output_path: /miniscratch/_groups/ccai/experiments/runs/ablation-v0/out--49167587
tasks:
- m
- s
- d
train:
  amp: false
  auto_resume: true
  epochs: 50
  fid:
    batch_size: 50
    dims: 2048
    n_images: 57
  kitti:
    batch_size: 6
    epochs: 10
    pretrain: false
  lambdas:
    C: 1
    G:
      classifier: 1
      d:
        gml: 0.5
        main: 1
      m:
        bce: 1
        gi: 0.05
        pl4m: 1
        tv: 1
      p:
        context: 0
        dm: 1
        featmatch: 10
        gan: 1
        reconstruction: 0
        tv: 0
        vgg: 10
      s:
        advent: 0.001
        crossent: 1
        crossent_pseudo: 0.001
        minent: 0.001
    advent:
      WGAN_gp: 10
      adv_aux: 0.0
      adv_main: 1.0
      dis_aux: 0.0
      dis_main: 1.0
      ent_aux: 0.0
      ent_main: 0.5
      ent_var: 0.1
  latent_domain_adaptation: false
  log_level: 2
  min_save_epoch: 28
  pseudo:
    epochs: 10
    tasks:
    - m
    - s
    - d
  resume: false
  save_n_epochs: 25
val:
  store_images: false
  val_painter: config/model/painter/checkpoints/latest_ckpt.pth # relative to $PWD, *not* this file