s2anet_reader.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. worker_num: 4
  2. TrainReader:
  3. sample_transforms:
  4. - Decode: {}
  5. - Poly2Array: {}
  6. - RandomRFlip: {}
  7. - RResize: {target_size: [1024, 1024], keep_ratio: True, interp: 2}
  8. - Poly2RBox: {rbox_type: 'le135'}
  9. batch_transforms:
  10. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  11. - Permute: {}
  12. - PadRGT: {}
  13. - PadBatch: {pad_to_stride: 32}
  14. batch_size: 2
  15. shuffle: true
  16. drop_last: true
  17. EvalReader:
  18. sample_transforms:
  19. - Decode: {}
  20. - Poly2Array: {}
  21. - RResize: {target_size: [1024, 1024], keep_ratio: True, interp: 2}
  22. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  23. - Permute: {}
  24. batch_transforms:
  25. - PadBatch: {pad_to_stride: 32}
  26. batch_size: 2
  27. shuffle: false
  28. drop_last: false
  29. collate_batch: false
  30. TestReader:
  31. sample_transforms:
  32. - Decode: {}
  33. - Resize: {interp: 2, target_size: [1024, 1024], keep_ratio: True}
  34. - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  35. - Permute: {}
  36. batch_transforms:
  37. - PadBatch: {pad_to_stride: 32}
  38. batch_size: 1
  39. shuffle: false
  40. drop_last: false