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
41ecaedc
Commit
41ecaedc
authored
Jun 13, 2025
by
myhloli
Browse files
feat: disable logging for invalid overlay PDF generation in draw_bbox.py
parent
514e1b4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
mineru/utils/draw_bbox.py
mineru/utils/draw_bbox.py
+4
-2
No files found.
mineru/utils/draw_bbox.py
View file @
41ecaedc
...
...
@@ -188,7 +188,8 @@ def draw_layout_bbox(pdf_info, pdf_bytes, out_path, filename):
page
.
merge_page
(
overlay_pdf
.
pages
[
0
])
else
:
# 记录日志并继续处理下一个页面
logger
.
warning
(
f
"layout.pdf: 第
{
i
+
1
}
页未能生成有效的overlay PDF"
)
# logger.warning(f"layout.pdf: 第{i + 1}页未能生成有效的overlay PDF")
pass
output_pdf
.
add_page
(
page
)
...
...
@@ -302,7 +303,8 @@ def draw_span_bbox(pdf_info, pdf_bytes, out_path, filename):
page
.
merge_page
(
overlay_pdf
.
pages
[
0
])
else
:
# 记录日志并继续处理下一个页面
logger
.
warning
(
f
"span.pdf: 第
{
i
+
1
}
页未能生成有效的overlay PDF"
)
# logger.warning(f"span.pdf: 第{i + 1}页未能生成有效的overlay PDF")
pass
output_pdf
.
add_page
(
page
)
...
...
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