inference.yml 903 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. Global:
  2. model_name: PP-OCRv5_server_det
  3. Hpi:
  4. backend_configs:
  5. paddle_infer:
  6. trt_dynamic_shapes: &id001
  7. x:
  8. - - 1
  9. - 3
  10. - 32
  11. - 32
  12. - - 1
  13. - 3
  14. - 736
  15. - 736
  16. - - 1
  17. - 3
  18. - 4000
  19. - 4000
  20. tensorrt:
  21. dynamic_shapes: *id001
  22. PreProcess:
  23. transform_ops:
  24. - DecodeImage:
  25. channel_first: false
  26. img_mode: BGR
  27. - DetLabelEncode: null
  28. - DetResizeForTest:
  29. resize_long: 960
  30. - NormalizeImage:
  31. mean:
  32. - 0.485
  33. - 0.456
  34. - 0.406
  35. order: hwc
  36. scale: 1./255.
  37. std:
  38. - 0.229
  39. - 0.224
  40. - 0.225
  41. - ToCHWImage: null
  42. - KeepKeys:
  43. keep_keys:
  44. - image
  45. - shape
  46. - polys
  47. - ignore_tags
  48. PostProcess:
  49. name: DBPostProcess
  50. thresh: 0.3
  51. box_thresh: 0.6
  52. max_candidates: 1000
  53. unclip_ratio: 1.5