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
52e7dbf7
Commit
52e7dbf7
authored
Jul 14, 2020
by
LDOUBLEV
Browse files
add continue in det Evalreader when img is not exist
parent
eed41762
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
ppocr/data/det/dataset_traversal.py
ppocr/data/det/dataset_traversal.py
+1
-0
No files found.
ppocr/data/det/dataset_traversal.py
View file @
52e7dbf7
...
...
@@ -96,6 +96,7 @@ class EvalTestReader(object):
img
=
cv2
.
imread
(
img_path
)
if
img
is
None
:
logger
.
info
(
"{} does not exist!"
.
format
(
img_path
))
continue
elif
len
(
list
(
img
.
shape
))
==
2
or
img
.
shape
[
2
]
==
1
:
img
=
cv2
.
cvtColor
(
img
,
cv2
.
COLOR_GRAY2BGR
)
outs
=
process_function
(
img
)
...
...
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