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
18af71a2
Commit
18af71a2
authored
Jun 27, 2024
by
赵小蒙
Browse files
Merge remote-tracking branch 'origin/master'
parents
2f1a99fd
c1e224e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tools/benchmark.py
tools/benchmark.py
+3
-3
No files found.
tools/benchmark.py
View file @
18af71a2
...
@@ -12,11 +12,11 @@ file_types = ["academic_literature", "atlas", "courseware", "colorful_textbook",
...
@@ -12,11 +12,11 @@ file_types = ["academic_literature", "atlas", "courseware", "colorful_textbook",
def
test_cli
():
def
test_cli
():
magicpdf_path
=
os
.
path
.
join
(
pdf_dev_path
,
"output"
)
magicpdf_path
=
os
.
path
.
join
(
pdf_dev_path
,
"output"
)
cmd
=
'cd %s && export PYTHONPATH=. && find %s -type f -name "*.pdf" | xargs -I{} python magic_pdf/cli/magicpdf.py pdf-command --pdf {}'
%
(
code_path
,
magicpdf_path
)
os
.
system
(
cmd
)
rm_cmd
=
"rm -rf %s"
%
(
pdf_res_path
)
rm_cmd
=
"rm -rf %s"
%
(
pdf_res_path
)
os
.
system
(
rm_cmd
)
os
.
system
(
rm_cmd
)
os
.
makedirs
(
pdf_res_path
)
os
.
makedirs
(
pdf_res_path
)
cmd
=
'cd %s && export PYTHONPATH=. && find %s -type f -name "*.pdf" | xargs -I{} python magic_pdf/cli/magicpdf.py pdf-command --pdf {}'
%
(
code_path
,
magicpdf_path
)
os
.
system
(
cmd
)
for
root
,
dirs
,
files
in
os
.
walk
(
pdf_res_path
):
for
root
,
dirs
,
files
in
os
.
walk
(
pdf_res_path
):
for
magic_file
in
files
:
for
magic_file
in
files
:
for
file_type
in
file_types
:
for
file_type
in
file_types
:
...
...
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