Преглед изворни кода

[cherry-pick] change '736,min' -> '64,min' (#4102)

* refine PP-OCRv5_det docs

* refine docs and configs

* change '736,min' -> '64,min'
学卿 пре 5 месеци
родитељ
комит
b3d759bd0d

+ 1 - 1
docs/pipeline_usage/tutorials/ocr_pipelines/OCR.en.md

@@ -712,7 +712,7 @@ In the above Python script, the following steps are executed:
 <td>
 <ul>
 <li><b>int</b>: Any integer greater than <code>0</code></li>
-<li><b>None</b>: If set to <code>None</code>, the default value from the pipeline initialization will be used, which is <code>736</code></li>
+<li><b>None</b>: If set to <code>None</code>, the default value from the pipeline initialization will be used, which is <code>64</code></li>
 </ul>
 </td>
 <td><code>None</code></td>

+ 3 - 3
docs/pipeline_usage/tutorials/ocr_pipelines/OCR.md

@@ -720,7 +720,7 @@ for res in output:
 <td>
 <ul>
 <li><b>int</b>:大于 <code>0</code> 的任意整数;</li>
-<li><b>None</b>:如果设置为 <code>None</code>, 将默认使用产线初始化的该参数值,初始化为 <code>736</code>;</li>
+<li><b>None</b>:如果设置为 <code>None</code>, 将默认使用产线初始化的该参数值,初始化为 <code>64</code>;</li>
 </ul>
 </td>
 <td><code>None</code></td>
@@ -1261,7 +1261,7 @@ SubPipelines:
 SubModules:
   TextDetection:
     module_name: text_detection
-    model_name: PP-OCRv5_mobile_det
+    model_name: PP-OCRv5_server_det
     model_dir: null # 替换为微调后的文本检测模型权重路径
     ...
   TextLineOrientation:
@@ -1271,7 +1271,7 @@ SubModules:
     batch_size: 1
   TextRecognition:
     module_name: text_recognition
-    model_name: PP-OCRv5_mobile_rec
+    model_name: PP-OCRv5_server_rec
     model_dir: null  # 替换为微调后的文本识别模型权重路径
     batch_size: 1
 ```

+ 3 - 3
paddlex/configs/pipelines/OCR.yaml

@@ -24,9 +24,9 @@ SubPipelines:
 SubModules:
   TextDetection:
     module_name: text_detection
-    model_name: PP-OCRv5_mobile_det
+    model_name: PP-OCRv5_server_det
     model_dir: null
-    limit_side_len: 736
+    limit_side_len: 64
     limit_type: min
     max_side_limit: 4000
     thresh: 0.3
@@ -39,7 +39,7 @@ SubModules:
     batch_size: 6    
   TextRecognition:
     module_name: text_recognition
-    model_name: PP-OCRv5_mobile_rec 
+    model_name: PP-OCRv5_server_rec 
     model_dir: null
     batch_size: 6
     score_thresh: 0.0