ssd_r34_reader.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. worker_num: 3
  2. TrainReader:
  3. inputs_def:
  4. num_max_boxes: 90
  5. sample_transforms:
  6. - Decode: {}
  7. - RandomCrop: {num_attempts: 1}
  8. - RandomFlip: {}
  9. - Resize: {target_size: [300, 300], keep_ratio: False, interp: 1}
  10. - RandomDistort: {brightness: [0.875, 1.125, 0.5], random_apply: False}
  11. - NormalizeBox: {}
  12. - PadBox: {num_max_boxes: 90}
  13. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: true}
  14. - Permute: {}
  15. batch_size: 64
  16. shuffle: true
  17. drop_last: true
  18. use_shared_memory: true
  19. EvalReader:
  20. sample_transforms:
  21. - Decode: {}
  22. - Resize: {target_size: [300, 300], keep_ratio: False, interp: 1}
  23. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: true}
  24. - Permute: {}
  25. batch_size: 1
  26. TestReader:
  27. inputs_def:
  28. image_shape: [3, 300, 300]
  29. sample_transforms:
  30. - Decode: {}
  31. - Resize: {target_size: [300, 300], keep_ratio: False, interp: 1}
  32. - NormalizeImage: {mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], is_scale: true}
  33. - Permute: {}
  34. batch_size: 1