diff --git a/magic_pdf/resources/model_config/model_configs.yaml b/magic_pdf/resources/model_config/model_configs.yaml index aa9c8524..b75883b5 100644 --- a/magic_pdf/resources/model_config/model_configs.yaml +++ b/magic_pdf/resources/model_config/model_configs.yaml @@ -2,7 +2,7 @@ weights: layoutlmv3: Layout/LayoutLMv3/model_final.pth doclayout_yolo: Layout/YOLO/doclayout_yolo_docstructbench_imgsz1280_2501.pt yolo_v8_mfd: MFD/YOLO/yolo_v8_ft.pt - unimernet_small: MFR/unimernet_small + unimernet_small: MFR/unimernet_small_2501 struct_eqtable: TabRec/StructEqTable tablemaster: TabRec/TableMaster rapid_table: TabRec/RapidTable \ No newline at end of file diff --git a/projects/gradio_app/examples/complex_layout.pdf b/projects/gradio_app/examples/complex_layout.pdf index f9d09673..02f294d7 100644 Binary files a/projects/gradio_app/examples/complex_layout.pdf and b/projects/gradio_app/examples/complex_layout.pdf differ diff --git a/scripts/download_models.py b/scripts/download_models.py index 6c5ed24e..e1eb7b93 100644 --- a/scripts/download_models.py +++ b/scripts/download_models.py @@ -35,7 +35,7 @@ def download_and_modify_json(url, local_filename, modifications): "models/Layout/LayoutLMv3/*", "models/Layout/YOLO/*", "models/MFD/YOLO/*", - "models/MFR/unimernet_small/*", + "models/MFR/unimernet_small_2501/*", "models/TabRec/TableMaster/*", "models/TabRec/StructEqTable/*", ] diff --git a/scripts/download_models_hf.py b/scripts/download_models_hf.py index a51d97b5..9a87af23 100644 --- a/scripts/download_models_hf.py +++ b/scripts/download_models_hf.py @@ -36,7 +36,7 @@ def download_and_modify_json(url, local_filename, modifications): "models/Layout/LayoutLMv3/*", "models/Layout/YOLO/*", "models/MFD/YOLO/*", - "models/MFR/unimernet_small/*", + "models/MFR/unimernet_small_2501/*", "models/TabRec/TableMaster/*", "models/TabRec/StructEqTable/*", ]