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
ModelZoo
chineseocr_lite_onnxruntime
Commits
5c858dc9
Commit
5c858dc9
authored
Sep 20, 2024
by
dcuai
Browse files
Update label_ops.py—bool_
parent
8cb8274b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ppocr/data/imaug/label_ops.py
ppocr/data/imaug/label_ops.py
+2
-2
No files found.
ppocr/data/imaug/label_ops.py
View file @
5c858dc9
...
@@ -62,7 +62,7 @@ class DetLabelEncode(object):
...
@@ -62,7 +62,7 @@ class DetLabelEncode(object):
return
None
return
None
boxes
=
self
.
expand_points_num
(
boxes
)
boxes
=
self
.
expand_points_num
(
boxes
)
boxes
=
np
.
array
(
boxes
,
dtype
=
np
.
float32
)
boxes
=
np
.
array
(
boxes
,
dtype
=
np
.
float32
)
txt_tags
=
np
.
array
(
txt_tags
,
dtype
=
np
.
bool
)
txt_tags
=
np
.
array
(
txt_tags
,
dtype
=
np
.
bool
_
)
data
[
'polys'
]
=
boxes
data
[
'polys'
]
=
boxes
data
[
'texts'
]
=
txts
data
[
'texts'
]
=
txts
...
@@ -262,4 +262,4 @@ class MultiLabelEncode(BaseRecLabelEncode):
...
@@ -262,4 +262,4 @@ class MultiLabelEncode(BaseRecLabelEncode):
data_out
[
'label_sar'
]
=
sar
[
'label'
]
data_out
[
'label_sar'
]
=
sar
[
'label'
]
data_out
[
'length'
]
=
ctc
[
'length'
]
data_out
[
'length'
]
=
ctc
[
'length'
]
return
data_out
return
data_out
\ No newline at end of file
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