faster_fpn_reader.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. worker_num: 2
  2. TrainReader:
  3. sample_transforms:
  4. - Decode: {}
  5. - RandomResize: {target_size: [[640, 1333], [672, 1333], [704, 1333], [736, 1333], [768, 1333], [800, 1333]], interp: 2, keep_ratio: True}
  6. - RandomFlip: {prob: 0.5}
  7. - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  8. - Permute: {}
  9. batch_transforms:
  10. - PadBatch: {pad_to_stride: 32}
  11. batch_size: 1
  12. shuffle: true
  13. drop_last: true
  14. collate_batch: false
  15. EvalReader:
  16. sample_transforms:
  17. - Decode: {}
  18. - Resize: {interp: 2, target_size: [800, 1333], keep_ratio: True}
  19. - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  20. - Permute: {}
  21. batch_transforms:
  22. - PadBatch: {pad_to_stride: 32}
  23. batch_size: 1
  24. shuffle: false
  25. drop_last: false
  26. TestReader:
  27. sample_transforms:
  28. - Decode: {}
  29. - Resize: {interp: 2, target_size: [800, 1333], keep_ratio: True}
  30. - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  31. - Permute: {}
  32. batch_transforms:
  33. - PadBatch: {pad_to_stride: 32}
  34. batch_size: 1
  35. shuffle: false
  36. drop_last: false