Browse Source

refactor(config): 禁用所有配置文件中的调试模式以提高性能

zhch158_admin 2 weeks ago
parent
commit
9a25df70fd

+ 1 - 2
ocr_tools/universal_doc_parser/config/bank_statement_glm_vl.yaml

@@ -78,7 +78,6 @@ vl_recognition:
   
   # 场景特定配置
   table_recognition:
-    return_cells_coordinate: false  # GLM-OCR 不直接返回单元格坐标
     bank_statement_mode: true
 
 # ============================================================
@@ -110,4 +109,4 @@ output:
   draw_bbox_number: true
   save_enhanced_json: true
   normalize_numbers: true
-  debug_mode: true
+  debug_mode: false

+ 1 - 2
ocr_tools/universal_doc_parser/config/bank_statement_mineru_vl.yaml

@@ -56,7 +56,6 @@ vl_recognition:
   
   # 场景特定配置
   table_recognition:
-    return_cells_coordinate: true
     bank_statement_mode: true
     
 ocr_recognition:
@@ -85,4 +84,4 @@ output:
   draw_bbox_number: true
   save_enhanced_json: true
   normalize_numbers: true
-  debug_mode: true
+  debug_mode: false

+ 1 - 2
ocr_tools/universal_doc_parser/config/bank_statement_paddle_vl.yaml

@@ -62,7 +62,6 @@ vl_recognition:
   
   # 场景特定配置
   table_recognition:
-    return_cells_coordinate: true
     bank_statement_mode: true
     
 ocr_recognition:
@@ -91,4 +90,4 @@ output:
   draw_bbox_number: true
   save_enhanced_json: true
   normalize_numbers: true
-  debug_mode: true
+  debug_mode: false

+ 1 - 2
ocr_tools/universal_doc_parser/config/bank_statement_smart_router.yaml

@@ -133,7 +133,6 @@ vl_recognition:
   
   # 表格识别特定配置
   table_recognition:
-    return_cells_coordinate: true  # 返回单元格坐标
 
 output:
   create_subdir: false
@@ -149,4 +148,4 @@ output:
   draw_bbox_number: true
   save_enhanced_json: true
   normalize_numbers: true
-  debug_mode: true
+  debug_mode: false

+ 2 - 3
ocr_tools/universal_doc_parser/config/bank_statement_yusys_v2.yaml

@@ -67,7 +67,6 @@ vl_recognition:
   
   # 表格识别特定配置
   table_recognition:
-    return_cells_coordinate: true  # 返回单元格坐标
     bank_statement_mode: true      # 银行流水优化模式
 
 # ============================================================
@@ -93,8 +92,8 @@ output:
   save_html: true           # 保存表格 HTML 文件
   
   # Debug 输出(通过命令行 --debug 开启)
-  save_layout_image: false  # 保存 layout 可视化图片
-  save_ocr_image: false     # 保存 OCR 可视化图片
+  save_layout_image: true  # 保存 layout 可视化图片
+  save_ocr_image: true     # 保存 OCR 可视化图片
   draw_type_label: true     # 在可视化图片上标注类型
   draw_bbox_number: true    # 在可视化图片上标注序号
   

+ 4 - 5
ocr_tools/universal_doc_parser/config/bank_statement_yusys_v3.yaml

@@ -31,7 +31,7 @@ layout_detection:
   # Debug 可视化配置(与 MinerUWiredTableRecognizer.DebugOptions 对齐)
   # 默认关闭。开启后将保存:layout检测结果
   debug_options:
-    enabled: true               # 是否开启调试可视化输出
+    enabled: false              # 由命令行 --debug 统一控制,勿在此 hardcode true
     output_dir: null             # 调试输出目录;null不输出
     prefix: ""                  # 保存文件名前缀(如设置为页码)
 
@@ -55,7 +55,7 @@ table_classification:
   # Debug 可视化配置(与 MinerUWiredTableRecognizer.DebugOptions 对齐)
   # 默认关闭。开启后将保存:表格线
   debug_options:
-    enabled: true               # 是否开启调试可视化输出
+    enabled: false              # 由命令行 --debug 统一控制,勿在此 hardcode true
     output_dir: null             # 调试输出目录;null不输出
     save_table_lines: true       # 保存表格线可视化(unet横线/竖线叠加)
     image_format: "png"          # 可视化图片格式:png/jpg
@@ -98,7 +98,7 @@ table_recognition_wired:
   # Debug 可视化配置(与 MinerUWiredTableRecognizer.DebugOptions 对齐)
   # 默认关闭。开启后将保存:表格线、连通域、逻辑网格结构、文本覆盖可视化。
   debug_options:
-    enabled: true               # 是否开启调试可视化输出
+    enabled: false              # 由命令行 --debug 统一控制,勿在此 hardcode true
     output_dir: null             # 调试输出目录;null不输出
     save_table_lines: true       # 保存表格线可视化(unet横线/竖线叠加)
     save_connected_components: true  # 保存连通域提取的单元格图
@@ -133,7 +133,6 @@ vl_recognition:
   
   # 表格识别特定配置
   table_recognition:
-    return_cells_coordinate: true  # 返回单元格坐标
 
 output:
   create_subdir: false
@@ -149,4 +148,4 @@ output:
   draw_bbox_number: true
   save_enhanced_json: true
   normalize_numbers: true
-  debug_mode: true
+  debug_mode: false

+ 4 - 5
ocr_tools/universal_doc_parser/config/bank_statement_yusys_v4.yaml

@@ -61,7 +61,7 @@ layout_detection:
 
   # Debug 可视化配置
   debug_options:
-    enabled: true               # 是否开启调试可视化输出
+    enabled: false              # 由命令行 --debug 统一控制,勿在此 hardcode true
     output_dir: null             # 调试输出目录;null不输出
     prefix: ""                  # 保存文件名前缀(如设置为页码)
 
@@ -88,7 +88,7 @@ table_classification:
 
   # Debug 可视化配置
   debug_options:
-    enabled: true               # 是否开启调试可视化输出
+    enabled: false              # 由命令行 --debug 统一控制,勿在此 hardcode true
     output_dir: null             # 调试输出目录;null不输出
     save_table_lines: true       # 保存表格线可视化(unet横线/竖线叠加)
     image_format: "png"          # 可视化图片格式:png/jpg
@@ -132,7 +132,7 @@ table_recognition_wired:
 
   # Debug 可视化配置
   debug_options:
-    enabled: true               # 是否开启调试可视化输出
+    enabled: false              # 由命令行 --debug 统一控制,勿在此 hardcode true
     output_dir: null             # 调试输出目录;null不输出
     save_table_lines: true       # 保存表格线可视化(unet横线/竖线叠加)
     save_connected_components: true  # 保存连通域提取的单元格图
@@ -178,7 +178,6 @@ vl_recognition:
   
   # 场景特定配置
   table_recognition:
-    return_cells_coordinate: false  # GLM-OCR 不直接返回单元格坐标
 
 # ============================================================
 # 输出配置
@@ -197,4 +196,4 @@ output:
   draw_bbox_number: true
   save_enhanced_json: true
   normalize_numbers: true
-  debug_mode: true
+  debug_mode: false