소스 검색

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

zhch158_admin 1 개월 전
부모
커밋
d7c0e53134
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  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