fcosr_reader.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. worker_num: 4
  2. image_height: &image_height 1024
  3. image_width: &image_width 1024
  4. image_size: &image_size [*image_height, *image_width]
  5. TrainReader:
  6. sample_transforms:
  7. - Decode: {}
  8. - Poly2Array: {}
  9. - RandomRFlip: {}
  10. - RandomRRotate: {angle_mode: 'value', angle: [0, 90, 180, -90]}
  11. - RandomRRotate: {angle_mode: 'value', angle: [30, 60], rotate_prob: 0.5}
  12. - RResize: {target_size: *image_size, keep_ratio: True, interp: 2}
  13. - Poly2RBox: {filter_threshold: 2, filter_mode: 'edge', rbox_type: 'oc'}
  14. batch_transforms:
  15. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  16. - Permute: {}
  17. - PadRGT: {}
  18. - PadBatch: {pad_to_stride: 32}
  19. batch_size: 4
  20. shuffle: true
  21. drop_last: true
  22. use_shared_memory: true
  23. collate_batch: true
  24. EvalReader:
  25. sample_transforms:
  26. - Decode: {}
  27. - Poly2Array: {}
  28. - RResize: {target_size: *image_size, keep_ratio: True, interp: 2}
  29. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  30. - Permute: {}
  31. batch_transforms:
  32. - PadBatch: {pad_to_stride: 32}
  33. batch_size: 2
  34. collate_batch: false
  35. TestReader:
  36. sample_transforms:
  37. - Decode: {}
  38. - Resize: {target_size: *image_size, keep_ratio: True, interp: 2}
  39. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: True}
  40. - Permute: {}
  41. batch_transforms:
  42. - PadBatch: {pad_to_stride: 32}
  43. batch_size: 2