Ver Fonte

Merge pull request #2570 from myhloli/dev

fix(batch): disable OCR detection batch processing by default
Xiaomeng Zhao há 5 meses atrás
pai
commit
a0f622347b
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      magic_pdf/model/batch_analyze.py

+ 1 - 1
magic_pdf/model/batch_analyze.py

@@ -18,7 +18,7 @@ MFR_BASE_BATCH_SIZE = 16
 
 
 class BatchAnalyze:
-    def __init__(self, model_manager, batch_ratio: int, show_log, layout_model, formula_enable, table_enable, enable_ocr_det_batch=True):
+    def __init__(self, model_manager, batch_ratio: int, show_log, layout_model, formula_enable, table_enable, enable_ocr_det_batch=False):
         self.model_manager = model_manager
         self.batch_ratio = batch_ratio
         self.show_log = show_log