faster_rcnn_enhance_reader.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. worker_num: 2
  2. TrainReader:
  3. sample_transforms:
  4. - Decode: {}
  5. - AutoAugment: {autoaug_type: v1}
  6. - RandomResize: {target_size: [[384,1000], [416,1000], [448,1000], [480,1000], [512,1000], [544,1000], [576,1000], [608,1000], [640,1000], [672,1000]], interp: 2, keep_ratio: True}
  7. - RandomFlip: {prob: 0.5}
  8. - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  9. - Permute: {}
  10. batch_transforms:
  11. - PadBatch: {pad_to_stride: 32}
  12. batch_size: 2
  13. shuffle: true
  14. drop_last: true
  15. collate_batch: false
  16. use_shared_memory: true
  17. EvalReader:
  18. sample_transforms:
  19. - Decode: {}
  20. - Resize: {interp: 2, target_size: [640, 640], keep_ratio: True}
  21. - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  22. - Permute: {}
  23. batch_transforms:
  24. - PadBatch: {pad_to_stride: 32}
  25. batch_size: 1
  26. shuffle: false
  27. drop_last: false
  28. TestReader:
  29. sample_transforms:
  30. - Decode: {}
  31. - Resize: {interp: 2, target_size: [640, 640], keep_ratio: True}
  32. - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  33. - Permute: {}
  34. batch_transforms:
  35. - PadBatch: {pad_to_stride: 32}
  36. batch_size: 1
  37. shuffle: false
  38. drop_last: false