retinanet_reader.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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]], keep_ratio: True, interp: 1}
  6. - RandomFlip: {}
  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: 2
  12. shuffle: True
  13. drop_last: True
  14. collate_batch: False
  15. EvalReader:
  16. sample_transforms:
  17. - Decode: {}
  18. - Resize: {target_size: [800, 1333], keep_ratio: True, interp: 1}
  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: 8
  24. TestReader:
  25. sample_transforms:
  26. - Decode: {}
  27. - Resize: {target_size: [800, 1333], keep_ratio: True, interp: 1}
  28. - NormalizeImage: {is_scale: True, mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225]}
  29. - Permute: {}
  30. batch_transforms:
  31. - PadBatch: {pad_to_stride: 32}
  32. batch_size: 1