ttfnet_reader.yml 979 B

123456789101112131415161718192021222324252627282930313233
  1. worker_num: 2
  2. TrainReader:
  3. sample_transforms:
  4. - Decode: {}
  5. - RandomFlip: {prob: 0.5}
  6. - Resize: {interp: 1, target_size: [512, 512], keep_ratio: False}
  7. - NormalizeImage: {mean: [123.675, 116.28, 103.53], std: [58.395, 57.12, 57.375], is_scale: false}
  8. - Permute: {}
  9. batch_transforms:
  10. - Gt2TTFTarget: {down_ratio: 4}
  11. - PadBatch: {pad_to_stride: 32}
  12. batch_size: 12
  13. shuffle: true
  14. drop_last: true
  15. use_shared_memory: true
  16. EvalReader:
  17. sample_transforms:
  18. - Decode: {}
  19. - Resize: {interp: 1, target_size: [512, 512], keep_ratio: False}
  20. - NormalizeImage: {is_scale: false, mean: [123.675, 116.28, 103.53], std: [58.395, 57.12, 57.375]}
  21. - Permute: {}
  22. batch_size: 1
  23. drop_last: false
  24. TestReader:
  25. sample_transforms:
  26. - Decode: {}
  27. - Resize: {interp: 1, target_size: [512, 512], keep_ratio: False}
  28. - NormalizeImage: {is_scale: false, mean: [123.675, 116.28, 103.53], std: [58.395, 57.12, 57.375]}
  29. - Permute: {}
  30. batch_size: 1
  31. drop_last: false