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: rename files and update import paths for consistency
myhloli499e877165c4
diff --git a/mineru/model/mfr/pp_formulanet_plus_m/predict_formula.py b/mineru/model/mfr/pp_formulanet_plus_m/predict_formula.pyindex 1ba6c280..bee9dd49 100644--- a/mineru/model/mfr/pp_formulanet_plus_m/predict_formula.py+++ b/mineru/model/mfr/pp_formulanet_plus_m/predict_formula.py@@ -3,8 +3,8 @@ import torchimport yamlfrom pathlib import Pathfrom tqdm import tqdm-from mineru.model.ocr.paddleocr2pytorch.tools.infer import pytorchocr_utility-from mineru.model.ocr.paddleocr2pytorch.pytorchocr.base_ocr_v20 import BaseOCRV20+from mineru.model.utils.tools.infer import pytorchocr_utility+from mineru.model.utils.pytorchocr.base_ocr_v20 import BaseOCRV20from .processors import (UniMERNetImgDecode,UniMERNetTestTransform,@@ -24,7 +24,14 @@ class FormulaRecognizer(BaseOCRV20):weight_dir,"PP-FormulaNet_plus-M.pth",)- self.yaml_path = Path(__file__).parent / "config" / "arch_config.yaml"+ self.yaml_path = os.path.join(+ Path(__file__).parent.parent.parent,+ "utils",+ "pytorchocr",+ "utils",+ "resources",+ "pp_formulanet_arch_config.yaml"+ )self.infer_yaml_path = os.path.join(weight_dir,"PP-FormulaNet_plus-M_inference.yml",@@ -38,6 +45,7 @@ class FormulaRecognizer(BaseOCRV20):super(FormulaRecognizer, self).__init__(network_config)self.load_state_dict(weights)+ # device = "cpu"self.device = torch.device(device) if isinstance(device, str) else deviceself.net.to(self.device)self.net.eval()diff --git a/mineru/model/ocr/paddleocr2pytorch/pytorch_paddle.py b/mineru/model/ocr/paddleocr2pytorch/pytorch_paddle.pyindex 862584ed..4e5447fa 100644--- a/mineru/model/ocr/paddleocr2pytorch/pytorch_paddle.py+++ b/mineru/model/ocr/paddleocr2pytorch/pytorch_paddle.py@@ -13,8 +13,8 @@ from mineru.utils.config_reader import get_devicefrom mineru.utils.enum_class import ModelPathfrom mineru.utils.models_download_utils import auto_download_and_get_model_root_pathfrom mineru.utils.ocr_utils import check_img, preprocess_image, sorted_boxes, merge_det_boxes, update_det_boxes, get_rotate_crop_image-from mineru.model.ocr.paddleocr2pytorch.tools.infer.predict_system import TextSystem-from mineru.model.ocr.paddleocr2pytorch.tools.infer import pytorchocr_utility as utility+from mineru.model.utils.tools.infer.predict_system import TextSystem+from mineru.model.utils.tools.infer import pytorchocr_utility as utilityimport argparse@@ -47,7 +47,7 @@ def get_model_params(lang, config):raise Exception (f'Language {lang} not supported')-root_dir = Path(__file__).resolve().parent+root_dir = os.path.join(Path(__file__).resolve().parent.parent.parent, 'utils')class PytorchPaddleOCR(TextSystem):diff --git a/mineru/model/ocr/paddleocr2pytorch/tools/infer/__init__.py b/mineru/model/utils/__init__.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/tools/infer/__init__.pyrename to mineru/model/utils/__init__.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/__init__.py b/mineru/model/utils/pytorchocr/__init__.pyold mode 100755new mode 100644similarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/__init__.pyrename to mineru/model/utils/pytorchocr/__init__.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/base_ocr_v20.py b/mineru/model/utils/pytorchocr/base_ocr_v20.pyold mode 100755new mode 100644similarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/base_ocr_v20.pyrename to mineru/model/utils/pytorchocr/base_ocr_v20.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/data/__init__.py b/mineru/model/utils/pytorchocr/data/__init__.pyold mode 100755new mode 100644similarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/data/__init__.pyrename to mineru/model/utils/pytorchocr/data/__init__.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/data/imaug/__init__.py b/mineru/model/utils/pytorchocr/data/imaug/__init__.pyold mode 100755new mode 100644similarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/data/imaug/__init__.pyrename to mineru/model/utils/pytorchocr/data/imaug/__init__.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/data/imaug/operators.py b/mineru/model/utils/pytorchocr/data/imaug/operators.pyold mode 100755new mode 100644similarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/data/imaug/operators.pyrename to mineru/model/utils/pytorchocr/data/imaug/operators.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/__init__.py b/mineru/model/utils/pytorchocr/modeling/__init__.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/__init__.pyrename to mineru/model/utils/pytorchocr/modeling/__init__.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/architectures/__init__.py b/mineru/model/utils/pytorchocr/modeling/architectures/__init__.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/architectures/__init__.pyrename to mineru/model/utils/pytorchocr/modeling/architectures/__init__.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/architectures/base_model.py b/mineru/model/utils/pytorchocr/modeling/architectures/base_model.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/architectures/base_model.pyrename to mineru/model/utils/pytorchocr/modeling/architectures/base_model.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/backbones/__init__.py b/mineru/model/utils/pytorchocr/modeling/backbones/__init__.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/backbones/__init__.pyrename to mineru/model/utils/pytorchocr/modeling/backbones/__init__.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/backbones/det_mobilenet_v3.py b/mineru/model/utils/pytorchocr/modeling/backbones/det_mobilenet_v3.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/backbones/det_mobilenet_v3.pyrename to mineru/model/utils/pytorchocr/modeling/backbones/det_mobilenet_v3.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/backbones/rec_donut_swin.py b/mineru/model/utils/pytorchocr/modeling/backbones/rec_donut_swin.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/backbones/rec_donut_swin.pyrename to mineru/model/utils/pytorchocr/modeling/backbones/rec_donut_swin.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/backbones/rec_hgnet.py b/mineru/model/utils/pytorchocr/modeling/backbones/rec_hgnet.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/backbones/rec_hgnet.pyrename to mineru/model/utils/pytorchocr/modeling/backbones/rec_hgnet.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/backbones/rec_lcnetv3.py b/mineru/model/utils/pytorchocr/modeling/backbones/rec_lcnetv3.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/backbones/rec_lcnetv3.pyrename to mineru/model/utils/pytorchocr/modeling/backbones/rec_lcnetv3.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/backbones/rec_mobilenet_v3.py b/mineru/model/utils/pytorchocr/modeling/backbones/rec_mobilenet_v3.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/backbones/rec_mobilenet_v3.pyrename to mineru/model/utils/pytorchocr/modeling/backbones/rec_mobilenet_v3.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/backbones/rec_mv1_enhance.py b/mineru/model/utils/pytorchocr/modeling/backbones/rec_mv1_enhance.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/backbones/rec_mv1_enhance.pyrename to mineru/model/utils/pytorchocr/modeling/backbones/rec_mv1_enhance.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/backbones/rec_pphgnetv2.py b/mineru/model/utils/pytorchocr/modeling/backbones/rec_pphgnetv2.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/backbones/rec_pphgnetv2.pyrename to mineru/model/utils/pytorchocr/modeling/backbones/rec_pphgnetv2.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/backbones/rec_svtrnet.py b/mineru/model/utils/pytorchocr/modeling/backbones/rec_svtrnet.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/backbones/rec_svtrnet.pyrename to mineru/model/utils/pytorchocr/modeling/backbones/rec_svtrnet.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/common.py b/mineru/model/utils/pytorchocr/modeling/common.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/common.pyrename to mineru/model/utils/pytorchocr/modeling/common.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/heads/__init__.py b/mineru/model/utils/pytorchocr/modeling/heads/__init__.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/heads/__init__.pyrename to mineru/model/utils/pytorchocr/modeling/heads/__init__.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/heads/cls_head.py b/mineru/model/utils/pytorchocr/modeling/heads/cls_head.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/heads/cls_head.pyrename to mineru/model/utils/pytorchocr/modeling/heads/cls_head.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/heads/det_db_head.py b/mineru/model/utils/pytorchocr/modeling/heads/det_db_head.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/heads/det_db_head.pyrename to mineru/model/utils/pytorchocr/modeling/heads/det_db_head.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/heads/rec_ctc_head.py b/mineru/model/utils/pytorchocr/modeling/heads/rec_ctc_head.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/heads/rec_ctc_head.pyrename to mineru/model/utils/pytorchocr/modeling/heads/rec_ctc_head.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/heads/rec_multi_head.py b/mineru/model/utils/pytorchocr/modeling/heads/rec_multi_head.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/heads/rec_multi_head.pyrename to mineru/model/utils/pytorchocr/modeling/heads/rec_multi_head.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/heads/rec_ppformulanet_head.py b/mineru/model/utils/pytorchocr/modeling/heads/rec_ppformulanet_head.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/heads/rec_ppformulanet_head.pyrename to mineru/model/utils/pytorchocr/modeling/heads/rec_ppformulanet_head.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/heads/rec_unimernet_head.py b/mineru/model/utils/pytorchocr/modeling/heads/rec_unimernet_head.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/heads/rec_unimernet_head.pyrename to mineru/model/utils/pytorchocr/modeling/heads/rec_unimernet_head.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/necks/__init__.py b/mineru/model/utils/pytorchocr/modeling/necks/__init__.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/necks/__init__.pyrename to mineru/model/utils/pytorchocr/modeling/necks/__init__.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/necks/db_fpn.py b/mineru/model/utils/pytorchocr/modeling/necks/db_fpn.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/necks/db_fpn.pyrename to mineru/model/utils/pytorchocr/modeling/necks/db_fpn.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/necks/intracl.py b/mineru/model/utils/pytorchocr/modeling/necks/intracl.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/necks/intracl.pyrename to mineru/model/utils/pytorchocr/modeling/necks/intracl.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/necks/rnn.py b/mineru/model/utils/pytorchocr/modeling/necks/rnn.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/modeling/necks/rnn.pyrename to mineru/model/utils/pytorchocr/modeling/necks/rnn.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/postprocess/__init__.py b/mineru/model/utils/pytorchocr/postprocess/__init__.pyold mode 100755new mode 100644similarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/postprocess/__init__.pyrename to mineru/model/utils/pytorchocr/postprocess/__init__.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/postprocess/cls_postprocess.py b/mineru/model/utils/pytorchocr/postprocess/cls_postprocess.pyold mode 100755new mode 100644similarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/postprocess/cls_postprocess.pyrename to mineru/model/utils/pytorchocr/postprocess/cls_postprocess.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/postprocess/db_postprocess.py b/mineru/model/utils/pytorchocr/postprocess/db_postprocess.pyold mode 100755new mode 100644similarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/postprocess/db_postprocess.pyrename to mineru/model/utils/pytorchocr/postprocess/db_postprocess.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/postprocess/rec_postprocess.py b/mineru/model/utils/pytorchocr/postprocess/rec_postprocess.pyold mode 100755new mode 100644similarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/postprocess/rec_postprocess.pyrename to mineru/model/utils/pytorchocr/postprocess/rec_postprocess.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/__init__.py b/mineru/model/utils/pytorchocr/utils/__init__.pyold mode 100755new mode 100644similarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/__init__.pyrename to mineru/model/utils/pytorchocr/utils/__init__.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/arch_config.yaml b/mineru/model/utils/pytorchocr/utils/resources/arch_config.yamlsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/arch_config.yamlrename to mineru/model/utils/pytorchocr/utils/resources/arch_config.yamldiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/arabic_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/arabic_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/arabic_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/arabic_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/chinese_cht_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/chinese_cht_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/chinese_cht_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/chinese_cht_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/cyrillic_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/cyrillic_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/cyrillic_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/cyrillic_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/devanagari_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/devanagari_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/devanagari_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/devanagari_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/en_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/en_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/en_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/en_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/japan_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/japan_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/japan_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/japan_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ka_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/ka_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ka_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/ka_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/korean_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/korean_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/korean_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/korean_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/latin_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/latin_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/latin_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/latin_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ppocr_keys_v1.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/ppocr_keys_v1.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ppocr_keys_v1.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/ppocr_keys_v1.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ppocrv4_doc_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/ppocrv4_doc_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ppocrv4_doc_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/ppocrv4_doc_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ppocrv5_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/ppocrv5_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ppocrv5_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/ppocrv5_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ppocrv5_el_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/ppocrv5_el_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ppocrv5_el_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/ppocrv5_el_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ppocrv5_en_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/ppocrv5_en_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ppocrv5_en_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/ppocrv5_en_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ppocrv5_eslav_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/ppocrv5_eslav_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ppocrv5_eslav_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/ppocrv5_eslav_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ppocrv5_korean_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/ppocrv5_korean_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ppocrv5_korean_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/ppocrv5_korean_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ppocrv5_latin_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/ppocrv5_latin_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ppocrv5_latin_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/ppocrv5_latin_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ppocrv5_th_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/ppocrv5_th_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ppocrv5_th_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/ppocrv5_th_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ta_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/ta_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/ta_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/ta_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/te_dict.txt b/mineru/model/utils/pytorchocr/utils/resources/dict/te_dict.txtsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/dict/te_dict.txtrename to mineru/model/utils/pytorchocr/utils/resources/dict/te_dict.txtdiff --git a/mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/models_config.yml b/mineru/model/utils/pytorchocr/utils/resources/models_config.ymlsimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/pytorchocr/utils/resources/models_config.ymlrename to mineru/model/utils/pytorchocr/utils/resources/models_config.ymldiff --git a/mineru/model/mfr/pp_formulanet_plus_m/config/arch_config.yaml b/mineru/model/utils/pytorchocr/utils/resources/pp_formulanet_arch_config.yamlsimilarity index 100%rename from mineru/model/mfr/pp_formulanet_plus_m/config/arch_config.yamlrename to mineru/model/utils/pytorchocr/utils/resources/pp_formulanet_arch_config.yamldiff --git a/mineru/model/ocr/paddleocr2pytorch/tools/__init__.py b/mineru/model/utils/tools/__init__.pysimilarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/tools/__init__.pyrename to mineru/model/utils/tools/__init__.pydiff --git a/mineru/model/utils/tools/infer/__init__.py b/mineru/model/utils/tools/infer/__init__.pynew file mode 100644index 00000000..1e17167c--- /dev/null+++ b/mineru/model/utils/tools/infer/__init__.py@@ -0,0 +1 @@+# Copyright (c) Opendatalab. All rights reserved.diff --git a/mineru/model/ocr/paddleocr2pytorch/tools/infer/predict_cls.py b/mineru/model/utils/tools/infer/predict_cls.pyold mode 100755new mode 100644similarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/tools/infer/predict_cls.pyrename to mineru/model/utils/tools/infer/predict_cls.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/tools/infer/predict_det.py b/mineru/model/utils/tools/infer/predict_det.pyold mode 100755new mode 100644similarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/tools/infer/predict_det.pyrename to mineru/model/utils/tools/infer/predict_det.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/tools/infer/predict_rec.py b/mineru/model/utils/tools/infer/predict_rec.pyold mode 100755new mode 100644similarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/tools/infer/predict_rec.pyrename to mineru/model/utils/tools/infer/predict_rec.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/tools/infer/predict_system.py b/mineru/model/utils/tools/infer/predict_system.pyold mode 100755new mode 100644similarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/tools/infer/predict_system.pyrename to mineru/model/utils/tools/infer/predict_system.pydiff --git a/mineru/model/ocr/paddleocr2pytorch/tools/infer/pytorchocr_utility.py b/mineru/model/utils/tools/infer/pytorchocr_utility.pyold mode 100755new mode 100644similarity index 100%rename from mineru/model/ocr/paddleocr2pytorch/tools/infer/pytorchocr_utility.pyrename to mineru/model/utils/tools/infer/pytorchocr_utility.py