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
98c80f16
Commit
98c80f16
authored
Jun 19, 2020
by
xxxpsyduck
Browse files
revert change in db_process.py
parent
72b453b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ppocr/data/det/db_process.py
ppocr/data/det/db_process.py
+1
-1
No files found.
ppocr/data/det/db_process.py
View file @
98c80f16
...
@@ -104,7 +104,7 @@ class DBProcessTrain(object):
...
@@ -104,7 +104,7 @@ class DBProcessTrain(object):
if
imgvalue
is
None
:
if
imgvalue
is
None
:
logger
.
info
(
"{} does not exist!"
.
format
(
img_path
))
logger
.
info
(
"{} does not exist!"
.
format
(
img_path
))
return
None
return
None
el
if
len
(
list
(
imgvalue
.
shape
))
==
2
or
imgvalue
.
shape
[
2
]
==
1
:
if
len
(
list
(
imgvalue
.
shape
))
==
2
or
imgvalue
.
shape
[
2
]
==
1
:
imgvalue
=
cv2
.
cvtColor
(
imgvalue
,
cv2
.
COLOR_GRAY2BGR
)
imgvalue
=
cv2
.
cvtColor
(
imgvalue
,
cv2
.
COLOR_GRAY2BGR
)
data
=
self
.
make_data_dict
(
imgvalue
,
gt_label
)
data
=
self
.
make_data_dict
(
imgvalue
,
gt_label
)
data
=
AugmentData
(
data
)
data
=
AugmentData
(
data
)
...
...
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