pafnet_lite_reader.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. worker_num: 2
  2. TrainReader:
  3. sample_transforms:
  4. - Decode: {}
  5. - RandomDistort: {brightness: [-32., 32., 0.5], random_apply: False, random_channel: True}
  6. - RandomExpand: {fill_value: [123.675, 116.28, 103.53]}
  7. - RandomCrop: {aspect_ratio: NULL, cover_all_box: True}
  8. - RandomFlip: {}
  9. - GridMask: {upper_iter: 300000}
  10. batch_transforms:
  11. - BatchRandomResize: {target_size: [320, 352, 384, 416, 448, 480, 512], random_interp: True, keep_ratio: False}
  12. - NormalizeImage: {mean: [123.675, 116.28, 103.53], std: [58.395, 57.12, 57.375], is_scale: false}
  13. - Permute: {}
  14. - Gt2TTFTarget: {down_ratio: 4}
  15. - PadBatch: {pad_to_stride: 32}
  16. batch_size: 12
  17. shuffle: true
  18. drop_last: true
  19. use_shared_memory: true
  20. EvalReader:
  21. sample_transforms:
  22. - Decode: {}
  23. - Resize: {interp: 1, target_size: [320, 320], keep_ratio: False}
  24. - NormalizeImage: {is_scale: false, mean: [123.675, 116.28, 103.53], std: [58.395, 57.12, 57.375]}
  25. - Permute: {}
  26. batch_size: 1
  27. drop_last: false
  28. TestReader:
  29. sample_transforms:
  30. - Decode: {}
  31. - Resize: {interp: 1, target_size: [320, 320], keep_ratio: False}
  32. - NormalizeImage: {is_scale: false, mean: [123.675, 116.28, 103.53], std: [58.395, 57.12, 57.375]}
  33. - Permute: {}
  34. batch_size: 1
  35. drop_last: false