gfl_reader.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. worker_num: 2
  2. TrainReader:
  3. sample_transforms:
  4. - Decode: {}
  5. - RandomFlip: {prob: 0.5}
  6. - Resize: {target_size: [800, 1333], keep_ratio: true, interp: 1}
  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. - Gt2GFLTarget:
  12. downsample_ratios: [8, 16, 32, 64, 128]
  13. grid_cell_scale: 8
  14. batch_size: 2
  15. shuffle: true
  16. drop_last: true
  17. use_shared_memory: True
  18. EvalReader:
  19. sample_transforms:
  20. - Decode: {}
  21. - Resize: {interp: 1, target_size: [800, 1333], keep_ratio: True}
  22. - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  23. - Permute: {}
  24. batch_transforms:
  25. - PadBatch: {pad_to_stride: 32}
  26. batch_size: 2
  27. shuffle: false
  28. TestReader:
  29. sample_transforms:
  30. - Decode: {}
  31. - Resize: {interp: 1, 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