config.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. {
  2. "Global": {
  3. "model_name": "PP-LCNet_x1_0_doc_ori"
  4. },
  5. "Hpi": {
  6. "backend_configs": {
  7. "paddle_infer": {
  8. "trt_dynamic_shapes": {
  9. "x": [
  10. [
  11. 1,
  12. 3,
  13. 224,
  14. 224
  15. ],
  16. [
  17. 1,
  18. 3,
  19. 224,
  20. 224
  21. ],
  22. [
  23. 8,
  24. 3,
  25. 224,
  26. 224
  27. ]
  28. ]
  29. }
  30. },
  31. "tensorrt": {
  32. "dynamic_shapes": {
  33. "x": [
  34. [
  35. 1,
  36. 3,
  37. 224,
  38. 224
  39. ],
  40. [
  41. 1,
  42. 3,
  43. 224,
  44. 224
  45. ],
  46. [
  47. 8,
  48. 3,
  49. 224,
  50. 224
  51. ]
  52. ]
  53. }
  54. }
  55. }
  56. },
  57. "PreProcess": {
  58. "transform_ops": [
  59. {
  60. "ResizeImage": {
  61. "resize_short": 256
  62. }
  63. },
  64. {
  65. "CropImage": {
  66. "size": 224
  67. }
  68. },
  69. {
  70. "NormalizeImage": {
  71. "channel_num": 3,
  72. "mean": [
  73. 0.485,
  74. 0.456,
  75. 0.406
  76. ],
  77. "order": "",
  78. "scale": 0.00392156862745098,
  79. "std": [
  80. 0.229,
  81. 0.224,
  82. 0.225
  83. ]
  84. }
  85. },
  86. {
  87. "ToCHWImage": null
  88. }
  89. ]
  90. },
  91. "PostProcess": {
  92. "Topk": {
  93. "topk": 1,
  94. "label_list": [
  95. "0",
  96. "90",
  97. "180",
  98. "270"
  99. ]
  100. }
  101. }
  102. }