Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

refactor: simplify UnimernetModel constructor by removing unused cfg_path parameter

myhloli9ded9e6bad4b
diff --git a/mineru/model/mfr/unimernet/Unimernet.py b/mineru/model/mfr/unimernet/Unimernet.py
index d3589ac2..845a7bfc 100644
--- a/mineru/model/mfr/unimernet/Unimernet.py
+++ b/mineru/model/mfr/unimernet/Unimernet.py
@@ -19,7 +19,7 @@ class MathDataset(Dataset):
class UnimernetModel(object):
- def __init__(self, weight_dir, cfg_path, _device_="cpu"):
+ def __init__(self, weight_dir, _device_="cpu"):
from .unimernet_hf import UnimernetModel
if _device_.startswith("mps"):
self.model = UnimernetModel.from_pretrained(weight_dir, attn_implementation="eager")