Browse Source

fix&add hpi_config (#2115)

* fix&add hpi_config

* fix yaml and add register_model_info

* modify PP-OCRv4_mobile_seal_det PP-OCRv4_server_seal_det yaml

* rerun CI
zhang-prog 1 năm trước cách đây
mục cha
commit
7be8b1cc86
27 tập tin đã thay đổi với 465 bổ sung469 xóa
  1. 1 0
      paddlex/repo_apis/PaddleClas_api/cls/register.py
  2. 1 1
      paddlex/repo_apis/PaddleOCR_api/table_rec/register.py
  3. 13 0
      paddlex/utils/hpi_configs/PP-LCNet_x1_0_doc_ori.yaml
  4. 2 24
      paddlex/utils/hpi_configs/PP-OCRv4_mobile_seal_det.yaml
  5. 2 24
      paddlex/utils/hpi_configs/PP-OCRv4_server_seal_det.yaml
  6. 14 14
      paddlex/utils/hpi_configs/PP-YOLOE_plus-L.yaml
  7. 14 14
      paddlex/utils/hpi_configs/PP-YOLOE_plus-M.yaml
  8. 14 14
      paddlex/utils/hpi_configs/PP-YOLOE_plus-S.yaml
  9. 14 14
      paddlex/utils/hpi_configs/PP-YOLOE_plus-X.yaml
  10. 28 28
      paddlex/utils/hpi_configs/PicoDet-L.yaml
  11. 28 28
      paddlex/utils/hpi_configs/PicoDet-S.yaml
  12. 14 14
      paddlex/utils/hpi_configs/RT-DETR-H.yaml
  13. 14 14
      paddlex/utils/hpi_configs/RT-DETR-L.yaml
  14. 14 14
      paddlex/utils/hpi_configs/RT-DETR-R18.yaml
  15. 14 14
      paddlex/utils/hpi_configs/RT-DETR-R50.yaml
  16. 14 14
      paddlex/utils/hpi_configs/RT-DETR-X.yaml
  17. 13 0
      paddlex/utils/hpi_configs/SLANet_plus.yaml
  18. 13 0
      paddlex/utils/hpi_configs/UVDoc.yaml
  19. 28 28
      paddlex/utils/hpi_configs/YOLOX-L.yaml
  20. 28 28
      paddlex/utils/hpi_configs/YOLOX-M.yaml
  21. 28 28
      paddlex/utils/hpi_configs/YOLOX-N.yaml
  22. 28 28
      paddlex/utils/hpi_configs/YOLOX-S.yaml
  23. 28 28
      paddlex/utils/hpi_configs/YOLOX-T.yaml
  24. 28 28
      paddlex/utils/hpi_configs/YOLOX-X.yaml
  25. 28 28
      paddlex/utils/hpi_configs/YOLOv3-DarkNet53.yaml
  26. 28 28
      paddlex/utils/hpi_configs/YOLOv3-MobileNetV3.yaml
  27. 14 14
      paddlex/utils/hpi_configs/YOLOv3-ResNet50_vd_DCN.yaml

+ 1 - 0
paddlex/repo_apis/PaddleClas_api/cls/register.py

@@ -175,6 +175,7 @@ register_model_info(
         "suite": "Cls",
         "config_path": osp.join(PDX_CONFIG_DIR, "PP-LCNet_x1_0_doc_ori.yaml"),
         "supported_apis": ["train", "evaluate", "predict", "export"],
+        "hpi_config_path": HPI_CONFIG_DIR / "PP-LCNet_x1_0_doc_ori.yaml",
     }
 )
 

+ 1 - 1
paddlex/repo_apis/PaddleOCR_api/table_rec/register.py

@@ -51,6 +51,6 @@ register_model_info(
         "suite": "TableRec",
         "config_path": osp.join(PDX_CONFIG_DIR, "SLANet_plus.yaml"),
         "supported_apis": ["train", "evaluate", "predict", "export"],
-        "hpi_config_path": HPI_CONFIG_DIR / "SLANet.yaml",
+        "hpi_config_path": HPI_CONFIG_DIR / "SLANet_plus.yaml",
     }
 )

+ 13 - 0
paddlex/utils/hpi_configs/PP-LCNet_x1_0_doc_ori.yaml

@@ -0,0 +1,13 @@
+Hpi:
+  backend_config:
+    paddle_infer:
+      cpu_num_threads: 8
+      enable_log_info: false
+  selected_backends:
+    cpu: paddle_infer
+    gpu: paddle_infer
+  supported_backends:
+    cpu:
+    - paddle_infer
+    gpu:
+    - paddle_infer

+ 2 - 24
paddlex/utils/hpi_configs/PP-OCRv4_mobile_seal_det.yaml

@@ -1,35 +1,13 @@
 Hpi:
   backend_config:
-    onnx_runtime:
-      cpu_num_threads: 8
-    openvino:
-      cpu_num_threads: 8
     paddle_infer:
       cpu_num_threads: 8
       enable_log_info: false
-    paddle_tensorrt:
-      dynamic_shapes:
-        enable_log_info: false
-        x:
-        - []
-        - []
-        - []
-    tensorrt:
-      dynamic_shapes:
-        x:
-        - []
-        - []
-        - []
   selected_backends:
-    cpu: onnx_runtime
-    gpu: paddle_tensorrt
+    cpu: paddle_infer
+    gpu: paddle_infer
   supported_backends:
     cpu:
     - paddle_infer
-    - openvino
-    - onnx_runtime
     gpu:
     - paddle_infer
-    - paddle_tensorrt
-    - onnx_runtime
-    - tensorrt

+ 2 - 24
paddlex/utils/hpi_configs/PP-OCRv4_server_seal_det.yaml

@@ -1,35 +1,13 @@
 Hpi:
   backend_config:
-    onnx_runtime:
-      cpu_num_threads: 8
-    openvino:
-      cpu_num_threads: 8
     paddle_infer:
       cpu_num_threads: 8
       enable_log_info: false
-    paddle_tensorrt:
-      dynamic_shapes:
-        enable_log_info: false
-        x:
-        - []
-        - []
-        - []
-    tensorrt:
-      dynamic_shapes:
-        x:
-        - []
-        - []
-        - []
   selected_backends:
-    cpu: onnx_runtime
-    gpu: paddle_tensorrt
+    cpu: paddle_infer
+    gpu: paddle_infer
   supported_backends:
     cpu:
     - paddle_infer
-    - openvino
-    - onnx_runtime
     gpu:
     - paddle_infer
-    - paddle_tensorrt
-    - onnx_runtime
-    - tensorrt

+ 14 - 14
paddlex/utils/hpi_configs/PP-YOLOE_plus-L.yaml

@@ -7,26 +7,26 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: openvino
     gpu: paddle_tensorrt

+ 14 - 14
paddlex/utils/hpi_configs/PP-YOLOE_plus-M.yaml

@@ -7,26 +7,26 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: openvino
     gpu: paddle_tensorrt

+ 14 - 14
paddlex/utils/hpi_configs/PP-YOLOE_plus-S.yaml

@@ -7,26 +7,26 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: openvino
     gpu: paddle_tensorrt

+ 14 - 14
paddlex/utils/hpi_configs/PP-YOLOE_plus-X.yaml

@@ -7,26 +7,26 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: openvino
     gpu: paddle_tensorrt

+ 28 - 28
paddlex/utils/hpi_configs/PicoDet-L.yaml

@@ -9,47 +9,47 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
     tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: onnx_runtime
     gpu: tensorrt

+ 28 - 28
paddlex/utils/hpi_configs/PicoDet-S.yaml

@@ -9,47 +9,47 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
     tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: onnx_runtime
     gpu: tensorrt

+ 14 - 14
paddlex/utils/hpi_configs/RT-DETR-H.yaml

@@ -5,26 +5,26 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: paddle_infer
     gpu: paddle_tensorrt

+ 14 - 14
paddlex/utils/hpi_configs/RT-DETR-L.yaml

@@ -5,26 +5,26 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: paddle_infer
     gpu: paddle_tensorrt

+ 14 - 14
paddlex/utils/hpi_configs/RT-DETR-R18.yaml

@@ -5,26 +5,26 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: paddle_infer
     gpu: paddle_tensorrt

+ 14 - 14
paddlex/utils/hpi_configs/RT-DETR-R50.yaml

@@ -5,26 +5,26 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: paddle_infer
     gpu: paddle_tensorrt

+ 14 - 14
paddlex/utils/hpi_configs/RT-DETR-X.yaml

@@ -5,26 +5,26 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: paddle_infer
     gpu: paddle_tensorrt

+ 13 - 0
paddlex/utils/hpi_configs/SLANet_plus.yaml

@@ -0,0 +1,13 @@
+Hpi:
+  backend_config:
+    paddle_infer:
+      cpu_num_threads: 8
+      enable_log_info: false
+  selected_backends:
+    cpu: paddle_infer
+    gpu: paddle_infer
+  supported_backends:
+    cpu:
+    - paddle_infer
+    gpu:
+    - paddle_infer

+ 13 - 0
paddlex/utils/hpi_configs/UVDoc.yaml

@@ -0,0 +1,13 @@
+Hpi:
+  backend_config:
+    paddle_infer:
+      cpu_num_threads: 8
+      enable_log_info: false
+  selected_backends:
+    cpu: paddle_infer
+    gpu: paddle_infer
+  supported_backends:
+    cpu:
+    - paddle_infer
+    gpu:
+    - paddle_infer

+ 28 - 28
paddlex/utils/hpi_configs/YOLOX-L.yaml

@@ -7,47 +7,47 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
     tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: onnx_runtime
     gpu: tensorrt

+ 28 - 28
paddlex/utils/hpi_configs/YOLOX-M.yaml

@@ -7,47 +7,47 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
     tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: onnx_runtime
     gpu: tensorrt

+ 28 - 28
paddlex/utils/hpi_configs/YOLOX-N.yaml

@@ -7,47 +7,47 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
     tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: onnx_runtime
     gpu: tensorrt

+ 28 - 28
paddlex/utils/hpi_configs/YOLOX-S.yaml

@@ -7,47 +7,47 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
     tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: onnx_runtime
     gpu: tensorrt

+ 28 - 28
paddlex/utils/hpi_configs/YOLOX-T.yaml

@@ -7,47 +7,47 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
     tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: onnx_runtime
     gpu: tensorrt

+ 28 - 28
paddlex/utils/hpi_configs/YOLOX-X.yaml

@@ -7,47 +7,47 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
     tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: onnx_runtime
     gpu: tensorrt

+ 28 - 28
paddlex/utils/hpi_configs/YOLOv3-DarkNet53.yaml

@@ -9,47 +9,47 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
     tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: onnx_runtime
     gpu: tensorrt

+ 28 - 28
paddlex/utils/hpi_configs/YOLOv3-MobileNetV3.yaml

@@ -9,47 +9,47 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
     tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: onnx_runtime
     gpu: paddle_tensorrt

+ 14 - 14
paddlex/utils/hpi_configs/YOLOv3-ResNet50_vd_DCN.yaml

@@ -7,26 +7,26 @@ Hpi:
       enable_log_info: false
     paddle_tensorrt:
       dynamic_shapes:
+        im_shape:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
         image:
         - []
         - []
         - []
+        scale_factor:
+        - - 1
+          - 2
+        - - 1
+          - 2
+        - - 1
+          - 2
       enable_log_info: false
-      im_shape:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
       max_batch_size: null
-      scale_factor:
-      - - 1
-        - 2
-      - - 1
-        - 2
-      - - 1
-        - 2
   selected_backends:
     cpu: openvino
     gpu: paddle_tensorrt