ssd_reader.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. worker_num: 2
  2. TrainReader:
  3. inputs_def:
  4. num_max_boxes: 90
  5. sample_transforms:
  6. - Decode: {}
  7. - RandomDistort: {brightness: [0.5, 1.125, 0.875], random_apply: False}
  8. - RandomExpand: {fill_value: [104., 117., 123.]}
  9. - RandomCrop: {allow_no_crop: true}
  10. - RandomFlip: {}
  11. - Resize: {target_size: [300, 300], keep_ratio: False, interp: 1}
  12. - NormalizeBox: {}
  13. - PadBox: {num_max_boxes: 90}
  14. batch_transforms:
  15. - NormalizeImage: {mean: [104., 117., 123.], std: [1., 1., 1.], is_scale: false}
  16. - Permute: {}
  17. batch_size: 8
  18. shuffle: true
  19. drop_last: true
  20. EvalReader:
  21. sample_transforms:
  22. - Decode: {}
  23. - Resize: {target_size: [300, 300], keep_ratio: False, interp: 1}
  24. - NormalizeImage: {mean: [104., 117., 123.], std: [1., 1., 1.], is_scale: false}
  25. - Permute: {}
  26. batch_size: 1
  27. TestReader:
  28. inputs_def:
  29. image_shape: [3, 300, 300]
  30. sample_transforms:
  31. - Decode: {}
  32. - Resize: {target_size: [300, 300], keep_ratio: False, interp: 1}
  33. - NormalizeImage: {mean: [104., 117., 123.], std: [1., 1., 1.], is_scale: false}
  34. - Permute: {}
  35. batch_size: 1