face_reader.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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: [123.675, 116.28, 103.53]}
  9. - RandomFlip: {}
  10. - CropWithDataAchorSampling: {
  11. anchor_sampler: [[1, 10, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.2, 0.0]],
  12. batch_sampler: [
  13. [1, 50, 1.0, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0],
  14. [1, 50, 0.3, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0],
  15. [1, 50, 0.3, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0],
  16. [1, 50, 0.3, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0],
  17. [1, 50, 0.3, 1.0, 1.0, 1.0, 0.0, 0.0, 1.0, 0.0],
  18. ],
  19. target_size: 640}
  20. - Resize: {target_size: [640, 640], keep_ratio: False, interp: 1}
  21. - NormalizeBox: {}
  22. - PadBox: {num_max_boxes: 90}
  23. batch_transforms:
  24. - NormalizeImage: {mean: [123, 117, 104], std: [127.502231, 127.502231, 127.502231], is_scale: false}
  25. - Permute: {}
  26. batch_size: 8
  27. shuffle: true
  28. drop_last: true
  29. EvalReader:
  30. sample_transforms:
  31. - Decode: {}
  32. - NormalizeImage: {mean: [123, 117, 104], std: [127.502231, 127.502231, 127.502231], is_scale: false}
  33. - Permute: {}
  34. batch_size: 1
  35. TestReader:
  36. sample_transforms:
  37. - Decode: {}
  38. - NormalizeImage: {mean: [123, 117, 104], std: [127.502231, 127.502231, 127.502231], is_scale: false}
  39. - Permute: {}
  40. batch_size: 1