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
Add 'modelscope' repository references for ONNX and Torch models in registry.py
myhlolie8df25c94d4b
diff --git a/mineru/model/registry.py b/mineru/model/registry.pyindex 6fe8af88..e368fdcc 100644--- a/mineru/model/registry.py+++ b/mineru/model/registry.py@@ -17,6 +17,7 @@ MINERU_4_MODELS_TORCH = ModelRepo(download_mode="required_paths",repos={"huggingface": "opendatalab/MinerU-4_models_torch",+ "modelscope": "OpenDataLab/MinerU-4_models_torch",},paths={"pp_doclayout_v2": "Layout/PP-DocLayoutV2",@@ -41,7 +42,10 @@ MINERU_2_5_PRO_2605_1_2B = ModelRepo(MINERU_4_MODELS_ONNX = ModelRepo(name="MinerU-4_models_onnx",download_mode="required_paths",- repos={"huggingface": "opendatalab/MinerU-4_models_onnx"},+ repos={+ "huggingface": "opendatalab/MinerU-4_models_onnx",+ "modelscope": "OpenDataLab/MinerU-4_models_onnx",+ },paths={"pp_doclayout_v2": "Layout/PP-DocLayoutV2/inference.onnx","pp_doclayout_v2_config": "Layout/PP-DocLayoutV2/inference.yml",