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
399023f5
"tests/vscode:/vscode.git/clone" did not exist on "8a227bfa03b911fff681c8559011a2ac252bd24e"
Commit
399023f5
authored
Jun 24, 2025
by
myhloli
Browse files
fix: update default value of MINERU_MIN_BATCH_INFERENCE_SIZE to 128 in pipeline_analyze.py
parent
b420094b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mineru/backend/pipeline/pipeline_analyze.py
mineru/backend/pipeline/pipeline_analyze.py
+2
-2
No files found.
mineru/backend/pipeline/pipeline_analyze.py
View file @
399023f5
...
@@ -75,9 +75,9 @@ def doc_analyze(
...
@@ -75,9 +75,9 @@ def doc_analyze(
):
):
"""
"""
适当调大MIN_BATCH_INFERENCE_SIZE可以提高性能,可能会增加显存使用量,
适当调大MIN_BATCH_INFERENCE_SIZE可以提高性能,可能会增加显存使用量,
可通过环境变量MINERU_MIN_BATCH_INFERENCE_SIZE设置,默认值为1
00
。
可通过环境变量MINERU_MIN_BATCH_INFERENCE_SIZE设置,默认值为1
28
。
"""
"""
min_batch_inference_size
=
int
(
os
.
environ
.
get
(
'MINERU_MIN_BATCH_INFERENCE_SIZE'
,
1
00
))
min_batch_inference_size
=
int
(
os
.
environ
.
get
(
'MINERU_MIN_BATCH_INFERENCE_SIZE'
,
1
28
))
# 收集所有页面信息
# 收集所有页面信息
all_pages_info
=
[]
# 存储(dataset_index, page_index, img, ocr, lang, width, height)
all_pages_info
=
[]
# 存储(dataset_index, page_index, img, ocr, lang, width, height)
...
...
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