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: update Mineru2ImageProcessor constructor to accept additional arguments to adaptation sglang 0.4.9.post5
myhloli6411cdfd7cc6
diff --git a/mineru/model/vlm_sglang_model/image_processor.py b/mineru/model/vlm_sglang_model/image_processor.pyindex 70297d2b..beebadbb 100644--- a/mineru/model/vlm_sglang_model/image_processor.py+++ b/mineru/model/vlm_sglang_model/image_processor.py@@ -56,8 +56,8 @@ def process_anyres_image(image, processor, grid_pinpoints):class Mineru2ImageProcessor(BaseProcessor):- def __init__(self, hf_config, server_args, _processor):- super().__init__(hf_config, server_args, _processor)+ def __init__(self, hf_config, server_args, _processor, *args, **kwargs):+ super().__init__(hf_config, server_args, _processor, *args, **kwargs)@staticmethoddef _process_single_image_task(