Jelajahi Sumber

fix textline models

bukejiyu 5 bulan lalu
induk
melakukan
ed08aa8356

+ 2 - 2
docs/module_usage/tutorials/ocr_modules/textline_orientation_classification.en.md

@@ -26,7 +26,7 @@ The text line orientation classification module primarily distinguishes the orie
 <td>98.85</td>
 <td>-</td>
 <td>-</td>
-<td>0.32</td>
+<td>0.96</td>
 <td>Text line classification model based on PP-LCNet_x0_25, with two classes: 0 degrees and 180 degrees</td>
 </tr>
 <tr>
@@ -40,7 +40,7 @@ The text line orientation classification module primarily distinguishes the orie
 </tbody>
 </table>
 
-> ❗ **Note**: The text line orientation classification model has been recently upgraded, and `PP-LCNet_x1_0_textline_ori` has been added. If you need to use the pre-upgrade model weights, please click the <a href="https://paddle-model-ecology.bj.bcebos.com/paddlex/official_inference_model/paddle3.0.0/PP-LCNet_x0_25_textline_ori_infer.bak.tar">download link</a>.
+> ❗ **Note**: The text line orientation classification model was upgraded on May 26, 2025, and `PP-LCNet_x1_0_textline_ori` has been added. If you need to use the pre-upgrade model weights, please click the <a href="https://paddle-model-ecology.bj.bcebos.com/paddlex/official_inference_model/paddle3.0.0/PP-LCNet_x0_25_textline_ori_infer.bak.tar">download link</a>.
 
 <strong>Test Environment Description:</strong>
 

+ 2 - 2
docs/module_usage/tutorials/ocr_modules/textline_orientation_classification.md

@@ -28,7 +28,7 @@ comments: true
 <td>98.85</td>
 <td>-</td>
 <td>-</td>
-<td>0.32</td>
+<td>0.96</td>
 <td>基于PP-LCNet_x0_25的文本行分类模型,含有两个类别,即0度,180度</td>
 </tr>
 <tr>
@@ -42,7 +42,7 @@ comments: true
 </tbody>
 </table>
 
-> ❗ <b>注</b>:文本行方向分类模型近期升级,并增加 `PP-LCNet_x1_0_textline_ori`,如需使用升级前的模型权重,请点击<a href="https://paddle-model-ecology.bj.bcebos.com/paddlex/official_inference_model/paddle3.0.0/PP-LCNet_x0_25_textline_ori_infer.bak.tar">下载链接</a>
+> ❗ <b>注</b>:文本行方向分类模型于 2025.5.26 升级,并增加 `PP-LCNet_x1_0_textline_ori`,如需使用升级前的模型权重,请点击<a href="https://paddle-model-ecology.bj.bcebos.com/paddlex/official_inference_model/paddle3.0.0/PP-LCNet_x0_25_textline_ori_infer.bak.tar">下载链接</a>
 
 <strong>测试环境说明:</strong>
 

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

@@ -34,7 +34,7 @@ SubModules:
     unclip_ratio: 1.5
   TextLineOrientation:
     module_name: textline_orientation
-    model_name: PP-LCNet_x0_25_textline_ori 
+    model_name: PP-LCNet_x1_0_textline_ori 
     model_dir: null
     batch_size: 6    
   TextRecognition:

+ 1 - 1
paddlex/configs/pipelines/PP-ChatOCRv4-doc.yaml

@@ -191,7 +191,7 @@ SubPipelines:
             unclip_ratio: 1.5
           TextLineOrientation:
             module_name: textline_orientation
-            model_name: PP-LCNet_x0_25_textline_ori 
+            model_name: PP-LCNet_x1_0_textline_ori 
             model_dir: null
             batch_size: 6   
           TextRecognition:

+ 2 - 2
paddlex/configs/pipelines/PP-StructureV3.yaml

@@ -108,7 +108,7 @@ SubPipelines:
         unclip_ratio: 1.5
       TextLineOrientation:
         module_name: textline_orientation
-        model_name: PP-LCNet_x0_25_textline_ori
+        model_name: PP-LCNet_x1_0_textline_ori
         model_dir: null
         batch_size: 8
       TextRecognition:
@@ -173,7 +173,7 @@ SubPipelines:
             unclip_ratio: 1.5
           TextLineOrientation:
             module_name: textline_orientation
-            model_name: PP-LCNet_x0_25_textline_ori
+            model_name: PP-LCNet_x1_0_textline_ori
             model_dir: null
             batch_size: 8
           TextRecognition:

+ 1 - 0
paddlex/inference/utils/official_models.py

@@ -37,6 +37,7 @@ OFFICIAL_MODELS = {
     "PP-LCNet_x0_75": "https://paddle-model-ecology.bj.bcebos.com/paddlex/official_inference_model/paddle3.0.0/PP-LCNet_x0_75_infer.tar",
     "PP-LCNet_x1_0": "https://paddle-model-ecology.bj.bcebos.com/paddlex/official_inference_model/paddle3.0.0/PP-LCNet_x1_0_infer.tar",
     "PP-LCNet_x1_0_doc_ori": "https://paddle-model-ecology.bj.bcebos.com/paddlex/official_inference_model/paddle3.0.0/PP-LCNet_x1_0_doc_ori_infer.tar",
+    "PP-LCNet_x1_0_textline_ori": "https://paddle-model-ecology.bj.bcebos.com/paddlex/official_inference_model/paddle3.0.0/PP-LCNet_x1_0_textline_ori_infer.tar",
     "PP-LCNet_x1_5": "https://paddle-model-ecology.bj.bcebos.com/paddlex/official_inference_model/paddle3.0.0/PP-LCNet_x1_5_infer.tar",
     "PP-LCNet_x2_5": "https://paddle-model-ecology.bj.bcebos.com/paddlex/official_inference_model/paddle3.0.0/PP-LCNet_x2_5_infer.tar",
     "PP-LCNet_x2_0": "https://paddle-model-ecology.bj.bcebos.com/paddlex/official_inference_model/paddle3.0.0/PP-LCNet_x2_0_infer.tar",