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
058c0e53
Unverified
Commit
058c0e53
authored
Dec 11, 2020
by
zhoujun
Committed by
GitHub
Dec 11, 2020
Browse files
fix typo error (#1387)
parent
1007e530
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
ppocr/metrics/cls_metric.py
ppocr/metrics/cls_metric.py
+2
-3
ppocr/metrics/det_metric.py
ppocr/metrics/det_metric.py
+1
-1
ppocr/metrics/rec_metric.py
ppocr/metrics/rec_metric.py
+1
-1
No files found.
ppocr/metrics/cls_metric.py
View file @
058c0e53
...
...
@@ -32,9 +32,8 @@ class ClsMetric(object):
def
get_metric
(
self
):
"""
return metircs {
'acc': 0,
'norm_edit_dis': 0,
return metrics {
'acc': 0
}
"""
acc
=
self
.
correct_num
/
self
.
all_num
...
...
ppocr/metrics/det_metric.py
View file @
058c0e53
...
...
@@ -57,7 +57,7 @@ class DetMetric(object):
def
get_metric
(
self
):
"""
return met
i
rcs {
return metr
i
cs {
'precision': 0,
'recall': 0,
'hmean': 0
...
...
ppocr/metrics/rec_metric.py
View file @
058c0e53
...
...
@@ -43,7 +43,7 @@ class RecMetric(object):
def
get_metric
(
self
):
"""
return met
i
rcs {
return metr
i
cs {
'acc': 0,
'norm_edit_dis': 0,
}
...
...
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