fcos_reader.yml 1.1 KB
Newer Older
F
Feng Ni 已提交
1 2 3
worker_num: 2
TrainReader:
  sample_transforms:
W
wangxinxin08 已提交
4 5 6 7 8
  - Decode: {}
  - RandomFlip: {prob: 0.5}
  - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - Resize: {target_size: [800, 1333], keep_ratio: true, interp: 1}
  - Permute: {}
F
Feng Ni 已提交
9
  batch_transforms:
W
wangxinxin08 已提交
10
  - PadBatch: {pad_to_stride: 128}
F
Feng Ni 已提交
11 12 13 14 15 16 17 18 19 20 21 22
  - Gt2FCOSTarget:
      object_sizes_boundary: [64, 128, 256, 512]
      center_sampling_radius: 1.5
      downsample_ratios: [8, 16, 32, 64, 128]
      norm_reg_targets: True
  batch_size: 2
  shuffle: true
  drop_last: true


EvalReader:
  sample_transforms:
W
wangxinxin08 已提交
23 24 25 26
  - Decode: {}
  - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - Resize: {interp: 1, target_size: [800, 1333], keep_ratio: True}
  - Permute: {}
F
Feng Ni 已提交
27
  batch_transforms:
W
wangxinxin08 已提交
28
  - PadBatch: {pad_to_stride: 128}
F
Feng Ni 已提交
29 30 31 32 33 34
  batch_size: 1
  shuffle: false


TestReader:
  sample_transforms:
W
wangxinxin08 已提交
35 36 37 38
  - Decode: {}
  - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - Resize: {interp: 1, target_size: [800, 1333], keep_ratio: True}
  - Permute: {}
F
Feng Ni 已提交
39
  batch_transforms:
W
wangxinxin08 已提交
40
  - PadBatch: {pad_to_stride: 128}
F
Feng Ni 已提交
41 42
  batch_size: 1
  shuffle: false