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
paddle_dbnet
Commits
300452c7
"src/include/blockwise_gemm.hip.hpp" did not exist on "abf75ac039420f7a4ab64a419416dd493b906742"
Commit
300452c7
authored
Apr 26, 2022
by
LDOUBLEV
Browse files
Merge branch 'dygraph' of
https://github.com/PaddlePaddle/PaddleOCR
into dygraph
parents
217b0409
33c99d29
Changes
42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
ppstructure/utility.py
ppstructure/utility.py
+18
-1
requirements.txt
requirements.txt
+1
-0
No files found.
ppstructure/utility.py
View file @
300452c7
...
...
@@ -15,7 +15,7 @@
import
ast
from
PIL
import
Image
import
numpy
as
np
from
tools.infer.utility
import
draw_ocr_box_txt
,
init_args
as
infer_args
from
tools.infer.utility
import
draw_ocr_box_txt
,
str2bool
,
init_args
as
infer_args
def
init_args
():
...
...
@@ -30,6 +30,7 @@ def init_args():
"--table_char_dict_path"
,
type
=
str
,
default
=
"../ppocr/utils/dict/table_structure_dict.txt"
)
# params for layout
parser
.
add_argument
(
"--layout_path_model"
,
type
=
str
,
...
...
@@ -39,11 +40,27 @@ def init_args():
type
=
ast
.
literal_eval
,
default
=
None
,
help
=
'label map according to ppstructure/layout/README_ch.md'
)
# params for inference
parser
.
add_argument
(
"--mode"
,
type
=
str
,
default
=
'structure'
,
help
=
'structure and vqa is supported'
)
parser
.
add_argument
(
"--layout"
,
type
=
str2bool
,
default
=
True
,
help
=
'Whether to enable layout analysis'
)
parser
.
add_argument
(
"--table"
,
type
=
str2bool
,
default
=
True
,
help
=
'In the forward, whether the table area uses table recognition'
)
parser
.
add_argument
(
"--ocr"
,
type
=
str2bool
,
default
=
True
,
help
=
'In the forward, whether the non-table area is recognition by ocr'
)
return
parser
...
...
requirements.txt
View file @
300452c7
...
...
@@ -12,3 +12,4 @@ cython
lxml
premailer
openpyxl
attrdict
Prev
1
2
3
Next
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