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
51fec09d
Commit
51fec09d
authored
Jun 30, 2025
by
myhloli
Browse files
feat: replace print statements with logger for model download notifications
parent
c7c1e30e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mineru/cli/models_download.py
mineru/cli/models_download.py
+4
-4
No files found.
mineru/cli/models_download.py
View file @
51fec09d
...
...
@@ -55,7 +55,7 @@ def configure_model(model_dir, model_type):
}
download_and_modify_json
(
json_url
,
config_file
,
json_mods
)
print
(
f
'The configuration file has been successfully configured, the path is:
{
config_file
}
'
)
logger
.
info
(
f
'The configuration file has been successfully configured, the path is:
{
config_file
}
'
)
def
download_pipeline_models
():
...
...
@@ -70,16 +70,16 @@ def download_pipeline_models():
]
download_finish_path
=
""
for
model_path
in
model_paths
:
click
.
ech
o
(
f
"Downloading model:
{
model_path
}
"
)
logger
.
inf
o
(
f
"Downloading model:
{
model_path
}
"
)
download_finish_path
=
auto_download_and_get_model_root_path
(
model_path
,
repo_mode
=
'pipeline'
)
click
.
ech
o
(
f
"Pipeline models downloaded successfully to:
{
download_finish_path
}
"
)
logger
.
inf
o
(
f
"Pipeline models downloaded successfully to:
{
download_finish_path
}
"
)
configure_model
(
download_finish_path
,
"pipeline"
)
def
download_vlm_models
():
"""下载VLM模型"""
download_finish_path
=
auto_download_and_get_model_root_path
(
"/"
,
repo_mode
=
'vlm'
)
click
.
ech
o
(
f
"VLM models downloaded successfully to:
{
download_finish_path
}
"
)
logger
.
inf
o
(
f
"VLM models downloaded successfully to:
{
download_finish_path
}
"
)
configure_model
(
download_finish_path
,
"vlm"
)
...
...
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