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
4021abeb
"vscode:/vscode.git/clone" did not exist on "dfcd459e5f0e3906760712c4a5f507dd846ee518"
Commit
4021abeb
authored
Feb 11, 2025
by
myhloli
Browse files
refactor(magic_pdf): improve code structure and memory safety
parent
4c0af020
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
magic_pdf/model/doc_analyze_by_custom_model.py
magic_pdf/model/doc_analyze_by_custom_model.py
+4
-3
No files found.
magic_pdf/model/doc_analyze_by_custom_model.py
View file @
4021abeb
import
os
import
time
import
torch
# 关闭paddle的信号处理
import
paddle
import
torch
paddle
.
disable_signal_handler
()
from
loguru
import
logger
from
magic_pdf.model.batch_analyze
import
BatchAnalyze
from
magic_pdf.model.sub_modules.model_utils
import
get_vram
paddle
.
disable_signal_handler
()
os
.
environ
[
'NO_ALBUMENTATIONS_UPDATE'
]
=
'1'
# 禁止albumentations检查更新
try
:
...
...
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