File size: 3,055 Bytes
24eb05d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# @package _group_

batch_size: 10
val_batch_size: 2
num_workers: 3

train:
  kind: default_web
  shuffle_buffer: 200
  indir: ${location.data_root_dir}/train_standard/part{00000..00039}.tar
  out_size: 256
  mask_gen_kwargs:  # probabilities do not need to sum to 1, they are re-normalized in mask generator
    irregular_proba: 1
    irregular_kwargs:
      max_angle: 4
      max_len: 200
      max_width: 100
      max_times: 5
      min_times: 1

    box_proba: 1
    box_kwargs:
      margin: 10
      bbox_min_size: 30
      bbox_max_size: 150
      max_times: 4
      min_times: 1

    segm_proba: 0

  transform_variant: distortions
  dataloader_kwargs:
    batch_size: ${data.batch_size}
    shuffle: True
    num_workers: ${data.num_workers}

val:
  indir: ${location.data_root_dir}/val
  img_suffix: .png
  dataloader_kwargs:
    batch_size: ${data.val_batch_size}
    shuffle: False
    num_workers: ${data.num_workers}

#extra_val:
#  random_thin_256:
#    indir: ${location.data_root_dir}/final_extra_val/random_thin_256
#    img_suffix: .png
#    dataloader_kwargs:
#      batch_size: ${data.val_batch_size}
#      shuffle: False
#      num_workers: ${data.num_workers}
#  random_medium_256:
#    indir: ${location.data_root_dir}/final_extra_val/random_medium_256
#    img_suffix: .png
#    dataloader_kwargs:
#      batch_size: ${data.val_batch_size}
#      shuffle: False
#      num_workers: ${data.num_workers}
#  random_thick_256:
#    indir: ${location.data_root_dir}/final_extra_val/random_thick_256
#    img_suffix: .png
#    dataloader_kwargs:
#      batch_size: ${data.val_batch_size}
#      shuffle: False
#      num_workers: ${data.num_workers}
#  random_thin_512:
#    indir: ${location.data_root_dir}/final_extra_val/random_thin_512
#    img_suffix: .png
#    dataloader_kwargs:
#      batch_size: ${data.val_batch_size}
#      shuffle: False
#      num_workers: ${data.num_workers}
#  random_medium_512:
#    indir: ${location.data_root_dir}/final_extra_val/random_medium_512
#    img_suffix: .png
#    dataloader_kwargs:
#      batch_size: ${data.val_batch_size}
#      shuffle: False
#      num_workers: ${data.num_workers}
#  random_thick_512:
#    indir: ${location.data_root_dir}/final_extra_val/random_thick_512
#    img_suffix: .png
#    dataloader_kwargs:
#      batch_size: ${data.val_batch_size}
#      shuffle: False
#      num_workers: ${data.num_workers}
#  segm_256:
#    indir: ${location.data_root_dir}/final_extra_val/segm_256
#    img_suffix: .png
#    dataloader_kwargs:
#      batch_size: ${data.val_batch_size}
#      shuffle: False
#      num_workers: ${data.num_workers}
#  segm_512:
#    indir: ${location.data_root_dir}/final_extra_val/segm_512
#    img_suffix: .png
#    dataloader_kwargs:
#      batch_size: ${data.val_batch_size}
#      shuffle: False
#      num_workers: ${data.num_workers}

visual_test:
  indir: ${location.data_root_dir}/visual_test
  img_suffix: _input.png
  pad_out_to_modulo: 32
  dataloader_kwargs:
    batch_size: 1
    shuffle: False
    num_workers: ${data.num_workers}