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
be010394
Commit
be010394
authored
Dec 13, 2024
by
Suven
Browse files
feat: add logging for detection time in BatchAnalyze when OCR is not applied
parent
49bfdf07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
magic_pdf/model/batch_analyze.py
magic_pdf/model/batch_analyze.py
+2
-0
No files found.
magic_pdf/model/batch_analyze.py
View file @
be010394
...
@@ -191,6 +191,8 @@ class BatchAnalyze:
...
@@ -191,6 +191,8 @@ class BatchAnalyze:
if
self
.
model
.
apply_ocr
:
if
self
.
model
.
apply_ocr
:
logger
.
info
(
f
"ocr time:
{
round
(
ocr_time
,
2
)
}
, image num:
{
ocr_count
}
"
)
logger
.
info
(
f
"ocr time:
{
round
(
ocr_time
,
2
)
}
, image num:
{
ocr_count
}
"
)
else
:
logger
.
info
(
f
"det time:
{
round
(
ocr_time
,
2
)
}
, image num:
{
ocr_count
}
"
)
if
self
.
model
.
apply_table
:
if
self
.
model
.
apply_table
:
logger
.
info
(
f
"table time:
{
round
(
table_time
,
2
)
}
, image num:
{
table_count
}
"
)
logger
.
info
(
f
"table time:
{
round
(
table_time
,
2
)
}
, image num:
{
table_count
}
"
)
...
...
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