centernet_reader.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. worker_num: 4
  2. TrainReader:
  3. inputs_def:
  4. image_shape: [3, 512, 512]
  5. sample_transforms:
  6. - Decode: {}
  7. - FlipWarpAffine: {keep_res: False, input_h: 512, input_w: 512, use_random: True}
  8. - CenterRandColor: {}
  9. - Lighting: {eigval: [0.2141788, 0.01817699, 0.00341571], eigvec: [[-0.58752847, -0.69563484, 0.41340352], [-0.5832747, 0.00994535, -0.81221408], [-0.56089297, 0.71832671, 0.41158938]]}
  10. - NormalizeImage: {mean: [0.40789655, 0.44719303, 0.47026116], std: [0.2886383 , 0.27408165, 0.27809834], is_scale: False}
  11. - Permute: {}
  12. - Gt2CenterNetTarget: {down_ratio: 4, max_objs: 128}
  13. batch_size: 16
  14. shuffle: True
  15. drop_last: True
  16. use_shared_memory: True
  17. EvalReader:
  18. sample_transforms:
  19. - Decode: {}
  20. - WarpAffine: {keep_res: True, input_h: 512, input_w: 512}
  21. - NormalizeImage: {mean: [0.40789655, 0.44719303, 0.47026116], std: [0.2886383 , 0.27408165, 0.27809834]}
  22. - Permute: {}
  23. batch_size: 1
  24. TestReader:
  25. inputs_def:
  26. image_shape: [3, 512, 512]
  27. sample_transforms:
  28. - Decode: {}
  29. - WarpAffine: {keep_res: True, input_h: 512, input_w: 512}
  30. - NormalizeImage: {mean: [0.40789655, 0.44719303, 0.47026116], std: [0.2886383 , 0.27408165, 0.27809834], is_scale: True}
  31. - Permute: {}
  32. batch_size: 1