mask_rcnn_reader.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. worker_num: 2
  2. TrainReader:
  3. sample_transforms:
  4. - Decode: {}
  5. # - RandomResizeCrop: {resizes: [400, 500, 600], cropsizes: [[384, 600], ], prob: 0.5}
  6. - RandomResize: {target_size: [[640, 1333], [672, 1333], [704, 1333], [736, 1333], [768, 1333], [800, 1333]], 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: 1
  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: [800, 1333], 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: [800, 1333], 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