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
c6359258
Unverified
Commit
c6359258
authored
Aug 19, 2021
by
topduke
Committed by
GitHub
Aug 19, 2021
Browse files
Update rec_metric.py
parent
55b76dca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ppocr/metrics/rec_metric.py
ppocr/metrics/rec_metric.py
+2
-2
No files found.
ppocr/metrics/rec_metric.py
View file @
c6359258
...
...
@@ -48,8 +48,8 @@ class RecMetric(object):
'norm_edit_dis': 0,
}
"""
acc
=
1.0
*
self
.
correct_num
/
(
self
.
all_num
)
norm_edit_dis
=
1
-
self
.
norm_edit_dis
/
(
self
.
all_num
)
acc
=
1.0
*
self
.
correct_num
/
self
.
all_num
norm_edit_dis
=
1
-
self
.
norm_edit_dis
/
self
.
all_num
self
.
reset
()
return
{
'acc'
:
acc
,
'norm_edit_dis'
:
norm_edit_dis
}
...
...
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