Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
Reduce recognition batch size from 8 to 6 for improved OCR performance
myhlolib7e4ea0b4993
diff --git a/mineru/model/ocr/paddleocr2pytorch/pytorch_paddle.py b/mineru/model/ocr/paddleocr2pytorch/pytorch_paddle.pyindex 1769ad1f..862584ed 100644--- a/mineru/model/ocr/paddleocr2pytorch/pytorch_paddle.py+++ b/mineru/model/ocr/paddleocr2pytorch/pytorch_paddle.py@@ -89,7 +89,7 @@ class PytorchPaddleOCR(TextSystem):kwargs['det_model_path'] = det_model_pathkwargs['rec_model_path'] = rec_model_pathkwargs['rec_char_dict_path'] = os.path.join(root_dir, 'pytorchocr', 'utils', 'resources', 'dict', dict_file)- kwargs['rec_batch_num'] = 8+ kwargs['rec_batch_num'] = 6kwargs['device'] = device