Sfoglia il codice sorgente

feat: 更新文本检测模块的限制参数以支持更大图像尺寸

zhch158_admin 1 mese fa
parent
commit
d7c0e53134
1 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  1. 6 6
      zhch/my_config/PP-StructureV3.yaml

+ 6 - 6
zhch/my_config/PP-StructureV3.yaml

@@ -100,8 +100,8 @@ SubPipelines:
         module_name: text_detection
         model_name: PP-OCRv5_server_det
         model_dir: null
-        limit_side_len: 736
-        limit_type: min
+        limit_side_len: 2560
+        limit_type: max
         max_side_limit: 4000
         thresh: 0.3
         box_thresh: 0.6
@@ -165,8 +165,8 @@ SubPipelines:
             module_name: text_detection
             model_name: PP-OCRv5_server_det
             model_dir: null
-            limit_side_len: 736
-            limit_type: min
+            limit_side_len: 2560
+            limit_type: max
             max_side_limit: 4000
             thresh: 0.3
             box_thresh: 0.4
@@ -200,8 +200,8 @@ SubPipelines:
             module_name: seal_text_detection
             model_name: PP-OCRv4_server_seal_det
             model_dir: null
-            limit_side_len: 736
-            limit_type: min
+            limit_side_len: 2560
+            limit_type: max
             max_side_limit: 4000
             thresh: 0.2
             box_thresh: 0.6