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
345b8690
Unverified
Commit
345b8690
authored
Apr 13, 2021
by
zhoujun
Committed by
GitHub
Apr 13, 2021
Browse files
Merge branch 'dygraph' into lite
parents
62305b57
1b665716
Changes
22
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
tools/infer/predict_e2e.py
tools/infer/predict_e2e.py
+1
-0
tools/infer/utility.py
tools/infer/utility.py
+1
-0
No files found.
tools/infer/predict_e2e.py
View file @
345b8690
...
...
@@ -66,6 +66,7 @@ class TextE2E(object):
postprocess_params
[
"score_thresh"
]
=
args
.
e2e_pgnet_score_thresh
postprocess_params
[
"character_dict_path"
]
=
args
.
e2e_char_dict_path
postprocess_params
[
"valid_set"
]
=
args
.
e2e_pgnet_valid_set
postprocess_params
[
"mode"
]
=
args
.
e2e_pgnet_mode
self
.
e2e_pgnet_polygon
=
args
.
e2e_pgnet_polygon
else
:
logger
.
info
(
"unknown e2e_algorithm:{}"
.
format
(
self
.
e2e_algorithm
))
...
...
tools/infer/utility.py
View file @
345b8690
...
...
@@ -86,6 +86,7 @@ def parse_args():
"--e2e_char_dict_path"
,
type
=
str
,
default
=
"./ppocr/utils/ic15_dict.txt"
)
parser
.
add_argument
(
"--e2e_pgnet_valid_set"
,
type
=
str
,
default
=
'totaltext'
)
parser
.
add_argument
(
"--e2e_pgnet_polygon"
,
type
=
bool
,
default
=
True
)
parser
.
add_argument
(
"--e2e_pgnet_mode"
,
type
=
str
,
default
=
'fast'
)
# params for text classifier
parser
.
add_argument
(
"--use_angle_cls"
,
type
=
str2bool
,
default
=
False
)
...
...
Prev
1
2
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