dino_reader.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. worker_num: 4
  2. TrainReader:
  3. sample_transforms:
  4. - Decode: {}
  5. - RandomFlip: {prob: 0.5}
  6. - RandomSelect: { transforms1: [ RandomShortSideResize: { short_side_sizes: [ 480, 512, 544, 576, 608, 640, 672, 704, 736, 768, 800 ], max_size: 1333 } ],
  7. transforms2: [
  8. RandomShortSideResize: { short_side_sizes: [ 400, 500, 600 ] },
  9. RandomSizeCrop: { min_size: 384, max_size: 600 },
  10. RandomShortSideResize: { short_side_sizes: [ 480, 512, 544, 576, 608, 640, 672, 704, 736, 768, 800 ], max_size: 1333 } ]
  11. }
  12. - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  13. - NormalizeBox: {}
  14. - BboxXYXY2XYWH: {}
  15. - Permute: {}
  16. batch_transforms:
  17. - PadMaskBatch: {pad_to_stride: -1, return_pad_mask: true}
  18. batch_size: 4
  19. shuffle: true
  20. drop_last: true
  21. collate_batch: false
  22. use_shared_memory: false
  23. EvalReader:
  24. sample_transforms:
  25. - Decode: {}
  26. - Resize: {target_size: [800, 1333], keep_ratio: True}
  27. - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  28. - Permute: {}
  29. batch_transforms:
  30. - PadMaskBatch: {pad_to_stride: -1, return_pad_mask: true}
  31. batch_size: 1
  32. shuffle: false
  33. drop_last: false
  34. TestReader:
  35. sample_transforms:
  36. - Decode: {}
  37. - Resize: {target_size: [800, 1333], keep_ratio: True}
  38. - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  39. - Permute: {}
  40. batch_transforms:
  41. - PadMaskBatch: {pad_to_stride: -1, return_pad_mask: true}
  42. batch_size: 1
  43. shuffle: false
  44. drop_last: false