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
835bfa45
Commit
835bfa45
authored
Nov 27, 2020
by
WenmuZhou
Browse files
Remove the channel conversion of the image and keep it consistent with the training phase
parent
05dcfdec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
tools/infer/predict_det.py
tools/infer/predict_det.py
+0
-1
No files found.
tools/infer/predict_det.py
View file @
835bfa45
...
@@ -174,7 +174,6 @@ if __name__ == "__main__":
...
@@ -174,7 +174,6 @@ if __name__ == "__main__":
if
img
is
None
:
if
img
is
None
:
logger
.
info
(
"error in loading image:{}"
.
format
(
image_file
))
logger
.
info
(
"error in loading image:{}"
.
format
(
image_file
))
continue
continue
img
=
cv2
.
cvtColor
(
img
,
cv2
.
COLOR_BGR2RGB
)
dt_boxes
,
elapse
=
text_detector
(
img
)
dt_boxes
,
elapse
=
text_detector
(
img
)
if
count
>
0
:
if
count
>
0
:
total_time
+=
elapse
total_time
+=
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