picodet_416_reader.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. worker_num: 6
  2. eval_height: &eval_height 416
  3. eval_width: &eval_width 416
  4. eval_size: &eval_size [*eval_height, *eval_width]
  5. TrainReader:
  6. sample_transforms:
  7. - Decode: {}
  8. - RandomCrop: {}
  9. - RandomFlip: {prob: 0.5}
  10. - RandomDistort: {}
  11. batch_transforms:
  12. - BatchRandomResize: {target_size: [352, 384, 416, 448, 480], random_size: True, random_interp: True, keep_ratio: False}
  13. - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  14. - Permute: {}
  15. - PadGT: {}
  16. batch_size: 64
  17. shuffle: true
  18. drop_last: true
  19. EvalReader:
  20. sample_transforms:
  21. - Decode: {}
  22. - Resize: {interp: 2, target_size: *eval_size, keep_ratio: False}
  23. - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  24. - Permute: {}
  25. batch_transforms:
  26. - PadBatch: {pad_to_stride: 32}
  27. batch_size: 8
  28. shuffle: false
  29. TestReader:
  30. inputs_def:
  31. image_shape: [1, 3, *eval_height, *eval_width]
  32. sample_transforms:
  33. - Decode: {}
  34. - Resize: {interp: 2, target_size: *eval_size, keep_ratio: False}
  35. - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
  36. - Permute: {}
  37. batch_size: 1