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
51f56aa3
Commit
51f56aa3
authored
Oct 17, 2024
by
liukaiwen
Browse files
feat: merge formula update
parent
ece7f8d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
magic_pdf/libs/Constants.py
magic_pdf/libs/Constants.py
+2
-2
magic_pdf/model/pdf_extract_kit.py
magic_pdf/model/pdf_extract_kit.py
+4
-0
No files found.
magic_pdf/libs/Constants.py
View file @
51f56aa3
...
@@ -29,10 +29,10 @@ TABLE_MASTER_DICT = "table_master_structure_dict.txt"
...
@@ -29,10 +29,10 @@ TABLE_MASTER_DICT = "table_master_structure_dict.txt"
TABLE_MASTER_DIR
=
"table_structure_tablemaster_infer/"
TABLE_MASTER_DIR
=
"table_structure_tablemaster_infer/"
# pp detect model dir
# pp detect model dir
DETECT_MODEL_DIR
=
"ch_PP-OCRv
3
_det_infer"
DETECT_MODEL_DIR
=
"ch_PP-OCRv
4
_det_infer"
# pp rec model dir
# pp rec model dir
REC_MODEL_DIR
=
"ch_PP-OCRv
3
_rec_infer"
REC_MODEL_DIR
=
"ch_PP-OCRv
4
_rec_infer"
# pp rec char dict path
# pp rec char dict path
REC_CHAR_DICT
=
"ppocr_keys_v1.txt"
REC_CHAR_DICT
=
"ppocr_keys_v1.txt"
...
...
magic_pdf/model/pdf_extract_kit.py
View file @
51f56aa3
...
@@ -433,3 +433,7 @@ class CustomPEKModel:
...
@@ -433,3 +433,7 @@ class CustomPEKModel:
logger
.
info
(
f
"-----page total time:
{
round
(
time
.
time
()
-
page_start
,
2
)
}
-----"
)
logger
.
info
(
f
"-----page total time:
{
round
(
time
.
time
()
-
page_start
,
2
)
}
-----"
)
return
layout_res
return
layout_res
if
__name__
==
'__main__'
:
print
()
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