picodet_416_reader.yml 1.1 KB
Newer Older
G
Guanghua Yu 已提交
1 2 3 4 5 6
worker_num: 6
TrainReader:
  sample_transforms:
  - Decode: {}
  - RandomCrop: {}
  - RandomFlip: {prob: 0.5}
G
Guanghua Yu 已提交
7
  - RandomDistort: {}
G
Guanghua Yu 已提交
8
  batch_transforms:
G
Guanghua Yu 已提交
9 10 11 12
  - BatchRandomResize: {target_size: [352, 384, 416, 448, 480], random_size: True, random_interp: True, keep_ratio: False}
  - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  - Permute: {}
  batch_size: 80
G
Guanghua Yu 已提交
13 14
  shuffle: true
  drop_last: true
15
  collate_batch: false
G
Guanghua Yu 已提交
16 17 18 19 20


EvalReader:
  sample_transforms:
  - Decode: {}
G
Guanghua Yu 已提交
21
  - Resize: {interp: 2, target_size: [416, 416], keep_ratio: False}
G
Guanghua Yu 已提交
22
  - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
G
Guanghua Yu 已提交
23 24 25 26 27 28 29 30 31
  - Permute: {}
  batch_transforms:
  - PadBatch: {pad_to_stride: 32}
  batch_size: 8
  shuffle: false


TestReader:
  inputs_def:
32
    image_shape: [1, 3, 416, 416]
G
Guanghua Yu 已提交
33 34
  sample_transforms:
  - Decode: {}
G
Guanghua Yu 已提交
35
  - Resize: {interp: 2, target_size: [416, 416], keep_ratio: False}
G
Guanghua Yu 已提交
36
  - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
G
Guanghua Yu 已提交
37 38 39 40 41
  - Permute: {}
  batch_transforms:
  - PadBatch: {pad_to_stride: 32}
  batch_size: 1
  shuffle: false