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
fa2d08f2
Commit
fa2d08f2
authored
Jun 28, 2021
by
LDOUBLEV
Browse files
add elapse to cls
parent
b8834933
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tools/infer/predict_cls.py
tools/infer/predict_cls.py
+1
-0
No files found.
tools/infer/predict_cls.py
View file @
fa2d08f2
...
...
@@ -112,6 +112,7 @@ class TextClassifier(object):
if
'180'
in
label
and
score
>
self
.
cls_thresh
:
img_list
[
indices
[
beg_img_no
+
rno
]]
=
cv2
.
rotate
(
img_list
[
indices
[
beg_img_no
+
rno
]],
1
)
elapse
=
time
.
time
()
-
starttime
return
img_list
,
cls_res
,
elapse
...
...
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