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
fix: remove memory cleaning condition for post-processing in middle JSON conversion
myhlolifca67ac4a91c
diff --git a/mineru/backend/pipeline/model_json_to_middle_json.py b/mineru/backend/pipeline/model_json_to_middle_json.pyindex d51c5875..cff112b1 100644--- a/mineru/backend/pipeline/model_json_to_middle_json.py+++ b/mineru/backend/pipeline/model_json_to_middle_json.py@@ -285,8 +285,6 @@ def finalize_middle_json("""Apply document-level post processing once all page_info entries are ready."""apply_server_side_postprocess(pdf_info_list, lang=lang)finalize_middle_json_from_preproc(pdf_info_list)- if os.getenv('MINERU_DONOT_CLEAN_MEM') is None and len(pdf_info_list) >= 10:- clean_memory(get_device())def init_middle_json():