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
3fd024da
Unverified
Commit
3fd024da
authored
Nov 06, 2024
by
Xiaomeng Zhao
Committed by
GitHub
Nov 06, 2024
Browse files
Merge pull request #883 from opendatalab/release-0.9.2
Release 0.9.2
parents
d8b217c5
91aac635
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
magic_pdf/model/pdf_extract_kit.py
magic_pdf/model/pdf_extract_kit.py
+0
-13
No files found.
magic_pdf/model/pdf_extract_kit.py
View file @
3fd024da
...
...
@@ -282,8 +282,6 @@ class CustomPEKModel:
)
# 初始化ocr
if
self
.
apply_ocr
:
# self.ocr_model = ModifiedPaddleOCR(show_log=show_log, det_db_box_thresh=0.3)
self
.
ocr_model
=
atom_model_manager
.
get_atom_model
(
atom_model_name
=
AtomicModel
.
OCR
,
ocr_show_log
=
show_log
,
...
...
@@ -301,17 +299,6 @@ class CustomPEKModel:
device
=
self
.
device
)
home_directory
=
Path
.
home
()
det_source
=
os
.
path
.
join
(
models_dir
,
table_model_dir
,
DETECT_MODEL_DIR
)
rec_source
=
os
.
path
.
join
(
models_dir
,
table_model_dir
,
REC_MODEL_DIR
)
det_dest_dir
=
os
.
path
.
join
(
home_directory
,
PP_DET_DIRECTORY
)
rec_dest_dir
=
os
.
path
.
join
(
home_directory
,
PP_REC_DIRECTORY
)
if
not
os
.
path
.
exists
(
det_dest_dir
):
shutil
.
copytree
(
det_source
,
det_dest_dir
)
if
not
os
.
path
.
exists
(
rec_dest_dir
):
shutil
.
copytree
(
rec_source
,
rec_dest_dir
)
logger
.
info
(
'DocAnalysis init done!'
)
def
__call__
(
self
,
image
):
...
...
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