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
013ddc02
Commit
013ddc02
authored
Jun 16, 2025
by
myhloli
Browse files
fix: refine model path condition for transformers and sglang-engine backends in vlm_analyze.py
parent
b7d7a1bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mineru/backend/vlm/vlm_analyze.py
mineru/backend/vlm/vlm_analyze.py
+1
-1
No files found.
mineru/backend/vlm/vlm_analyze.py
View file @
013ddc02
...
...
@@ -29,7 +29,7 @@ class ModelSingleton:
)
->
BasePredictor
:
key
=
(
backend
,)
if
key
not
in
self
.
_models
:
if
not
model_path
:
if
backend
in
[
'transformers'
,
'sglang-engine'
]
and
not
model_path
:
model_path
=
auto_download_and_get_model_root_path
(
"/"
,
"vlm"
)
self
.
_models
[
key
]
=
get_predictor
(
backend
=
backend
,
...
...
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