Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
9ded9e6b
Commit
9ded9e6b
authored
Jun 03, 2025
by
myhloli
Browse files
refactor: simplify UnimernetModel constructor by removing unused cfg_path parameter
parent
51393aa8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mineru/model/mfr/unimernet/Unimernet.py
mineru/model/mfr/unimernet/Unimernet.py
+1
-1
No files found.
mineru/model/mfr/unimernet/Unimernet.py
View file @
9ded9e6b
...
...
@@ -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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment