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
refactor: replace omegaconf with yaml for configuration loading
myhlolie9e89efff412
diff --git a/mineru/model/utils/tools/infer/pytorchocr_utility.py b/mineru/model/utils/tools/infer/pytorchocr_utility.pyindex a6b1d354..968ce6ca 100644--- a/mineru/model/utils/tools/infer/pytorchocr_utility.py+++ b/mineru/model/utils/tools/infer/pytorchocr_utility.py@@ -219,8 +219,9 @@ def base64_to_cv2(b64str):def get_arch_config(model_path):- from omegaconf import OmegaConf- all_arch_config = OmegaConf.load(DEFAULT_CFG_PATH)+ import yaml+ with open(DEFAULT_CFG_PATH, encoding='utf-8') as f:+ all_arch_config = yaml.safe_load(f)path = Path(model_path)file_name = path.stemif file_name not in all_arch_config:diff --git a/pyproject.toml b/pyproject.tomlindex b0e81f45..9c24dbd3 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -91,12 +91,10 @@ s3 = ["boto3>=1.28.43",]pipeline = [- "dill>=0.3.8,<1","PyYAML>=6.0.1,<7","ftfy>=6.3.1,<7","shapely>=2.0.7,<3","pyclipper>=1.3.0,<2",- "omegaconf>=2.3.0,<3","torch>=2.6.0,<3","torchvision","transformers>=4.57.3,<5.0.0",