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
a385b8bb
"docs/source/using-diffusers/custom_pipeline_examples.mdx" did not exist on "ed6c61c6a0e3693a6f96328469d23db7a274dc4f"
Unverified
Commit
a385b8bb
authored
Jan 25, 2022
by
Evezerest
Committed by
GitHub
Jan 25, 2022
Browse files
Merge pull request #5345 from ioracion/dygraph
单词拼写错误
parents
3609d0b2
a572737f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
tools/infer/predict_system.py
tools/infer/predict_system.py
+3
-3
tools/infer_cls.py
tools/infer_cls.py
+2
-2
No files found.
tools/infer/predict_system.py
View file @
a385b8bb
...
...
@@ -92,11 +92,11 @@ class TextSystem(object):
self
.
draw_crop_rec_res
(
self
.
args
.
crop_res_save_dir
,
img_crop_list
,
rec_res
)
filter_boxes
,
filter_rec_res
=
[],
[]
for
box
,
rec_re
u
slt
in
zip
(
dt_boxes
,
rec_res
):
text
,
score
=
rec_re
u
slt
for
box
,
rec_res
u
lt
in
zip
(
dt_boxes
,
rec_res
):
text
,
score
=
rec_res
u
lt
if
score
>=
self
.
drop_score
:
filter_boxes
.
append
(
box
)
filter_rec_res
.
append
(
rec_re
u
slt
)
filter_rec_res
.
append
(
rec_res
u
lt
)
return
filter_boxes
,
filter_rec_res
...
...
tools/infer_cls.py
View file @
a385b8bb
...
...
@@ -73,8 +73,8 @@ def main():
images
=
paddle
.
to_tensor
(
images
)
preds
=
model
(
images
)
post_result
=
post_process_class
(
preds
)
for
rec_re
u
slt
in
post_result
:
logger
.
info
(
'
\t
result: {}'
.
format
(
rec_re
u
slt
))
for
rec_res
u
lt
in
post_result
:
logger
.
info
(
'
\t
result: {}'
.
format
(
rec_res
u
lt
))
logger
.
info
(
"success!"
)
...
...
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