Parcourir la source

Merge pull request #2570 from myhloli/dev

fix(batch): disable OCR detection batch processing by default
Xiaomeng Zhao il y a 5 mois
Parent
commit
a0f622347b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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