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
ModelZoo
PaddleOCR_migraphx
Commits
2d5002f2
Commit
2d5002f2
authored
May 30, 2023
by
Your Name
Browse files
修改python代码
parent
4360d4cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Python/PaddleOCR_infer_migraphx.py
Python/PaddleOCR_infer_migraphx.py
+1
-1
No files found.
Python/PaddleOCR_infer_migraphx.py
View file @
2d5002f2
...
...
@@ -271,7 +271,7 @@ class process_pred(object):
else
:
conf_list
.
append
(
1
)
text
=
''
.
join
(
char_list
)
result_list
.
append
((
text
,
round
(
np
.
mean
(
conf_list
)
),
2
))
result_list
.
append
((
text
,
round
(
np
.
mean
(
conf_list
)
,
2
)
))
return
result_list
def
__call__
(
self
,
preds
,
label
=
None
):
...
...
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