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
3ff994c4
"mmdet3d/structures/det3d_data_sample.py" did not exist on "bb204696c19ded90121caea82e34fa3ff0bd131f"
Commit
3ff994c4
authored
Jun 10, 2025
by
myhloli
Browse files
refactor: close PDF document after processing to improve resource management
parent
ab93f856
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
mineru/backend/vlm/token_to_middle_json.py
mineru/backend/vlm/token_to_middle_json.py
+2
-0
No files found.
mineru/backend/vlm/token_to_middle_json.py
View file @
3ff994c4
...
...
@@ -48,6 +48,8 @@ def result_to_middle_json(token_list, images_list, pdf_doc, image_writer):
image_dict
=
images_list
[
index
]
page_info
=
token_to_page_info
(
token
,
image_dict
,
page
,
image_writer
,
index
)
middle_json
[
"pdf_info"
].
append
(
page_info
)
# 关闭pdf文档
pdf_doc
.
close
()
return
middle_json
...
...
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